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
Pages: (4) </ [1] 2 3 4 >/

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

reply to topic new topic new poll
Topic: FROM RAM to USB (configurations), booting from usb (ram)< Next Oldest | Next Newest >
Patrick Offline





Group: Members
Posts: 333
Joined: Sep. 2004
Posted: Sep. 07 2004,11:57 QUOTE

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?


--------------
Usb-stick sandisk cruzer titanium 512 Mb:
DSL 2.3 (final)
Firefox (Mozilla 1.06)
WM -biff  -cdplay -clockmon -smixer -usic -top -net -biff -ifinfo -cpuload
gps vnc LinNeighborhood (samba) QtParted bdc
xawtv imagemagick xplanet
Back to top
Profile PM WEB 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: Sep. 07 2004,12:31 QUOTE

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





Group: Members
Posts: 249
Joined: June 2004
Posted: Sep. 07 2004,12:56 QUOTE

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?


--------------
You have a Q or just want to chat?
Come to #damnsmalllinux on irc.freenode.net!
Open 24/7

dell latitude c640 p4@1.6Ghz 256Mb DSL0.9.1-remaster
asus p4p800-vm p4@2.8Ghz HT / celeron@2.4Ghz 512Mb DSL0.9.1-remaster (alsadebs.dsl)
ABit BE6 celeron@466 256Mb DSL0.9.1-remaster (xawtv)
Back to top
Profile PM WEB MSN 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Sep. 07 2004,14:59 QUOTE

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.
Back to top
Profile PM WEB 
henk1955 Offline





Group: Members
Posts: 249
Joined: June 2004
Posted: Sep. 08 2004,07:31 QUOTE

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


--------------
You have a Q or just want to chat?
Come to #damnsmalllinux on irc.freenode.net!
Open 24/7

dell latitude c640 p4@1.6Ghz 256Mb DSL0.9.1-remaster
asus p4p800-vm p4@2.8Ghz HT / celeron@2.4Ghz 512Mb DSL0.9.1-remaster (alsadebs.dsl)
ABit BE6 celeron@466 256Mb DSL0.9.1-remaster (xawtv)
Back to top
Profile PM WEB MSN 
15 replies since Sep. 07 2004,11:57 < Next Oldest | Next Newest >

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

Pages: (4) </ [1] 2 3 4 >/
reply to topic new topic new poll
Quick Reply: FROM RAM to USB (configurations)

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