USB backup & restore...again....Forum: Other Help Topics Topic: USB backup & restore...again.... started by: koala_sprint Posted by koala_sprint on July 26 2004,21:44
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 ? Posted by nah on July 27 2004,13:56
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 ? Posted by roberts on Aug. 02 2004,07:33
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.
Posted by nah on Aug. 02 2004,09:15
ThanksI'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 Posted by roberts on Aug. 02 2004,13:00
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.shTo 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. |