[wplug] Data Recovery

Jonathan S Billings billings at negate.org
Fri Feb 4 14:04:44 EST 2005


Chris Ott wrote:
> 
> I'm not sure how valuable this is. The line:
> 
>     dd if=/dev/hda of=/dev/hdb
> 
> assumes the drive is completely functional. As soon as "dd" hits the 
> first bad block, it will quit with an "I/O error". I think:
> 
>     cp -r /mnt/hda5/home/carla /mnt/hdb1/home/carla/backup
> 
> will do the same, but I'm not 100% sure, because I don't use it that often.
> 
> That's why I had to write my program in the first place. It's basically 
> a "dd" (more like a "cat") that ignores bad blocks. There isn't anything 
>  on Linux (or Unix) that I know of, which will do that.
> 
> If anyone knows of something I'm missing, please let us all know.

dd if=/dev/hda of=(whatever) conv=noerror

I believe you'll find dd on nearly every unix.


-- 
Jonathan S. Billings <billings at negate.org>


More information about the wplug mailing list