
11 Aug
2015
11 Aug
'15
03:00
On Tuesday 2015-08-11 04:29, Greg Freemyer wrote:
My method would be to make a full copy of the drive to a usb drive via dd.
dd if=/dev/sda of=image_file.dd bs=4k conv=sync,noerror
Then restore it via dd.
ddrescue is a much better program for this task.
The restore should cause any bad sectors to remap, assuming there are any spare sectors to remap to.
For that, you do not have to copy the entire disk. Grab a bad sector list, and only rewrite those. Something like ddrescue -f /dev/sda /dev/zero logfile.txt ddrescue -f -F - /dev/zero /dev/sda logflie.txt -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org