PDA

View Full Version : persistent data for CD boot?



sstraw
10-07-2009, 09:05 AM
I have a bootable USB key with Knoppix 6 on it, but entirely too many systems in use out there (small offices, etc), still don't support booting from USB, so I'd like to stick with booting the Knoppix 6 CD and using a (separate) USB key for holding the persistent data.

In the past with 5.x, this worked fine. With 6.x, there isn't even an option for creating a persistent image (though the USB boot prompts for it, but there's issues with that too). I've tried creating the file, moving it to KNOPPIX/knoppix-data.img, specifying it in the boot parameters ( knoppix 2 home=/dev/sda1/KNOPPIX/knoppix-data.img ), etc. No dice - the system loads up and there's no persistence - the USB key isn't mounted.

Sadly, part of the reason I need to have the persistent storage is because Knoppix 6 is so brutally minimalized - all the handy tools from 5.1.1 have been stripped from it. I really don't want to have to engineer a custom version of Knoppix - I've been happy just booting the standard ones and updating packages as needed. The flip side is that the dpkg in 5.1.1 is broken (doesn't handle the "Break" package token, and the current version of dpkg available USES that token, so I can't even install the current version, so 5.1.1. is dead in the water).

Note that I really don't want to have to install the CD to a USB key - besides the inability to boot from USB on some systems, I'd just as soon maximize the amount of storage on the key for data.

Where is the script that manages checking and mounting the persistent store? There's no menu option in the GUI for persistence.

sstraw
10-08-2009, 06:11 PM
In further checking I see that a fromhd= setup also supports persistent store (as USB does as well), but as with USB, there's no option for WHERE the persistent store is located. However, this still isn't a desireable setup - there are still systems I have to boot with CD, and if I have to do that, I'd just as soon not have to copy the entire CD content to a USB stick and _still_ have to use the CD to boot.

Also, under 5.1.1, I could have a USB stick with multiple configurations on it (say, for different machine/purposes I might boot it for), whereas the approach in 6 seems to mandate that I have only one (because I can't specify the location of the persistent store).

Is there ANYONE here with insight?

glad2badad
11-09-2009, 05:01 PM
<snip> ... With 6.x, there isn't even an option for creating a persistent image (though the USB boot prompts for it, but there's issues with that too).

<snip> ... Where is the script that manages checking and mounting the persistent store? There's no menu option in the GUI for persistence.
I'm looking for an answer to this question also. I thought perhaps there's a command line option in v6 that could be used in place of the GUI menu option (Configure/Create Persistent) - yes/no?

sstraw
11-10-2009, 01:59 AM
<snip> ... With 6.x, there isn't even an option for creating a persistent image (though the USB boot prompts for it, but there's issues with that too).

<snip> ... Where is the script that manages checking and mounting the persistent store? There's no menu option in the GUI for persistence.
I'm looking for an answer to this question also. I thought perhaps there's a command line option in v6 that could be used in place of the GUI menu option (Configure/Create Persistent) - yes/no?

I've received absolutely no response to my oriignal inquiry, and was unsuccessful in finding out how to achieve it outside of copying the disc to USB or the HD. I just want persistence on a USB stick (or HD) when booting from CD. This was a snap in prior releases.

As it stands, 5.1.1en is the version of Knoppix I reach for in my toolbox - 6 isn't particularly useful - it may boot quick, but as a live distro, it's been gutted.

glad2badad
11-10-2009, 04:00 PM
That's a bummer about no response/answer. :(

I'm booting v6 from a USB thumb drive and I'd like to use the balance of space to use for saving doc changes, etc...

ryptyde
11-22-2009, 12:55 AM
That's a bummer about no response/answer. :(

I'm booting v6 from a USB thumb drive and I'd like to use the balance of space to use for saving doc changes, etc...

Have recently installed 6.2 to a 2GB usb drive from the running 6.2 livecd. Upon booting the newly created live-usb was asked to create a persistent overlay and entered in 1024 and hit "OK". The boot up finished to the desktop, took a screenie and saved it to the desktop. Installed some extra packages and upon reboot all changes were saved.

So far the usb install is working fine. :)

jim1013
12-14-2009, 03:18 PM
Surely there must be a way to create a persistent home directory or equivalent in 6.2.

All the F*&^* articles tell me how to do it, but not for this version!!!

Clinton
12-14-2009, 06:11 PM
If someone wants to write any guides specific to this version please feel free to use the Wiki ... or PM/email it to me and I'll post it for you.

tjacyno
01-11-2010, 07:46 PM
I played around with 6.2, and from what I have seen, it would be rather difficult to create persistent home directory when running from a CD. The reason is that the Knoppix initialization script looks for the persistent home image in its /mnt-system directory, which, in the case of a CD boot, is on the CD (see the "init" script, line 577, on minirt.gz). There is no way to specify a custom configuration script either, since it has to be located at /mnt-system/KNOPPIX/knoppix.sh (see /etc/init.d/knoppix-autoconfig, lines 602-608). Please correct me if I missed something.

I succeeded in creating a persistent home by modifying the minirt init script from


for base in /mnt-system/"$knoppix_dir"/knoppix-data /mnt-system/knoppix; do

to


for base in $home /mnt-system/"$knoppix_dir"/knoppix-data /mnt-system/knoppix; do

allowing me to specify a "home=.../knoppix-data" cheat code at startup (no suffix, even though the image name is .../knoppix-data.img, since the init script adds the suffix based on whether the image is raw, i.e.".img", or aes-encoded, i.e. ".aes"). Please note that I did not use the original minirt.gz, but rather the one from knx620k.zip posted at http://www.knoppix.net/forum/viewtopic.php?p=121968#121968, which allows running Knoppix as an ISO image from the hard disk .

Regards,
Terence