Damn Small Linux (DSL) Forums
Welcome, Guest. Please login or register.
September 27, 2023, 05:43:28 AM

Login with username, password and session length
The new DSL forums are now open.
11609 Posts in 311 Topics by 291 Members
Latest Member: mik3ca
Search:     Advanced search
* Home Help Search Login Register
Get The Official Damn Small Linux Book. Great VPS hosting provided by Tektonic

+  Damn Small Linux (DSL) Forums
|-+  Damn Small Linux
| |-+  HD Install
| | |-+  Persistence problems at HD install
« previous next »
Pages: [1] Print
Author Topic: Persistence problems at HD install  (Read 14628 times)
Posts: 1

View Profile Email
« 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.


Posts: 7

View Profile
« Reply #1 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.
Posts: 4

albertdover321@outlook.com awantialold awantialold
View Profile
« Reply #2 on: September 07, 2017, 12:48:29 PM »

Im very unfamiliar with scripting and the like. What should I name this test script?
Pages: [1] Print 
« previous next »
Jump to:  

Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Mercury design by Bloc