Debian Codegraph @

README

raw
1 See the file INSTALL for compilation and installation instructions.
2
3 Description
4
5 GNU ddrescue is a data recovery tool. It copies data from one file or block
6 device (hard disc, cdrom, etc) to another, trying to rescue the good parts
7 first in case of read errors.
8
9 The ddrescue package also includes ddrescuelog, an auxiliary tool that
10 manipulates ddrescue mapfiles, shows mapfile contents, converts mapfiles
11 to/from other formats, compares mapfiles, tests rescue status, and can delete
12 a mapfile if the rescue is done. Ddrescuelog operations can be restricted to
13 one or several parts of the mapfile if the domain setting options are used.
14
15 The basic operation of ddrescue is fully automatic. That is, you don't have
16 to wait for an error, stop the program, restart it from a new position, etc.
17
18 If you use the mapfile feature of ddrescue, the data are rescued
19 efficiently, (only the blocks needed are read). Also you may interrupt the
20 rescue at any time and resume it later at the same point. The mapfile is an
21 essential part of ddrescue's effectiveness. Use it unless you know what you
22 are doing.
23
24 Ddrescue does not write zeros to the output when it finds bad sectors in the
25 input, and does not truncate the output file if not asked to. So, every time
26 you run it on the same output file, it tries to fill in the gaps without
27 wiping out the data already rescued.
28
29 Automatic merging of backups: If you have two or more damaged copies of a
30 file, cdrom, etc, and run ddrescue on all of them, one at a time, with the
31 same output file, you will probably obtain a complete and error-free file.
32 This is so because the probability of having the same area damaged in all
33 copies is low (if the errors are randomly located). Using the mapfile, only
34 the blocks needed are read from the second and successive copies.
35
36 The mapfile is periodically saved to disc, as well as when ddrescue finishes
37 or is interrupted. A backup copy of the mapfile with the extension ".bak" is
38 also periodically created (if possible). So in case of a crash you can
39 resume the rescue with little recopying.
40
41 The same mapfile can be used for multiple commands that copy different areas
42 of the input file, and for multiple recovery attempts over different subsets.
43
44 Ddrescue recommends lzip for compression of backups because the lzip format
45 is designed for long-term archiving and provides data recovery capabilities
46 which nicely complement those of ddrescue. (Ddrescue reads as many sectors
47 as it can, while lziprecover uses other data to repair the sectors that
48 ddrescue was not able to read). Lziprecover's FEC algorithm can repair any
49 kind of file, but its ability to repair lzip files is greater than for other
50 kinds of files. Lziprecover can use the statistical properties of lzip data
51 to repair a lzip file rescued with ddrescue, even if the fec file is so
52 damaged that it has lost both CRC arrays. Lziprecover fec files can be used
53 as recovery record for tar.lz archives. If the cause of file corruption is a
54 damaged medium, the combination ddrescue + lziprecover is the recommended
55 option for recovering data from damaged files.
56
57 Because ddrescue needs to read and write at random places, it only works on
58 seekable (random access) input and output files. Therefore, the only way of
59 creating a compressed image with ddrescue is to create a normal
60 (uncompressed) image first, and then compress that image.
61
62 If your system supports it, ddrescue can use direct disc access to read the
63 input file, bypassing the kernel cache.
64
65 Ddrescue aligns its I/O buffer to the sector size so that it can be used for
66 direct disc access or to read from raw devices. For efficiency reasons, also
67 aligns it to the memory page size if page size is a multiple of sector size.
68 The manual explains how to use direct disc access or raw devices with
69 ddrescue.
70
71 One of the strengths of ddrescue is that it is interface-agnostic, and so
72 can be used for any kind of device supported by your kernel (ATA, SATA,
73 SCSI, old MFM drives, floppy discs, or even flash media cards like SD).
74
75 Recordable CD and DVD media keep their data only for a finite time
76 (typically for some years). After that time, data loss develops slowly with
77 read errors growing from the outer region towards the inside. It is a good
78 idea to make two (or more) copies of every important CD-ROM/DVD you burn so
79 that you can later recover them with ddrescue.
80
81 Ddrescue also features a 'fill mode' able to selectively overwrite parts of
82 the output file, which has a number of interesting uses like wiping data,
83 marking bad areas, or even, in some cases, "repair" damaged sectors.
84
85 Ddrescue uses Arg_parser for command-line argument parsing:
86 http://www.nongnu.org/arg-parser/arg_parser.html
87 Ddrescue uses Rational to parse small fractions from the command line:
88 http://www.nongnu.org/arg-parser/rational.html
89
90
91 Copyright (C) 2004-2026 Antonio Diaz Diaz.
92
93 This file is free documentation: you have unlimited permission to copy,
94 distribute, and modify it.
95
96 The file Makefile.in is a data file used by configure to produce the Makefile.
97 It has the same copyright owner and permissions that configure itself.