Damn Small Linux (DSL) Forums
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 24, 2014, 06:48:46 AM

Login with username, password and session length
News
The new DSL forums are now open.
Stats
1249 Posts in 245 Topics by 256 Members
Latest Member: ckrnmcig79
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 670 times)
Pitmaster
Newbie
*
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.

Heeeeelp..........

Nico
Logged
mterras
Newbie
*
Posts: 23


View Profile
« Reply #1 on: October 17, 2013, 01:54:24 PM »

Hi Pimaster,
If you use the installation script (i'm not sure about that?), take a look at same problem  (in this forum) at this url:

http://damnsmalllinux.org/forums/index.php?topic=413.0

Seems that some install methods don't work:
  -grub bootloader ( => use lilo instead)
  -multipartition method ( => choose one entire partition)
But it means you don't have any swap, so have you enough RAM? (>128MB)

I personaly tested this install method, it works!
Hope it helps.
mterras
« Last Edit: October 17, 2013, 01:56:49 PM by mterras » Logged
andrewb
Newbie
*
Posts: 3



View Profile
« Reply #2 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.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

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