Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Remaster problem with script

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    11

    Remaster problem with script

    Following the instructions in Setting up for Remastering at http://knoppix.net/wiki/Knoppix_Rema...ent_for_chroot I modified the script to point to /dev/sdb6 and ran it. There was screen output until the warning that the process might take a long time, so I walked away and returned about an hour later. The CD drive light was still flashing and the HD drive light too, so I assumed the job was not over. But then I noticed the screen was black, the keyboard and mouse dead. I had to turn the power off. After rebooting to my usual distro I checked the partition in question and there was not a single file written to it.

    Has anybody used this script for a successful copy of the files on the CD? Any advice would be appreciated.

    Thanks.

  2. #2
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Did you run the first part of the four scripts ( last modified 26 January 2012) in a root terminal?

    How big is your partition 'sdb6' and how did you format it? I used a 5 GB ext3-partition for CD and 20 GB ext3-partition for DVD remaster.

    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    Own Rescue-CD (Knoppix V6.7.1 remaster)
    Last edited by Werner P. Schulz; 02-18-2012 at 10:41 AM.

  3. #3
    Junior Member
    Join Date
    Feb 2012
    Posts
    11
    Thanks for the quick response.

    Quote Originally Posted by Werner P. Schulz View Post
    Did you run the first part of the four scripts ( last modified 26 January 2012) in a root terminal?

    How big is your partition 'sdb6' and how did you format it? I used a 5 GB ext3-partition for CD and 20 GB ext3-partition for DVD remaster.

    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    Own Rescue-CD (Knoppix V6.7.1 remaster)
    The page I copied the script from states...

    HTML Code:
    This page was last modified 17:46, 16 February 2012.
    ...and yes I ran it from a root terminal.

    /dev/sdb6 is 34 GBytes and if mounted shows up as...

    HTML Code:
    /dev/sdb6 on /mnt type ext3 (rw,relatime,errors=continue,barrier=0,data=writeback)
    I went one step further executing the script one command at a time from a root terminal. When I got to swapon swapfile the response was...

    HTML Code:
    swapon failed: Invalid argument
    I tried every possible variation of the swapon options. Every one failed.

  4. #4
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    As in the example
    Code:
    # Path to partition you will work on
    PFAD="/media/sda1"
    the variable $PFAD must be set to the mountpoint, not to the device!

    And why not mount '/dev/sdb6' to for example '/mnt/sdb6' or '/media/sdb6' instead of '/mnt'?

  5. #5
    Junior Member
    Join Date
    Feb 2012
    Posts
    11
    Quote Originally Posted by Werner P. Schulz View Post
    As in the example
    Code:
    # Path to partition you will work on
    PFAD="/media/sda1"
    the variable $PFAD must be set to the mountpoint, not to the device!

    And why not mount '/dev/sdb6' to for example '/mnt/sdb6' or '/media/sdb6' instead of '/mnt'?
    Oops! I must have taken one stupidity pill too many. Sorry to take up your time, and thank you very much.

  6. #6
    Junior Member
    Join Date
    Feb 2012
    Posts
    11
    I got as far as being able to chroot into the saved file. Then I added four small *.desktop files to /usr/share/application following instructions on an LXDE page. A total of 1000 bytes I thought I could sneek in without exceeding a CD's capacity. I made 4 links under the home Desktop directory. then executed the last two scripts to write the CD iso. When I tried to burn it my software complained it was too big. I checked the size of the remastered.iso file it was over 838MB. I only added 1KB. I plan to try again by removing some software I don't need, like iceweasel, but if I am already 138MB over allowable that's going to be a little difficult.

    Any suggestions other than using VirtualBox?

  7. #7
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    The size of the new ISO depends on the parameters you use within genisoimage and for create_compressed_fs. Especially for create_compressed_fs I use the standard compression level; if you select "-b" (try all an choose the best compression method) the used time to build a new ISO becomes tremendous.

    For the old chroot-method for remaster you dont't need VirtualBox; I only suggest it for the kn-remaster script.

    Greetings Werner

  8. #8
    Junior Member
    Join Date
    Feb 2012
    Posts
    11
    I managed to remove enough software to bring the size of the .iso to under 700MB and burned a CD that boots. However, it will not boot to the GUI, and I get a text screen. Startx works but is not acceptable. Also it boots as user root instead of user knoppix. User root is probably acceptable if I can get to a GUI on boot.

    My project is to produce a network test CD with 5 simple test icons on the desktop for naive users. That means no command line interfaces whatsoever.

    Any suggestions would be highly appreciated.

  9. #9
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    I managed to remove enough software to bring the size...
    If you remove packages within Knoppix, it's on your own risk. Did you get any error messages from aptitude? Did you test your burned ISO with cheatcode "knoppix testcd"?

    For CD remaster with kn-remaster script I suggested
    http://www.wp-schulz.de/knoppix/kn-c...html#vorschlag

    Perhaps it may help you.

  10. #10
    Junior Member
    Join Date
    Feb 2012
    Posts
    11
    Thank you for your advice.

    Quote Originally Posted by Werner P. Schulz View Post
    If you remove packages within Knoppix, it's on your own risk.
    I understand.

    Did you get any error messages from aptitude?
    No error messages, but some warnings.

    Did you test your burned ISO with cheatcode "knoppix testcd"?
    Yes I did after my first failure. The output was...

    HTML Code:
    Checking ./KNOPPIX/KNOPPIX
    All files ok.
    ...followed by...

    HTML Code:
    INIT:Entering run level:5
    root@microknoppix:/#
    ...but no GUI. The software I removed was LibreOffice, GIMP, Brasero and some other multimedia applications. Nothing that implied network or system use. I will re-trace my steps. Is there some way I can boot from my remastered ISO without having to burn a CD? I am wasting a lot of plastic.

    Thanks again.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD picture

Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD

$79.19



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



DELL POWEREDGE T430 SERVER W/ DUAL XEON E5-2609 CPU & 16GB MEMORY picture

DELL POWEREDGE T430 SERVER W/ DUAL XEON E5-2609 CPU & 16GB MEMORY

$329.00



Dell PowerEdge R620 4-Bay Server 2x Xeon E5-2690 8 Core 2.9GHz 32GB No HDD H710P picture

Dell PowerEdge R620 4-Bay Server 2x Xeon E5-2690 8 Core 2.9GHz 32GB No HDD H710P

$95.63



CTO Dell PowerEdge R630 Server, 2x Xeon E5-2620V4, 64GB- 512GB RAM, 480GB SSDs picture

CTO Dell PowerEdge R630 Server, 2x Xeon E5-2620V4, 64GB- 512GB RAM, 480GB SSDs

$246.67



Dell PowerEdge R620 Server 2x E5-2650 V2 = 16 Cores H710P 128GB RAM 2x 600GB SAS picture

Dell PowerEdge R620 Server 2x E5-2650 V2 = 16 Cores H710P 128GB RAM 2x 600GB SAS

$274.99



DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45

$274.00



Dell Poweredge R730xd 2.5in 2x E5-2690 v3 2.6ghz 24-Cores  64gb  H730  2x 750w picture

Dell Poweredge R730xd 2.5in 2x E5-2690 v3 2.6ghz 24-Cores 64gb H730 2x 750w

$289.99