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
 

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

reply to topic new topic new poll
Topic: USB backup & restore...again...., Backup & restore on the same key< Next Oldest | Next Newest >
koala_sprint Offline





Group: Members
Posts: 1
Joined: July 2004
Posted: July 26 2004,21:44 QUOTE

Hi,
At first, sorry for my english.. :(

-> Boot floppy (bootusb.img)
-> DSL 0.7.2 installed on a 256Mo Cruzer mini USB ( sda1 )

It works very well,
But i have a problem with backup & restore on sda1

On any other device than sda1,
it works.

On sda1,
I have the message " /dev/sda1 already mount or busy "
when i try to backup,even if i change the " Device Backup "

Could i backup on the sda1 device if DSL running on sda1 ?

???
Back to top
Profile PM 
nah Offline





Group: Members
Posts: 2
Joined: July 2004
Posted: July 27 2004,13:56 QUOTE

Hi, same problem for me.
I'm using 128 Mo USB Cruzer Mini.
have made some tricks from Feather but no issue.
I'm waiting for 0.7.3 ?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 02 2004,07:33 QUOTE

Both of these posts are talking about backup and restoring to a liveUSB device that is mounted under /cdrom? That is a single partiton on the USB device. It is possible to do this. Usually we prefer two partitions, so that the knoppix folder is not accidently deleted. If there is still interest in writing to a single partition of a live running USB device, then I will post it.
Back to top
Profile PM WEB 
nah Offline





Group: Members
Posts: 2
Joined: July 2004
Posted: Aug. 02 2004,09:15 QUOTE

Thanks
I've made a second partition and I could backup and restore from it. But I couldn't see it in Windows, could only access to the first partition.
Yes, Could you post how to backup on a single USB partition ?
Thanks
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 02 2004,13:00 QUOTE

If you are using the DSL usb stuff then the liveCD running USB device has the files mounted under /cdrom  It is currently mounted read-only. This little script will remount it rw and then performs the backup to the USB device in the same partition as the knoppix folder. Cut and Paste or carefully type this script. Call it usb-backup.sh

To save this script, add /home/dsl/usb-backup.sh to your filetool.lst. Also be sure that /home/dsl/filetool.lst is also listed in the filetool.lst

To use it. simple make it executeable. chmod +x usb-backup.sh
Then as root run the script. It uses the same filetool.lst to make a backup in the root directory of USB device.

There is a catch-22. How to restore, after rebooting?
Since this script is backuped to the USB we could not use a varation of the script to restore. And since this script is not on the cdrom, we have to manually type the following command to restore:

sudo tar -C / -zxvf /cdrom/backup.tar.gz


Below is the script to make a backup
#=========================================

#!/bin/sh
# Author Robert Shingledecker
# For DSL - to backup to a running liveUSB device mounted under /cdrom
if [ "$UID" != 0 ]; then
 echo "This requires root privileges."
 exit 1
fi
mount -o remount,rw /cdrom 2>/dev/null
tar -T filetool.lst -C / -cvzf /cdrom/backup.tar.gz 2>/dev/null

#===============================================

Have fun. Becareful not to delete or overwrite one of the needed system files.
Back to top
Profile PM WEB 
4 replies since July 26 2004,21:44 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: USB backup & restore...again....

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