Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I get I/O errors from my storage HD when i try to copy files. These are large raw video files, so I can tolerate errors.

cp stops on the first read error and scp/rsync complains and deletes the copy. With the correct ignore/force flags I could probably get all of them to leave a "damaged copy".

Which tool should I use for this (incl. options)?

I.e., which tool will create the "best" copy (closest to the original)?

Note: This is a disk with physical damage, confirmed by the proper diagnostic tools. I've also run a thorough fsck.

share|improve this question

1 Answer 1

up vote 9 down vote accepted

ddrescue should do the trick – it's designed for this very situation.

GNU ddrescue is a data recovery tool. It copies data from one file or block device (hard disc, cdrom, etc) to another, trying hard to rescue data in case of read errors. The basic operation of ddrescue is fully automatic. That is, you don't have to wait for an error, stop the program, read the log, run it in reverse mode, etc.

You can download it here or find a manual here. It is also pre-installed on the SystemRescueCD.

share|improve this answer
    
Perfect! Thank you very much. –  Joernsn Sep 6 '11 at 16:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.