Course contentsShow
← Security
Lesson 2399 of 3,05246. Incident ResponseFree lesson

Disk Imaging and Write Blocking

Master creating forensically sound disk images using write blockers and tools like dd, FTK Imager, and understanding image formats.

Disk Imaging and Write Blocking

What you'll learn: How to create forensically sound disk images while preventing any accidental writes that could contaminate evidence.

When you collect a hard drive or storage device during an incident response, you need to preserve its exact state without changing a single bit. Think of it like taking a photograph of a crime scene—you document everything without disturbing it. Disk imaging creates a bit-for-bit copy of the entire disk, while write blocking prevents your forensic workstation from accidentally modifying the original evidence.

Why Write Blocking Matters

Every time you connect a drive to a computer, the operating system tries to mount it and may write metadata (timestamps, file indexes, logs). Even reading a file can update its "last accessed" timestamp. A write blocker—either hardware or software—sits between the evidence disk and your forensic machine, allowing reads but blocking all write commands. This maintains the chain of custody and ensures your evidence is admissible in court.

Creating Forensic Images

The gold standard is using tools like:

  • dd (Linux command-line): dd if=/dev/sdb of=evidence.raw bs=512 conv=noerror,sync creates a raw bit-for-bit copy
  • FTK Imager (GUI-based): creates images in various formats with automatic hash generation
  • EnCase and other commercial tools

Image Formats

  • Raw (.dd, .raw): exact sector-by-sector copy, largest file size
  • E01 (EnCase Evidence File): compressed, includes metadata and case information
  • AFF (Advanced Forensic Format): open-source, compressed with metadata

After imaging, you always compute cryptographic hashes (MD5, SHA-256) of both the original disk and the image to verify integrity. All subsequent analysis happens on the image copy, never the original evidence.

Key Takeaway: Write blockers and proper imaging techniques ensure your evidence remains forensically sound and legally defensible—protect the original, analyze the copy, and always verify with hashes.