Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37

Thread: Own Rescue-CD with Knoppix - without "chroot"

  1. #1
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124

    Own Rescue-CD with Knoppix - without "chroot"

    Now I'm ready with the new version of my scripts. You no longer have to work in chroot jail.

    Make a HD Installation of Knoppix, modify it as you like and test it as long as you need. If you want to create your own Knoppix-CD version, the contents of your HD Installation will be copied to the '../remaster' directory by the scripts and a new ISO is builded.

    Attention! If you already used the older version of my scripts, all your modifications you did within the chroot jail will be wiped out.

    I suggest to start with the step "Prepare enviroment within the Knoppix HD Installation" once more. In this case you get a new, untouched '--/remaster' directory.


    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    Own Rescue-CD with Knoppix (Knoppix V6.7.0 remaster)

  2. #2
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Greetings Werner

    It looks like you really have something here.

    If I understand your directions correctly, I think there is some ambiguity that would be
    well to clear up. For example, when you say 'Make a HD Installation..' I'm pretty sure
    you mean 'Make a Virtual HD Installation...'.

    Also, when you do this, there are some scary warnings that show up, which I think may be
    disregarded, since the operations will be occuring in VirtualBox (or equivalent) and not
    on any real hard drive. If so, I think you should forewarn the novice, like myself, and offer
    some encouragement to perservere.

    Stop me if this is disruptive or not helpful.

  3. #3
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Hello!
    You can use a HD Installation of Knoppix within VirtualBox or on a real hard drive; there is nothing dangerous.

    Only the step "Prepare enviroment .." writes something in the Knoppix Installation. The steps "Rsync.." and "Build new.." are one-way jobs; all is done in the directory '/opt/knx/' and doesn't alter the HD Installation.

    My warning refer to '/opt/knx/remaster'. If you used my old script 'kn-chroot' and have done some modifications within '/opt/knx/remaster', then they gone away after "rsync"

  4. #4
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Greetings, Werner

    Having built a Virtual HD Knoppix 6.7 and made a few additions & subtractions,
    I downloaded your kn-knoppix scripts and proceeded to remaster.

    Things came to a halt at the 'Build new iso' phase with the following terminal output:

    ed: -e expression #1, char 0: no previous regular expression
    sed: can't read /opt/knx/knoppix/boot/isolinux/graphics.conf: No such file or directory
    sed: can't read /opt/knx/knoppix/boot/isolinux/graphics.conf: No such file or directory
    sed: can't read /opt/knx/knoppix/boot/isolinux/graphics.conf: No such file or directory
    sed: can't read /opt/knx/knoppix/boot/isolinux/graphics.conf: No such file or directory
    /usr/sbin/kn-final: line 40: cd: /opt/knx/minirt_rd: No such file or directory
    /usr/sbin/kn-final: line 41: /opt/knx/knoppix/boot/isolinux/minirt.gz: No such file or directory

    There was no iso.
    The size of remaster contents was 1.9 Gb.
    The size of / was also 1.9 Gb.

    1.9 Gb is about what I would expect for the un-compressed system.
    The Virtual system did seem to be acting well.

    The first phase 'preparing' gave no terminal response I'm aware of.
    The 'resync' phase took around 14 minutes, which seemed about what I'd expect;
    ...I would have preferred a little progress indication along the way.

    I seem to be able to return to the Virtual system at will with no ill effects.

    So, have you any thoughts on what I should look-for to get the iso made?

    Thanks.

  5. #5
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Hello!
    Thank you for testing the script. You've run in a problem I didn't described in detail.
    The first phase 'preparing' gave no terminal response I'm aware of.
    If there are no problems, you'll get the messages "Decompress filesystem. This will take a long time!" and "Finished. Used time:..."

    If the script cannot find the Knoppix CD, you get the message "If Knoppix CD can't be mounted please mount it within pcmanfm-filemanager". I see, I have to supplement in the message "If Knoppix CD is mounted sucessful, begin with the step 'Prepare enviroment ..' once more."

    Sometimes VirtualBox isn't able to mount a CD; in this case you have to unselect the CD within the menu of VirtualBox itself and then to select the CD. Now you can see the CD within pcmanfm and mount it.

    ...I would have preferred a little progress indication along the way.
    I don't use a progress indication. It only waste CPU power, but you never get useful datas, how long the process will need. Watch the flickering LED, watch the little window of the ressource-monitor and be patient.

    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    Own Rescue-CD with Knoppix (Knoppix V6.7.0 remaster)

  6. #6
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Thanks, Werner.

    I will try once again.

    BTW, I made my adds & removes with Synaptic; was that ok?
    I realize you have add & purge lists that I might have used.

    Also, the kn-material would not come in via Synaptic, so
    I used apt-get install; was that ok?
    Some distros warn against mixing apt-gets and Synaptic, I know.

    I also anticipate a problem getting an iso out of VirtualBox;
    I havent set up any shared-file arrangement yet.
    Last edited by utu; 09-15-2011 at 08:11 PM.

  7. #7
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    You can use Synaptic. But sometimes you get trouble using Synaptic versus aptitude/apt-get. If you deinstall some packages with Synaptic, aptitude wants to reinstall them. I only use aptitude, with the CLI or with the commandline.
    Also, the kn-material would not come in via Synaptic, so
    I used apt-get install; was that ok?
    To install my package, why don't you use "dpkg -i"?

    Read in the VirtualBox Manual how to create shared folders.

    The other way to get an ISO out VirtualBox is using an USB-Stick. If someone has VirtualBox within a Linux Host, he can use a ssh-connection between Host an Guest.

  8. #8
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Greetings, again, Werner.

    I think your part of this experiment has probably gone all right.

    There was, as you thought, a problem knowing whether or not the cd
    was mounted on the virtual system. Once that was taken care of things
    proceeded for about 14:13 in 'prepare', 1:28 in 'rsync' and 16:35 in
    the 'finale', producing a 780 Mb iso and some checksums.

    Flashes on the VB hdd and cd icons do give some re-assurance during
    the 14- and 16-minute intervals of behind the scenes activity that
    something useful may indeed be underway. Terminal entertainment
    is not really necessary for the patient operator.

    The only disconcerting thing I can mention is that after each phase
    I seemed to need to re-locate the re-mastering menu to launch the next
    phase. I can live with that, but it's strange.

    My problem now is figuring how to get the iso out of VirtualBox, or how
    to exercise it within VirtualBox. There is some problem with my PCLinuxOS
    VB setup in regard to Shared Folders and VBGuest Additions which I have
    to straighten out. I'll get back to you when I do.

    Just now read your latest post:

    I probably used dpkg -i, now that you mention it, just not Synaptic.
    I'll study your VB suggestions as well.

    I think you have a success on your hands here, Werner. Congratulations.

  9. #9
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Greetings, Werner

    I have shifted gears here.
    I have made an actual hd install ala 0wn and set up your process there.

    My process times are now 6:18 for prepare; 0:16 for rsync;
    5:14 for build new iso; and 0:01 for create boot-CD.

    The 'new iso' is about the right size, but the 'boot iso' is not;
    it says 11Mb. I am assuming the boot iso contains the 'new iso' and
    will be somewhat larger as a result.

    I have assumed we were NOT bound to stay within actual CD limits of around
    700 Mb or so, and my current 'new iso' candidate itself is 798 Mb.
    I had planned just to burn a DVD instead of a CD.

    What are your thoughts on the matter?
    Last edited by utu; 09-17-2011 at 02:07 AM.

  10. #10
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Hello!
    The only disconcerting thing I can mention is that after each phase
    I seemed to need to re-locate the re-mastering menu to launch the next
    phase. I can live with that, but it's strange.
    The step "Prepare.." you have to do only once. The step "Rsync.." and "Build.." I will not connect to a single one step. Perhaps you have in your HD Installation a directory '../pictures' and you don't want it in the new ISO. Now you can either insert in the script "kn-rsync" a new "--exclude=.." for your own and after it run "Rsync.." or you first run "Rsync.." and then remove the directory '../pictures' within '/opt/knx/remaster' It is your decision how to do the job.
    My process times are now 6:18 for prepare; 0:16 for rsync;
    5:14 for build new iso; and 0:01 for create boot-CD.
    The measured times are ok.
    The 'new iso' is about the right size, but the 'boot iso' is not;
    it says 11Mb. I am assuming the boot iso contains the 'new iso' and
    will be somewhat larger as a result.
    It is also ok. The Boot-CD only contains the Knoppix bootloader, nothing else; it is designed in case of you cannot boot a computer with a flash-disk installation like an USB-stick. The new ISO contains the bootloader and the compressed filesystem Image.
    I have assumed we were NOT bound to stay within actual CD limits of around
    700 Mb or so, and my current 'new iso' candidate itself is 798 Mb.
    I had planned just to burn a DVD instead of a CD.
    Of course, you can also remaster a Knoppix DVD. In this case I assume you need about 30GB free space on a partition for a) HD Installation b) '/opt/knx/remaster' and c) '/opt/knx/iso'. And you must change the value 'MIN_FREE=800000' to 'MIN_FREE=5000000' within the script "kn-final".

    Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
    Own Rescue-CD with Knoppix (Knoppix V6.7.0 remaster)

Page 1 of 4 123 ... 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
  •  


1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00



2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture

2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL

$299.00



HP/HPE ProLiant AMD Opteron X3216 APU 16 GB RAM MicroServer Gen 10 NO DRIVES picture

HP/HPE ProLiant AMD Opteron X3216 APU 16 GB RAM MicroServer Gen 10 NO DRIVES

$299.99



HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES

$199.99



HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ* picture

HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ*

$94.99



HP ProLiant Xeon E3-1220L V2 2.30 GHz 16 GB RAM MicroServer Gen8 NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 2.30 GHz 16 GB RAM MicroServer Gen8 NO DRIVES

$199.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon picture

HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon

$846.19



RackChoice 2U Micro ATX Compact Rackmount 2 x 5.25 Chassis Support ATX PS2 picture

RackChoice 2U Micro ATX Compact Rackmount 2 x 5.25 Chassis Support ATX PS2

$96.00



Supermicro 505-2 Mini-1U Server 5018A-FTN4 16GB 2.4ghz Atom + Rack Ears picture

Supermicro 505-2 Mini-1U Server 5018A-FTN4 16GB 2.4ghz Atom + Rack Ears

$199.00