Why this module exists. “We made a copy of the disk” is not the same as “we forensically imaged the disk.” The difference matters for evidence admissibility, chain of custody, and for the analyst three weeks later trying to reproduce a finding. This module is the practitioner-level disk imaging guide.
What forensically sound actually means
Four properties:
- Bit-for-bit copy. Every sector of the source, including unallocated space, slack space, and the host-protected area (HPA). A file-copy via
cp -ais not a forensic image. - Read-only source. The source disk is not written to during imaging — usually enforced by a hardware write-blocker.
- Integrity verified. A hash (typically SHA-256, ideally also MD5 for historical compatibility) is computed before and after. They must match.
- Documented chain of custody. Who took the image, when, from what serial number, using what tool, with what hash.
Linux — the dc3dd and ewfacquire workflow
# dc3dd — DCFL's forensic fork of dd. Inline hashing, progress bar.
sudo dc3dd if=/dev/sdb of=/evidence/case42.dd \
hash=sha256 hash=md5 \
log=/evidence/case42.log
# ewfacquire — produces compressed E01 (EnCase format), splits into segments,
# stores metadata in the file header
sudo ewfacquire /dev/sdb
# Interactive prompts for case number, examiner, evidence number, etc.
# Output: case42.E01, case42.E02, ... + case42.log
# Verify after imaging
sha256sum /dev/sdb # against the original (use a write-blocker!)
sha256sum /evidence/case42.dd
# Hashes must match.
E01 is the more common format in commercial workflows; raw dd is the lowest-common-denominator. Both are accepted by every major forensic suite.
Windows — FTK Imager and Magnet Acquire
For Windows-native acquisition, FTK Imager (free) and Magnet Acquire (free for IR responders) are the standard. Both produce E01 or raw images, both compute hashes inline. Key operational difference: FTK Imager Lite runs from removable media without installation — important for not touching the suspect machine more than necessary.
Live acquisition — when the box can’t be shut down
For servers and cloud instances you cannot power down, you image the live system. Tradeoffs:
- Memory first. Volatile memory disappears at power-off; always capture RAM before disk if both are possible (covered in Module 3).
- Use coherent snapshots for VM workloads. EBS snapshot, VMware vmsnapshot, KVM qcow2 snapshot. Provides a consistent disk state without touching the running VM.
- Document the live state. Running processes, network connections, mounted filesystems — capture with
ps auxf,ss -tnp,mountbefore imaging.
Hardware write-blockers — when and why
For physical-disk acquisition where the source must remain forensically pristine (criminal cases, regulatory IR), a hardware write-blocker between the source disk and your imaging workstation is mandatory. Tableau and Logicube are the established brands. Software write-blockers exist but are weaker — Windows historically writes “system volume information” to attached disks unless explicitly prevented.
The hash-mismatch problem
You computed SHA-256 before; you computed it after; they differ. Causes, in order of likelihood:
- You did not use a write-blocker; the source was modified during imaging.
- Hardware error on the source disk — bad sector, failing drive.
- The disk has time-varying content — solid-state drives with active garbage collection, encrypted volumes that re-key.
- You imaged a partition (
/dev/sdb1) instead of the disk (/dev/sdb) — partition tables and unallocated space mismatch.
Always image the whole disk, never the partition. The hash mismatch on a partition image is a known-confused-newbie tell.
The chain-of-custody document
Standard fields every chain-of-custody form should have:
- Case number and date
- Source identification: make, model, serial number, capacity
- Imaging examiner name and signature
- Imaging tool and version
- Write-blocker make, model, serial, last-calibration date
- Source SHA-256 (pre-image) and image SHA-256 (post-image)
- Image storage location and access controls
- Every handover: from-whom, to-whom, when, why
Indian courts have admitted dc3dd-acquired images under Section 65B of the Indian Evidence Act when the chain-of-custody is complete. They have rejected them when it is not. The administrative discipline matters as much as the technical skill.
Key takeaways
- Forensically sound = bit-for-bit + read-only + integrity-verified + documented chain.
- dc3dd for raw, ewfacquire for E01, FTK Imager / Magnet Acquire on Windows.
- Memory first when imaging live systems; coherent VM snapshots for cloud workloads.
- Hardware write-blockers for physical disks in regulated cases.
- Section 65B compliance for Indian courts is administrative as much as technical.
Get a free attack-surface review
We check what an attacker would see about your business — leaked credentials, exposed services, dark-web mentions. 30 minutes, no obligation.