On Monday 21 August 2006 21:48, Jerry Feldman wrote:
On Monday 21 August 2006 4:30 pm, Istvan Gabor wrote:
Hello:
I've got a hard disk with a vfat partitition which I'd like to backup using dd. I tried: dd if=/dev/hdc1 of=/mnt/bakup-dd where /dev/hdc1 is the vfat partition and on /mnt is a mounted ext3 partiton. It gave this result: dd: reading `/dev/hdc1': Input/output error 510656+0 records in 510656+0 records out 261455872 bytes (261 MB) copied, 101.931 seconds, 2.6 MB/s
What would be the correct dd command to back up the whole vfat partition as a file in an ext3 partition?
Lots of different ways. 1. dd if=/dev/hdc1 of=/dev/hdxn #back up a file system 2. mount /dev/hdc1 /windows/c cd /windows/c rsync -auz . /mnt/windows.backup 3. tar czf /mnt/backup/windows.c.tar.gz . 4. dd if=/dev/hdc1 of=/mnt/bakup-dd/windows.c.img #backup the image of /dev/hdc.
4 is what he did though. Possibly a problem with the disk? OP: Try monitoring /var/log/messages while running this command and see if there are errors coming up for that disk. You did umount the /dev/hdc didn't you before running this command didn't you? How big is the partition? The speed (2.6 MB/s) makes me suspect a USB pen drive... It may be that because you're not speccing a block and count, and if the partition fills the key, then the I/O error could be due to trying to read the "next" block which is beyond the bounds of the USB pen drive. -- Steve Boddy