ddrescue - GNU ddrescue is a data recovery tool
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.
If you use the logfile feature of ddrescue, the data is rescued very
efficiently, (only the needed blocks are read). Also you can interrupt
the rescue at any time and resume it later at the same point.
Automatic merging of backups: If you have two or more damaged copies of
a file, cdrom, etc, and run ddrescue on all of them, one at a time,
with the same output file, you will probably obtain a complete and
error-free file. This is so because the probability of having damaged
areas at the same places on different input files is very low. Using
the logfile, only the needed blocks are read from the second and
The logfile is periodically saved to disc. So in case of a crash you can
resume the rescue with little recopying.
Also, the same logfile can be used for multiple commands that copy
different areas of the file, and for multiple recovery attempts over
Ddrescue does not truncate the output file if not asked to. So, every
time you run it on the same output file, it tries to fill in the gaps.
Because ddrescue needs to read and write at random places, it only works
on seekable (random access) input and output files.
If your system supports it, ddrescue can use direct disc access to read
the input file, bypassing the kernel cache.
Ddrescue aligns its I/O buffer to the sector size so that it can be used
for direct disc access or to read from raw devices. For efficiency
reasons, also aligns it to the memory page size if page size is a
multiple of sector size. Read the info file to learn how to use direct
disc access or raw devices with ddrescue.
Ddrescue is also able to selectively overwrite parts of the output file,
which has a number of interesting uses like wiping data, marking bad
areas or even, in some cases, "repair" damaged sectors.
- Enable PCLinuxOS x86_64 repository in /etc/apt/sources.list:
rpm http://ftp.nluug.nl/pub/os/Linux/distr/pclinuxos/pclinuxos/apt/ pclinuxos/64bit x86_64
- Update the package index:
# apt-get update
- Install ddrescue rpm package:
# apt-get install ddrescue