Digital Forensic Tools

Imaging a failing or damaged drive

Short answer

A failing drive may have unreadable sectors. A tool such as ddrescue reads the good areas first, logs the bad ones, and retries later, so as much data as possible is saved with little extra stress.

Why it is different

A normal imager may stop or repeat reads when it hits a bad sector. Repeated reads can stress a weak drive and shorten its life. The aim is to get the readable data safely, and to record exactly what could not be read.

How a rescue tool works

GNU ddrescue copies from one device to another and, on errors, tries to save readable parts first. It skips unreadable areas and does not write zeros for them. It keeps a mapfile that tracks what has been rescued, so you can stop, resume and retry only the missing blocks.

Good habits

Use a write blocker or read-only access. Save the image to a separate healthy drive. Make the first copy, then work from that copy. Keep the mapfile and the tool log, and note the errors. SWGDE says verification may not cover damaged sectors, so record these gaps and explain them in the report.

  • Do not run repair tools on the original.
  • Do not mount the failing drive normally.
  • Watch for heat, noises and slow reads.
  • A drive with a physical fault such as a clicking head may need a specialist lab.

Reporting the result

The image may have holes. Write down how much was unreadable and where, using the log. If another copy of the same data exists, ddrescue can fill gaps from it, because damage is unlikely to fall in the same places.

Example

A hard drive from a damaged laptop slows down and reports read errors. The examiner connects it through a write blocker and runs ddrescue to a clean drive with a mapfile. The first pass copies most of the drive. Later passes recover a few more areas, and the report lists the sectors that stayed unreadable.

Common mistakes

  • Running a file system repair tool on the original drive.
  • Imaging to the same failing drive.
  • Retrying again and again without a mapfile.
  • Ignoring the error log and claiming a complete image.
  • Opening a drive with physical faults without proper skills or equipment.

Key terms

Bad sector
A sector that cannot be read reliably.
Mapfile
A file that records which parts of a source were rescued and which were not.
ddrescue
A GNU tool that copies data from damaged devices.
Image with gaps
An image where some sectors could not be read.

Questions you may be asked

Why does ddrescue read good areas first?

It secures the readable data early and avoids stressing the drive on difficult areas until later.

What is the mapfile for?

It tracks what has been rescued so work can resume and only missing blocks are retried.

What should you report after imaging a damaged drive?

The amount and location of unreadable data, the tool and version, and the hashes of the image.

Free tools to practise with

Learn more

Written in our own words from public forensic training material and standards. Last reviewed 24 Nov 2026. Procedures and laws differ by country and agency. Follow your own lab's procedure.