Azitech

Azimout's Linux weblog

ddrescue

leave a comment »

To recover data from a failing hard drive, install gddrescue, unmount the failing drive and then run:

sudo ddrescue -v /dev/disk_to_rescue_from /path_to_rescue_to /path_to_log_file

If for some reason you had to stop the recovery process (can take several days) and need to continue from where it stopped, run the same command as above adding the -T parameter.

Advice:

  1. Run first with the -n parameter (reads only the most easily recoverable blocks) and then again with -dr3 (direct disk access, retry 3 times) to try and recover the more difficult blocks.
  2. If you get I/O errors, do NOT try to repair the filesystem. You’ll likely cause even more damage!

Reference: http://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html

Advertisements

Written by azimout

17/08/2010 at 16:18

Posted in Howto

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: