Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Persistent home and opt directories not working?< Next Oldest | Next Newest >
xpt Offline





Group: Members
Posts: 11
Joined: Jan. 2007
Posted: May 11 2007,14:21 QUOTE

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
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: May 11 2007,15:32 QUOTE

According to the wiki, you should use home=sdb2
if it is the same under DSL.
Back to top
Profile PM 
xpt Offline





Group: Members
Posts: 11
Joined: Jan. 2007
Posted: May 11 2007,18:31 QUOTE

Thanks,

when my usb will show up as either sda or sdc sometimes, what should I do?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: May 12 2007,02:40 QUOTE

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).
Back to top
Profile PM 
3 replies since May 11 2007,14:21 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Persistent home and opt directories not working?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code