Forensic image: how bit-for-bit duplication works
Sectors, unallocated space, RAW and E01 formats: what really happens when a forensic image is created.
A disk is divided into sectors, small units of storage (usually 512 bytes or 4 KB) that the operating system groups together to build files. When we delete a file, the operating system usually marks those sectors as free but does not wipe them: the content stays there until something overwrites it. That is why a copy reproducing all sectors — not only those occupied by files — preserves information that would otherwise be lost.
From device to image
The acquisition program reads the medium from the first to the last sector and writes the data, in the same order, to a file or a series of files: the image. While reading, it computes the hash of the data stream; at the end it recomputes it on the image to check that the two match.
- 01
Reading
The medium is read sector by sector through a write blocker.
- 02
Writing
The data goes into an image file on a clean, dedicated destination drive.
- 03
Hashing
The hash is computed during reading (on the original) and then on the image.
- 04
Verification
The two values are compared: if they match, the copy is faithful.
The most common formats
| Format | How it is built | When it is used |
|---|---|---|
| RAW (dd, .001) | Bare copy of the sectors, no metadata | Maximum compatibility with every tool |
| E01 (Expert Witness) | Data compressed in blocks, with case metadata and integrity checks | The de facto standard in laboratories |
| AFF4 | Open format designed for large volumes and partial acquisitions | Complex environments and memory |
The E01 format is widespread because it stores the case number, the examiner’s name, notes and hash values inside the image itself, and because it compresses data losslessly.
Physical or logical
A physical acquisition copies the whole medium; a logical acquisition copies only certain files or folders (for example a mailbox on a server). The latter is faster and sometimes the only option — think of the cloud — but it loses unallocated space. The choice must be justified and documented in the report.
Forensic image: the step-by-step procedure
From photographing the device to verifying the hash: the stages of an acquisition done properly.
The pages of this topic
Back to the overviewForensic image: the tools
Write blockers, hardware duplicators, acquisition software and forensic distributions: what you need and how to choose.
Forensic image: pitfalls to avoid
From a disk connected without protection to SSDs that change on their own: the mistakes that make a copy open to challenge.
Forensic image: value in court
What the Italian code of criminal procedure requires after Law 48/2008, when a copy is repeatable and how it is defended in civil proceedings.
Forensic image: a case study
A company suspects that a departing employee took confidential documents: how his laptop is acquired.
Forensic image: the checklist
The list to keep at hand before, during and after a forensic acquisition.
Forensic image: frequently asked questions
Short answers to the most common questions about forensic imaging of disks and devices.