Damn Small Linux (DSL) Forums

Damn Small Linux => HD Install => Topic started by: Pitmaster on October 15, 2013, 11:56:47 AM



Title: Persistence problems at HD install
Post by: Pitmaster on October 15, 2013, 11:56:47 AM
Hi, I want to make my HD install persistence. I use grub for bootloader but no luck on keeping things in good shape.

This is how my menu.lst looks like
title DSL
kernel /boot/linux24 root=/dev/hda1 home=hda1 opt=hda1 quiet vga=normal noacpi noapm noscsi frugal

I want my DSL to act like a normal OS. Keep everything as it is.

Urgent problem: export PATH doesn't stay, /home/dsl doesn't stay and /opt doesn't stay.

Yes, I read http://www.damnsmalllinux.org/wiki/persistence.html

Copying files doesn't work because it alwas is the same directorie I want to copy to.
mount /mnt/hda1 (made that "mount /dev/hda1 /home/dsl/drive" because /mnt/hda1 isn't in fstab)
mkdir -p /home/dsl/drive/home already is there
cp -a /home/dsl /home/dsl/drive/home is copy to itself

The same happens for /opt.

Heeeeelp..........

Nico


Title: Re: Persistence problems at HD install
Post by: andrewb on October 18, 2013, 12:36:57 AM
I think the wiki is missing some steps.
Under persistent it should go:

1.      boot without the home= & opt= boodcodes.
2.      copy home & opt to hda1.
3.      remove home & opt from filetool.lst in /opt.
4.      add the home= & opt= bootcodes to menu.lst
5.      reboot (make sure the backup option is selected so a new backup file is written without home & opt in it)

To make the export Path persist across reboots you will need to put it in bootlocal.sh. Once you have removed /opt from filetool.lst as above the export PATH will persist over reboots. Note that bootlocal is executed as root.

This is what I have always used to set up persistence.


Title: Persistence problems at HD install
Post by: awantialold on September 07, 2017, 12:48:29 PM
Im very unfamiliar with scripting and the like. What should I name this test script?


Powered by SMF 1.1.20 | SMF © 2013, Simple Machines