ddrescue mapfile
A ddrescue mapfile records input byte ranges and their rescue states so copying can resume without rereading ranges marked finished.
The data-block list records input offsets, lengths and states including non-tried, non-trimmed, non-scraped, bad-sector or finished. Preserve input/output offsets and the original map with its corresponding image version. A finished state is recovery bookkeeping, not comparison against a trusted digest. [1]
Generate mode reconstructs an approximate map by treating nonzero output sectors as finished. Old destination bytes can be mistaken for recovered data, while genuine zero sectors can be treated as non-tried. Sparse output requires an empty or zeroed destination. [1]
A controlled 4096-byte example reached a complete map after resume while 512 stale bytes remained from earlier sparse writes into a nonzero file. Another pair had identical image bytes but different acquisition coverage. These are constructed software cases, not hardware failure rates. [2]
Relations
- related
- sparse-file, checksum, backup-verification
Advantages
- Retains interval-level progress for interrupted rescue operations. [1]
Limitations
- A completion check applies only to its selected rescue domain. [1]
Citations
- GNU ddrescue 1.30 manual: mapfile structure, generate mode and ddrescuelog
- Hesela: ddrescue image provenance, twelve controlled cases
Sources & caveats
Published by Hesela team · Updated
Report a correction · Editorial standards · Reuse guidance
Cite this page
Hesela team. ddrescue mapfile. Hesela. 2026-10-18. https://hesela.dev/terms/ddrescue-mapfile/