Sutff about my job and comments about personal activities. Take a look to the first idea.

Sunday, August 10, 2008

Disk Recovery

Last month I found a hard disk damaged while trying to back it up with partimage, so I had to do some recovery using knoppix + ddrescue, I found a good step-by step know-how in cgsecurity which explained breifly how to do it... and finally I found a good story on hard disk recovery. Partimage is a really easy tool to backup... and even let me knew about hard disk errors... Cheers to Francois Dupoux and Franck Ladurelle creator of partimage and Antonio Diaz Diaz creator of ddrescue

The procedure booting with knoppix
Download latest version of ddrescue and compile it
$ wget http://download.savannah.gnu.org/releases/ddrescue/ddrescue-1.8.tar.bz2
$ tar xfj ddrescue-1.8.tar.bz2; configure; make
Turn off messages of console
$ dmesg -n3
Read good disk sectors
$ ./ddrescue -n /dev/old_disk /dev/new_disk rescued.log
Read damaged sectors
$ ./ddrescue -r 1 /dev/old_disk /dev/new_disk rescued.log