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 rangeBehaviourWhat it hits
0x494000 + 4 KiBalways unreadableinside holiday-…-old-harbour.jpg
0x4E2000 + 4 KiBfails twice, then readsinside notes.txt
0x4000000 + 256 KiBalways unreadablefree space
0x7100000 + 1536 bytesalways unreadablefree space
8 MiB at 0x140000040 ms per read—
512 KiB at 0x6400000700 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.

Loosha Disk health and surface tab after a full surface check of the lab disk: sector map with red unreadable cells and an orange slow strip, speed graph, latency histogram and a list of bad blocks

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:

BinBlocksWhat they are
<5 ms30,781healthy areas
<50 ms2,046the 8 MiB at 40 ms per read
≥600 ms128the 512 KiB at 700 ms per read
errors67268 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.

Loosha Expert Acquisition tab with the GNU ddrescue stage-one map loaded and drawn as a colour grid

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.

Confirmation dialog: continue a foreign mapfile that has no source-identity binding

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.

Map after Loosha finished the GNU image: 99.8 percent finished and 0.2 percent bad, with the three bad areas in red

# 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.

Loosha Expert Acquisition tab after imaging the lab disk on its own: 99.8 percent finished, 0.2 percent bad, 134998528 bytes rescued and 267776 unreadable

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-error device.
  • 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