CHFI Storage Forensics and File System Analysis Practice Question
An analyst runs 'foremost -i disk.dd -o output' and recovers several JPEG files. However, some files are corrupted or incomplete. What is the most likely cause?
⚠ Common exam trap
CHFI often tests the misconception that file carving tools automatically handle fragmentation, leading candidates to overlook the fundamental limitation of header/footer carving without reassembly logic.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The files were fragmented across the disk, and foremost did not reassemble fragments
Foremost is a file carving tool that relies on file headers and footers to recover data. It does not handle fragmentation; if a JPEG file's data blocks are non-contiguous on the disk, Foremost will only recover the first fragment up to the point where the next fragment begins, resulting in a corrupted or incomplete file. This is a known limitation of header/footer carving without fragmentation support.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The files were fragmented across the disk, and foremost did not reassemble fragments
Why this is correct
Foremost performs file carving by scanning for known header and footer signatures, assuming each file occupies a contiguous sequence of clusters on the raw image. If the target file is fragmented, the recovered output will consist of the first contiguous fragment up to the first footer (or the configured maximum file size), and subsequent fragments are ignored rather than reassembled. This yields truncated or corrupted files exactly matching the analyst's observation, because the tool never attempts to map logical file offsets across non-contiguous disk sectors.
- ✗
The files were stored in a journaling file system that overwrites deleted data quickly
Why it's wrong here
A journaling file system records pending metadata changes in a journal before committing them, but deletion typically only updates metadata such as the inode and bitmap; the actual data blocks are not overwritten as part of the journaling operation. Even in a journaling filesystem like ext4 or NTFS, deleted file contents may remain on disk for a long time until the blocks are reallocated and written. Therefore, journaling itself does not cause quick data overwrite and is not a plausible explanation for prematurely truncated or corrupted recovered files; rather, it can sometimes help via replaying journal records to recover metadata.
- ✗
The output directory had insufficient space to store the recovered files
Why it's wrong here
If the output directory lacked sufficient free space, carving would terminate with an explicit write error (e.g., "No space left on device") rather than silently producing files that appear to have missing fragments. The recovered files would be complete up to the point of disk exhaustion, so the last partially written file might be truncated at an arbitrary byte offset, but the analyst would see an I/O error and a short file, not a file with internal gaps or concatenated wrong blocks. Insufficient space also would likely affect all recovered files uniformly, not a subset of fragmented files, and would be logged as an environmental error, not mistaken for fragmentation.
- ✗
The disk image contains bad sectors that could not be read
Why it's wrong here
Bad sectors in a raw disk image cause read errors or produce short reads that return an error condition to the carving tool, typically resulting in a hard failure, retry, or replacement data (such as zeros) rather than a cleanly truncated file. When a source disk has physical defects, the corresponding image regions contain invalid or missing data, but carvers do not use that as a basis for skipping fragments; they simply see a block of unreadable data and may then find the next valid header, producing dropped content rather than a partial file ending at the first footer. Since the symptoms described are missing file fragments that resemble logical fragmentation, physical media errors are a distinct cause that would also show I/O errors during dd, not purely corrupt carving output.
Go deeper
Related to this question
About these practice questions
This CHFI question is part of Courseiva's 745-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CHFI practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CHFI exam.