copy files with rsync or dd
hi..
i am having SATA 500gb hdd which is having problem. the problem is with header which has started making noise. I have checked smartctl and it's result=Failed. But still all data on HDD is accessible. partition layout is as follow Code:
/dev/sda1 100M 25M 76M 25% /1 i have got new hdd 750GB and i am using rsync to copy every partition data to /dev/sdb1 but the top output Quote:
or any option how do i use dd... thank you... |
Don't use "dd".
You will (probably) be better off running the rsync one at a time. Then they won't interfere with each other, forcing the disk heads all over the place. Two are status "D", which means they are waiting on I/O to the disk. Could be either disk. |
Just out of curiosity why not dd?
I am asking because I recently had a failing ssd which started giving random errors. I found advice with a google search which recommended using dd from a live cd: dd if=/dev/sda1 of=/media/large_ext_drive/sda1.img bs=16M I then run fsck against the image since it seems like a bad idea to use this on a failing drive. fsck.ext4 -pvf /media/large_ext_drive/sda1.img I mounted the image file with: mount -o loop -t ext4 /media/large_ext_drive/sda1.img /mnt/original I finally used rsync to clone the contents of /mnt/original to a new drive, made the appropriate changes to fstab & installed grub. Regards, Stefan |
Different situation.
Using dd for forensic work is an excellent use. Particularly if you intend to operate on the image as you did. So yes the OP could have created images on sdb1 then recovered from them. Didn't seem likely that was the intent - it I was mistaken I'm happy to recant. |
This is not forensic use, this is a rescue operation. I highly recommend to use ddrescue for that. dd and rsync will have problems with failing drives, ddrescue will skip failing sectors and continue to copy readable parts of the disk. After copying those it will return to try to read the unreadable sectors. This method is better for rescue operations, since all readable parts are copied before stressing the disk with repeatedly trying to read the unreadable parts.
|
All times are GMT -5. The time now is 07:20 PM. |