Damaged Hard Disk

#linux:

fdisk -l

#mac

diskutil list

#alse use this command:

dd if=/dev/old_disk of=/dev/new_disk conv=noerror,sync

Kurt Garloff’s ‘dd_rescue’

If you believe there are many damaged sectors on the drive, you can try using Kurt Garloff’s ‘dd_rescue’ (dd_rescue) instead of dd.

The best method: Antonio Diaz’s GNU ‘ddrescue’

The best solution – both faster and more efficient – seems to be Antonio Diaz’s ‘ddrescue’ (ddrescue)

# download ddrescue

wget http://download.savannah.gnu.org/releases/ddrescue/ddrescue-1.8.tar.bz2

# extract the source code

tar xjf ddrescue-1.8.tar.bz2

# compile ddrescue

cd ddrescue-1.8

./configure && make

# first, grab most of the error-free areas in a hurry:

./ddrescue -n /dev/old_disk /dev/new_disk rescued.log

# then try to recover as much of the dicy areas as possible:

./ddrescue -r 1 /dev/old_disk /dev/new_disk rescued.log