A disk that clicks, stalls or throws read errors gets worse with every pass. Scanning it directly with a recovery tool means many more passes. The safe order is: look at its health without writing anything, copy it once into an image with a map of what was read, and then recover files from the image.
This walkthrough does that with Loosha Data Recovery 1.4.3 and GNU ddrescue, on a lab disk that really fails: some blocks are unreadable, one block fails twice and then reads, and two areas are slow. GNU ddrescue makes the first fast copy, Loosha continues the same image and map, and the map stays in GNU format so ddrescue can take over again.
Download the failing-disk lab Download the source exFAT image Download Loosha Data Recovery
The lab disk
You cannot download a failing disk, so the lab builds one. faultydisk.py is a small read-only FUSE filesystem for Linux. It exposes the 129 MiB exFAT sample stick from the USB article as /tmp/faulty/disk.img and makes it fail on purpose:
| Byte range | Behaviour | What it hits |
|---|---|---|
0x494000 + 4 KiB | always unreadable | inside holiday-…-old-harbour.jpg |
0x4E2000 + 4 KiB | fails twice, then reads | inside notes.txt |
0x4000000 + 256 KiB | always unreadable | free space |
0x7100000 + 1536 bytes | always unreadable | free space |
8 MiB at 0x1400000 | 40 ms per read | — |
512 KiB at 0x6400000 | 700 ms per read | — |
pip install fusepy
mkdir /tmp/faulty
python3 faultydisk.py usb-exfat.img /tmp/faulty faulty.json
On a real failing disk, skip this part and use the disk itself as the source. Keep the destination on a different, healthy disk.
Step 1 — Health, without writing
In the Wizard, step 1 Source has Read health; in Expert mode the same check is under Disk health & surface. It reads SMART only: attributes, the error and self-test logs, and HPA/DCO detection. Nothing is sent that changes the disk. SMART needs a real block device; on an image or the lab file it says so plainly: “SMART unavailable: SMART source must be a block device”. A clean SMART report does not certify a healthy surface, so do not skip imaging because of it.
Step 2 — A read-only surface check (optional)
If you want a picture of the damage before you copy, open Expert → … → Disk health & surface, put the source in the path field at the top and click Full surface check (or Quick surface check for the first 16 MiB). It reads every block once and writes nothing to the disk; the checkpoint file goes to the path you give.

On the lab disk the check took about three minutes (0.8 MB/s on average), almost all of it in the two slow areas. The map shows the unreadable ranges in red and the 700 ms area in orange. The bad-blocks list gives exact offsets (0x494000, 0x4E2000, 0x4000000, 0x7100000), and Export bad blocks (CSV) and Export latency histogram (CSV) save them. The check reads each block once, so the block that only fails twice is listed as bad here; imaging retries it later.
The latency histogram counts every 4 KiB block by its own read time, so it shows the lab’s damage directly:
| Bin | Blocks | What they are |
|---|---|---|
| <5 ms | 30,781 | healthy areas |
| <50 ms | 2,046 | the 8 MiB at 40 ms per read |
| ≥600 ms | 128 | the 512 KiB at 700 ms per read |
| errors | 67 | 268 KiB in the four bad areas |
The other bins hold a handful of blocks or none; a second run moves one or two blocks between neighbouring bins, as timing always does. From the command line the same check is:
LooshaDataRecoveryCLI surface -image /tmp/faulty/disk.img -out surface.json -surface-map surface.map -histogram histogram.csv
surface.map is a GNU ddrescue mapfile (readable areas +, unreadable -); ddrescuelog -t surface.map reads it and reports 99.80% rescued and 274,432 bytes bad. It describes readability only: it is not an image, so do not hand it to ddrescue as the map of a copy.
Every surface pass is another full read of a weak disk. On a disk that is clearly failing, go straight to imaging.
Step 3 — First pass with GNU ddrescue
GNU ddrescue’s first pass skips over trouble and copies the easy areas quickly. In the lab we interrupted it after eight seconds, which leaves a map with all the states you meet in real life:
timeout -s INT 8 ddrescue -n /tmp/faulty/disk.img rescue.img rescue.map
# pos size status
0x00000000 0x00490000 +
0x00490000 0x00010000 *
…
0x06440000 0x01CC0000 ?
+ is copied, * failed and not yet trimmed, ? not tried. The image is shorter than the disk at this point (105 MB of 135 MB). The full map from our run is gnu-stage1.map in the lab zip.
Step 4 — Continue the same image in Loosha
Open Expert → Acquisition. In Acquire RAW image, enter the source (/tmp/faulty/disk.img, or the failing disk). In Continue an image started by GNU ddrescue, enter rescue.img and rescue.map, or use Load mapfile…. The map view draws the GNU map as a colour grid with a legend: 77.3% finished, 22.5% non-tried, 0.2% non-trimmed.

A GNU mapfile does not record which disk it belongs to. Loosha therefore asks you to confirm that the map and image really came from this source. Tick I understand this mapfile has no source-identity binding, click Continue GNU ddrescue image, and confirm.

Loosha copies only what is not yet +, retries failures, extends the short image to the full size, and rewrites the map in place. The grid refreshes while it runs. On the lab disk it finished with 134,998,528 bytes rescued and 267,776 unreadable, which is exactly the three permanently bad ranges. The block that failed twice was read on retry.

# current_pos current_status current_pass
0x8100000 + 1
# pos size status
0x0 0x494000 +
0x494000 0x1000 -
0x495000 0x3B6B000 +
0x4000000 0x40000 -
0x4040000 0x30C0000 +
0x7100000 0x600 -
0x7100600 0xFFFA00 +
We compared the finished image with the original sample byte for byte: identical everywhere except the three - ranges, which are zero-filled.
The CLI does the same:
LooshaDataRecoveryCLI continue-map -image /tmp/faulty/disk.img -dest rescue.img -map-a rescue.map -confirm-foreign
Without -confirm-foreign it refuses. Add -allow-same-volume only if the image is deliberately on the same disk as a source file, as in a lab.
Step 5 — Hand it back to ddrescue if you like
The map Loosha writes is a normal GNU mapfile. In our run ddrescuelog -t rescue.map read it without complaint, and ddrescue -r2 /tmp/faulty/disk.img rescue.img rescue.map accepted it and retried the bad areas. You can switch tools in either direction without starting the copy again.
Step 6 — Recover files from the image, honestly
Recover from the image, never from the failing disk. Import the image together with its map so Loosha knows which bytes are real and which are holes:
LooshaDataRecoveryCLI import-image -image rescue.img -map-a rescue.map -dest IMPORTED
Then open IMPORTED/image.raw like any image. The listing now uses the map:
Partial 414864 holiday-2026-08-14-family-picnic-at-the-old-harbour.jpg
Good 30000 notes.txt
The holiday photo is Partial: 4 KiB of it, starting at byte 110592 of the file, sits in an unreadable range. A normal export is refused with “File contains unavailable acquisition ranges”. If you want the rest anyway, ask for it explicitly with -allow-partial: Loosha writes PARTIAL-holiday-….jpg with the unknown bytes as zeros, plus availability.map, which marks exactly which bytes are missing (0x1B000 0x1000 -). notes.txt, which sat on the block that failed twice, came back identical by SHA-256.
Imaging with Loosha alone
You do not need GNU ddrescue at all. In Expert → Acquisition → Acquire RAW image, enter the source and a new folder on another disk, and click Create / resume image. Loosha makes a fast forward pass, then trims, scrapes and retries the damaged areas, and writes image.raw, a GNU-format image.map and acquisition.json. The map view fills in as it goes.

LooshaDataRecoveryCLI acquire -image /tmp/faulty/disk.img -dest ACQ -retries 2
On the lab disk it took six seconds and found the same three bad ranges as the GNU route; the block that failed twice was read on retry. The image was byte-identical to the one from Step 4. The CLI exits with code 1 and “acquisition has unreadable ranges”, which is a warning that the map has - areas, not a failure: everything readable is in the image. If the copy is interrupted, tick Resume compatible checkpoint (CLI -resume-acquisition) and it continues where it stopped. Open ACQ/image.raw as in Step 6; the map next to it tells Loosha which bytes are missing.
Use -allow-same-volume (GUI: Allow same/unknown backing disk) only in a lab like this one, where the FUSE source has no physical disk Loosha can compare with the destination.
Limits
- The lab is a simulation. Real disks fail in more ways: they slow down as they warm up, drop off the bus, or die mid-copy. Get the easy data first and leave scraping for later passes. Native imaging was tested on this lab file, not on failing hardware.
- A GNU mapfile has no source identity. If you point Loosha at the wrong disk, it will fill the image with the wrong bytes; the confirmation is there for that reason.
- Loosha does not treat Linux loop or device-mapper devices as physical sources. That is why the lab uses a FUSE file rather than a
dm-errordevice. - SMART was not exercised on a real disk for this article.
Related: recover deleted files from a USB stick and prove them with SHA-256, and recover photos from a formatted SD card.
Download the failing-disk lab Download the source exFAT image Download Loosha Data Recovery
Tested with Loosha Data Recovery 1.4.3 (Linux build) and GNU ddrescue 1.29. The lab zip (SHA-256 faf037e0608198ee078717c713a32b59f113f4b21a9d141c159bce6ba9922e11) contains faultydisk.py, faulty.json, the stage-one GNU map and the map after Loosha finished. Product page: Loosha Data Recovery.