Clone a failing Windows hard disk with ddrescue on Ubuntu Rescue Remix
Filed under: Hard Drive, Linux
Comments: None
Here’s what you need to do. Idiots beware, this is not an idiot-proof guide. Important but obvious steps are omitted. Feel free to embellish or enumerate such steps in your comments.
The Manual is at https://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html
- Download Ubuntu Rescue Remix here: http://ubuntu-rescue-remix.org/Download and burn it to a CD.
- Get a hard disk to replace the failing drive that is the same size or larger.
- Connect the new disk to the machine with the failing disk. A fast connection (eSATA) is better than a slow connection (USB).
- Boot the machine to the Ubuntu Rescue Remix CD. This will get you to a command-line prompt; there is no GUI.
- At the command prompt, key in the command: sudo lshw -C Disk -short.
This command will identify the disks as /dev/sda and /dev/sdb (or perhaps /dev/hda and /dev/hdb, or perhaps you have more than 2 drives connected, …). This command will list the size and make of each drive, which should allow you to determine which drive designation is the source/failing drive and which is the target/replacement drive. You need to know this without ambiguity; it is easier if the target is larger than the source. - For the sake of example, let’s assume that the source drive designation is determined to be /dev/sda and the target drive designation is /dev/sdb. Your situation may be different. To clone the source drive, at the command prompt, key in the command: format being Source —> Destination
sudo ddrescue -v -r 3 /dev/sda /dev/sdb logfile –force
That’s it. Depending on the size of the source drive and the number of bad blocks, it will take time to clone the drive. - When ddrescue is done, swap out the target disk for the source disk in the PC, and fire it up. It should boot and work as well as the source disk, but without the looming prospect of imminent disk failure.
- If you have used a larger target disk to clone the source, you may want to expand the partition to use the whole, larger disk. GParted will do the trick. Unfortuantely, this tool is not on the Ubuntu Rescue Remix CD. Parted is, but it will not resize NTFS partitions. You can find GParted on the Ubuntu live CD. You can download it here: http://www.ubuntu.com/download/ubuntu/download. Instructions for using GParted to resize a disk are here:http://gparted.sourceforge.net/larry/resize/resizing.htm.
Source Page
http://keystoneisit.blogspot.com/2011/08/clone-failing-windows-hard-disk-with.html