Other Help Topics :: FROM RAM to USB (configurations)



Hello folks,

I managed to get my usb-stick bootable but now i want to save my changes/configuration to the stick! I know about: filetool.lst but that file is located in RAM so any changes i make will go lost when i reboot! (won't they?)

I had trouble making the stick bootable, in the end i copied evrything from the boot-floppy to the usb stick (after a syslinux /dev/sda1) and then it finnaly worked. I had to do it this way because of the error messages i got with frugal. (see they how to-section)...

Anybody any ideas?

When you run a backup , backup to sda1..
Make sure the line " /home/dsl/filetool.lst "  is in your " /home/dsl/filetool.lst " ..
As well as any other areas you want in your backup..  
Then add the restore command to your bootup, for example..
" dsl dma toram mydsl=sda2 restore=sda1 "
( I have a second partition on my USBkey for extensions and junk )
Here's my filetool.lst ..
---------------------------------------------------------
opt/ppp
opt/bootlocal.sh
opt/powerdown.sh
opt/.firefox_plugins
home/dsl/filetool.lst
home/dsl/.fluxbox/backgrounds
home/dsl/.fluxbox/styles
home/dsl/.fluxbox/init
home/dsl/.xinitrc
home/dsl/.xserverrc
home/dsl/.phoenix
home/dsl/Mail
home/dsl/.sylpheed
home/dsl/.axyftp
home/dsl/.xmms
home/dsl/.opera
etc/apt/sources.list
home/dsl/.ssh
home/dsl/.xtdeskrc
home/dsl/.barrage.hscr
home/dsl/.dillo
------------------------------------------------------------

73
ke4nt

if you do a backup, all files and directories named in the file: /home/dsl/filetool.lst will be put in the backup-file.
so if you want to save i.e. firefox settings
add
/home/dsl/.phoenix
/home/dsl/.mozilla
to this file

if you look into the filetool.lst you will see the first line is:
/home/dsl/filetool.lst

that means that it the file itself is backed up to.

a little problem may be if you run DSL from the stick (that is jou do not use toram)
if you want to backup to /dev/sda1 you get mount errors

i solved it this way:
i backup to /cdrom ( that is NOT the real cdrom, but the root of your bootdevice )
first i make /cdrom writeable ( sudo mount /cdrom -o remount,rw)
then make a /opt/.backup_device file ( echo "/cdrom" >/opt/.backup_device.
then do a backup (filetool.sh backup noprompt noprompt)

this can easy be automated.
1. create an  S49dsl_restore.dsl ( its is a q&d patched replacement of /etc/rc5.d/S49dsl_restore, the only modyfication is
Code Sample

# Aw schucks, sorry I couldn't mount any drive that I know...
 BACKUP_DEVICE="/cdrom"
 echo "$BACKUP_DEVICE" > /opt/.backup_device
return

)

2 add to bootlocal.sh: mount /cdrom -o remount,rw

3 uncomment in powerdown.sh : filetool.sh backup noprompt noprompt

done.

this way i can have /KNOPPIX/knoppix.img AND dsl extensions AND backup-file in the same diskpartion

maybe someone knows a better way?

henk1955, using the remount command has been posted here before. It is the correct way to allow backups on the usb pendrive single partition.
In 0.8.1 we have made this capability of saving to a single partition on the pendrive  transparent.

i kown aboubt the remounting of /cdrom.
BUT that is only half of the sollution of my problem.

if i type at the boot pompt:
dsl fromhd=/dev/hda2 restore=/dev/hda2
i get mount errors, and no restore has taken place.

therfore i have made a small dsl extension that replaces S49dsl-restore.

now if i type:
dsl fromhd=/dev/hda2 restore
every thing goes well

Next Page...
original here.