Based on PR 39202 by Edgar Fuss, some fixes and improvement by me. 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.