Persistent home and opt directories not working?


Forum: DSL-N
Topic: Persistent home and opt directories not working?
started by: xpt

Posted by xpt on May 11 2007,14:21
Seems that I can't get the persistent home and opt directories working for my DSL-N. Take a look at the following syslinux.cfg configuration:

Code Sample

DEFAULT fb1280x1024
#APPEND home=/dev/sdb2 opt=/dev/sdb2 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt.gz nomce quiet BOOT_IMAGE=knoppix
APPEND bootfrom=/dev/sda2 home=/dev/sdb2 opt=/dev/sdb2 restore=sdb2 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=minirt.gz nomce quiet BOOT_IMAGE=knoppix
TIMEOUT 300


The commented out line is what I want my new DSL-N looks like. The actual line, that next to it, is what I configured my test DSL-N, and copied here because I can't get the "right" way works.

I have /home and /opt directory duplicated from my test USB to new usb. The content are the same as what's in backup.tar.gz. All in all, the test and new usb only differ is the "APPEND" line, yet test USB works while new usb won't.

Any comment?
While writing, I realized that the way DSL restore persistent home and opt directories and backup.tar.gz might be different. The "sdb" is what the USB will be at in my prime working PC, but while testing, I used two other PCs that my usb will show up as either sda or sdc. Would it be the culprit?

Any way to use udev/disk-label to restore persistent home and opt directories instead of hard-coded sdb, which would mostly fail?

thx

Posted by ^thehatsrule^ on May 11 2007,15:32
According to the wiki, you should use home=sdb2
if it is the same under DSL.

Posted by xpt on May 11 2007,18:31
Thanks,

when my usb will show up as either sda or sdc sometimes, what should I do?

Posted by ^thehatsrule^ on May 12 2007,02:40
I think plugging it under the same usb port each time will have the same letter...

If that doesn't help, then you might need to do something extra, such as editing the startup scripts...
(not sure if specifying more than one home= will act as a backup).

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.