2012年7月20日星期五

ddrescue

Command for ddrescue

using rescuecd
----------------------
ddrescue -b 4096 /dev/sda1 /mnt/windows

using ubuntu live cd
---------------------------
sudo -i
start update manage and enable univise
apt-get install gddrescue

ddrescue --no-split /dev/sda /dev/sdb --force

--force * sometimes will be needed to force it to write on the target drive. Use with care. It will erase all data on the target harddisk.

*** Remarks

/dev/sda is the source & bad drive
/dev/sdb is the new & empty drive

*** Some examples procedures

First you copy as much data as possible, without retrying or splitting sectors:
  • ddrescue --no-split /dev/hda1 imagefile logfile 
Now let it retry previous errors 3 times, using uncached reads:
  • ddrescue --direct --max-retries=3 /dev/hda1 imagefile logfile 
If that fails you can try again but retrimmed, so it tries to reread full sectors:
ddrescue --direct --retrim --max-retries=3 /dev/hda1 imagefile logfile

沒有留言: