Disk and File System Forensics: Imaging, Partitions & Data Recovery
Most investigations start with a disk image. This chapter covers how to acquire one forensically soundly, how partition tables and file systems organize what is on it, and how to recover data that is supposedly gone.
Acquisition and Imaging
Acquisition is the process of capturing a copy of storage media that stands in for the original throughout the investigation. It happens two ways: live, against a running system, or dead-box, with the drive removed and imaged offline.
| Method | When used | Trade-off |
|---|---|---|
| Live acquisition | System can't be powered off (encryption, uptime requirements, volatile data needed) | Captures RAM and running state, but the act of imaging changes the live system slightly |
| Dead-box acquisition | Drive can be removed and imaged offline | Cleanest, most defensible copy, but loses volatile memory and any state that only exists while running |
A write blocker, hardware or software, sits between the examiner's system and the original media and physically or logically prevents any write command from reaching it. This is what makes the acquisition forensically sound: the original disk is never modified during imaging.
| Format | Notes |
|---|---|
| Raw / dd | Bit-for-bit copy of the media, no metadata container, universally supported by forensic tools |
| E01 (EnCase) | Compressed, embeds case metadata and a hash inside the image file itself |
| AFF | Open format alternative, similar goals to E01 without vendor lock-in |
Partitioning and Boot Structures
Before an examiner looks at any file, they check the partition table. It shows what volumes and file systems exist on the disk, which determines every tool and technique used from that point forward.
| Property | MBR | GPT |
|---|---|---|
| Max primary partitions | 4 (or 3 primary + 1 extended holding logical partitions) | 128 by default |
| Max disk size | Capped by its 32-bit sector addressing, around 2 TB | Not limited by the same constraint, supports much larger disks |
| Partition table location | First sector of the disk | Primary header near the start of the disk |
| Redundancy | No backup, a damaged sector 0 can take the whole table with it | Keeps a backup header, typically at the end of the disk |
A corrupted or unusual partition table is itself a finding worth noting before any deeper analysis begins.
File System Internals
Once the partitions are known, the examiner is working inside a specific file system. Each tracks files differently, and that difference shapes what evidence survives.
| Property | NTFS | FAT32 | exFAT |
|---|---|---|---|
| Primary metadata structure | $MFT (Master File Table) | FAT table | FAT table (extended) |
| Journaling | Yes, via $LogFile | No | No |
| Typical use today | Windows internal drives | Legacy systems, some embedded devices | Removable and flash media |
Deleted File Recovery and Data Carving
Deleting a file normally just removes the file system's pointer or reference to its data. The data itself stays on disk until something else overwrites those clusters, which is why recovery is often possible well after deletion.
- Metadata-based recovery: the file system record still exists (marked deleted) and still points to the original clusters, so the file can often be restored intact with its name and timestamps.
- Signature-based carving: unallocated space is scanned for known file header and footer byte patterns, and data between them is reconstructed as a file even with no surviving metadata.
Practical Disk Examination Workflow
Disk examination is rarely exhaustive from the start. Examiners scale effort to what the investigation actually needs.
Key Takeaways
- Write blockers prevent any write to original media, which is what makes an acquisition forensically sound.
- Raw/dd, E01, and AFF trade off simplicity, compression, and embedded metadata differently.
- A hash computed after imaging and checked against the original proves the image is an exact copy.
- GPT supports far larger disks and more partitions than MBR, and keeps a backup header MBR lacks.
- NTFS, FAT32, and exFAT differ in metadata structure and journaling, which affects what evidence survives.
- Deletion removes a pointer, not the data, so recovery and carving are possible until overwritten, but fragmentation defeats carving.
Knowledge Check
Click an answer to reveal the explanation.
Why is a write blocker used during disk acquisition?
What is a key advantage of GPT over MBR for partitioning?
Why are deleted files often still recoverable?