Joined: Jan. 2007
||Posted: 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 |
#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
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.
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?