Parse a GNU ddrescue mapfile and summarise recovery progress (rescued %, bad-sector areas, largest bad region).
Project description
ddrescue-report
A tiny, dependency-free tool to parse a GNU ddrescue mapfile and print a clear recovery summary: how much was rescued, how much is still non-tried, and where the bad-sector areas are.
GNU ddrescue is the standard tool for
imaging failing drives. It records its progress in a mapfile, but the raw file
is hard to read at a glance. ddrescue-report turns it into numbers you can act
on.
Install
pip install ddrescue-report
Usage
ddrescue-report rescue.map
Example output:
Total size : 500.11 GiB
Rescued : 499.98 GiB (99.9740%)
Non-tried : 0 B
Pending(*//-) : 132.00 MiB
Bad sectors : 132.00 MiB (0.0258%) in 7 area(s)
Largest bad : 64.00 MiB at offset 0x1d2a40000
Read from stdin with -:
cat rescue.map | ddrescue-report -
As a library
from ddrescue_report import parse_mapfile, summarise
blocks = parse_mapfile(open("rescue.map").read())
s = summarise(blocks)
print(s.rescued_pct, s.bad_areas)
Mapfile status characters
| Char | Meaning |
|---|---|
+ |
finished (rescued) |
? |
non-tried |
* |
non-trimmed (failed) |
/ |
non-scraped (failed) |
- |
bad-sector (failed) |
More on data recovery
Guides on data recovery, ddrescue workflows and choosing recovery software: save-my-disk.com.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ddrescue_report-0.1.0.tar.gz.
File metadata
- Download URL: ddrescue_report-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fd521344c5d5bc7ff69561d73868b7fb758e4ae84eb986f9ee4035f0a9e5553
|
|
| MD5 |
785685ddea640933bed5a026a05cffc5
|
|
| BLAKE2b-256 |
08fa4555ccd78bd34f7a8a3d097b4ea8a720a50edcaedba3af0a72d94c942220
|
File details
Details for the file ddrescue_report-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ddrescue_report-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63c93df8747fe70b86a601b58acd7c4a8bf6a266d7598efd4b227ab0977b80e9
|
|
| MD5 |
a544e8645077a6dcae8c531308650796
|
|
| BLAKE2b-256 |
9a1d8768070a5be88346f9ad90588458ccf7d5fc0f0d007cfa1bdce6b7794fb8
|