Filesystem Structure and Metadata Recovery Tools
Filesystem recovery work splits into distinct operations: inspecting partition boundaries, parsing metadata, viewing raw structures, reading journals, extracting files to another destination, carving by content, and repairing the filesystem in place. One product may combine several of these, so the useful question is which operation and mode is running, what it reads and what it writes — not which brand it is.
- Choose by operation: inspection, parsing, journal analysis, extraction, carving and repair have different inputs, outputs and write scope.
- Parser output is a set of candidates; version, feature support and cross-checks decide which generation is credible.
- Journals and change logs give context; what they can hold depends on the filesystem and its mode.
- A read-only scan still adds read load on a weak source.
- Repair aims at a consistent filesystem, not maximum extraction, and is not a diagnostic step.
Seven tool roles, one filesystem stack
- Partition structure inspectors read GPT and MBR directly, compare primary and backup GPT copies, and locate candidate filesystem boundaries without writing to the source — the first step covered in Partition Table Recovery and Filesystem Discovery.
- Filesystem metadata parsers read MFT records and their attributes, ext4 inodes and extent trees, or APFS objects and B-trees directly, independent of whatever the operating system’s own mount logic currently shows.
- Hex editors and structure viewers verify offsets, inspect raw signatures, and compare metadata copies or generations byte for byte; see Hex Editors & Disk Structure Viewers.
- Journal and change-log analysis tools read NTFS USN change journal records, ext4 JBD2 transactions or equivalent logs for context and chronology. What a log can contain differs by filesystem and mode; see below.
- Filesystem-aware recovery software reconstructs directory trees, finds orphaned metadata, rebuilds extent mapping and lists files from metadata copies or generations, writing recovered files to a separate destination.
- Carving tools scan content for file signatures without relying on the filesystem namespace; what that gains and loses is covered in File-System Recovery vs. File Carving.
- Native repair utilities — CHKDSK, fsck/e2fsck, Disk Utility’s First Aid — aim to make a filesystem internally consistent and usable again, which is a different objective from preserving every recoverable structure along the way.
These are roles, not product categories. A single recovery suite may parse metadata, show a hex view and carve; a native utility may have both a check mode and a repair mode. What matters is the mode actually in use and what it writes.
Operation matrix
Scroll horizontally to see the full table →
| Operation | Reads | Produces | Writes to the source? | Main limit |
|---|---|---|---|---|
| Partition inspection | Partition tables, backup GPT, boundary signatures | Candidate partitions and filesystem offsets | Not in an inspection mode; rewriting a table is a separate repair step | Candidates need confirmation against the filesystem found there |
| Metadata parsing | MFT, inodes, extent trees, B-trees, superblocks and their copies | File lists, paths, extent maps, candidate generations | Not when working from an image or a read-only path | Results are only as good as the parser’s support for that version and feature set |
| Structure viewing | Raw sectors at chosen offsets | Decoded fields, byte-level comparisons | No, unless an editing mode is used | Manual interpretation; easy to misread a structure |
| Journal / change-log analysis | USN records, JBD2 transactions, equivalent logs | Timeline, change reasons, earlier metadata blocks where the log kept them | Not in analysis; replay is a write | Coverage limited by log type, mode and how much has been overwritten |
| Filesystem-aware extraction | Metadata plus the data it maps | Files with names and paths on a separate destination | No; output goes elsewhere | Depends on mapping surviving; stale mapping gives wrong content |
| Carving | Content regions, with or without allocation information | Files recognized by signature, often without names or paths | No; output goes elsewhere | Fragmented files and lost names/paths |
| Consistency check | Filesystem metadata | A report of inconsistencies | Depends on the utility and mode; a check-only mode is meant not to | A report is not a diagnosis of the underlying cause |
| Consistency repair | Filesystem metadata | A consistent, mountable filesystem | Yes, by design | May discard, truncate or relink structures recovery still needed |
Parser output is a set of candidates
When a filesystem keeps several copies or generations of metadata — backup superblocks, MFT mirror records, APFS checkpoints, journal copies of blocks — a parser can surface more than one plausible answer. None of them is automatically the right one. A valid checksum shows that a structure passes that checksum check; it does not date the structure or prove that its references are consistent. A higher transaction counter can help order candidates only after their identity, format and counter semantics have been confirmed. Neither check alone establishes the state needed for recovery or whether the referenced data has since been reused.
Before trusting a candidate, confirm that the tool supports that filesystem, version and feature set (an unsupported feature can be silently misread), that the structure belongs to the volume being examined rather than an older format or a neighboring partition, and that it agrees with other evidence: directory entries, allocation state, file content checks. The reasoning is set out in Storage Metadata Generations and Consistency; ext4-specific structures in ext4 Superblocks, Inodes, Extents and Journal.
Journals and change logs are not the same thing
An NTFS change journal (USN) records that a file or directory changed and the reason — write, truncation, extension, deletion and so on. Microsoft’s documentation states that it logs only the fact and reason of a change and does not record enough information to reverse it. It is a partial chronology, not a history of file content.
The ext4 journal (JBD2) is a write-ahead log of blocks. In the default ordered mode only metadata passes through it, so it can still hold copies of metadata blocks that are useful for reconstruction; with data=journal file data passes through it as well. Either way the journal is a bounded area that is reused, so it is not an archive of old versions. More detail: the USN journal and ext4 JBD2.
Read load and the order of operations
A scan that never writes still reads, and a full metadata or carving scan can read the whole device. On a source that is failing or unstable, that load is part of the decision; whether to image first, and how, is covered in How to Image a Failing Drive Safely. On a healthy source that is still readable, extracting the files that matter to another destination may be reasonable before or instead of a full image; that depends on the device’s condition and how consistent its current state is.
Carving is not a mandatory last step for every file. It is the right tool where metadata no longer maps content, and sometimes the only one. Carving alone usually cannot reconstruct the original directory tree. Embedded metadata may supply some names or dates, and format-specific reconstruction may recover some fragmented files, but neither replaces a surviving filesystem extent map or guarantees a complete result. Any step that would lose namespace or mapping information — repair, reformatting, continued writes — should be taken knowingly rather than with the expectation that carving will cover the gap.
Repair utilities are their own category, not a first resort
Native utilities separate checking from repairing, but the boundary is utility-specific. Microsoft documents that CHKDSK without parameters only reports volume status and fixes errors only when a fix parameter is given, which also requires locking the volume. The e2fsck manual describes a read-only mode that answers “no” to every question, alongside automatic and answer-yes repair modes. Apple describes First Aid as checking for and fixing errors in formatting and directory structure, and notes that it cannot detect or repair every problem.
In repair mode these tools can delete invalid references, truncate files, reconnect orphans, free blocks, rewrite trees and bitmaps, and replay logs — all in service of consistency, not of maximizing what can still be extracted. A repair that succeeds tells you the filesystem is consistent now, not why it failed or what was lost getting there. See CHKDSK, fsck and First Aid: Repair vs. Recovery.
Repair is designed to change metadata until the filesystem is consistent. Run against the only copy of data that still needs recovering, it can permanently discard structures that extraction from that copy, or from an image of it, could have used. Keep the evidence you need — an image, the affected metadata regions, or the files themselves exported elsewhere — before any write, and do not use repair as a way to find out what is wrong.
Technical references: Microsoft Learn: Change Journal Records — what USN records hold and that they cannot reverse a change. NTFS only. · Linux kernel documentation: ext4 Journal (jbd2) — metadata-only default and data=journal. Current kernel documentation; on-disk details can vary with features and version. · Microsoft Learn: chkdsk — status-only run versus fix parameters and volume locking. Behavior differs between NTFS and FAT. · e2fsck(8) manual — read-only and repair modes. E2fsprogs 1.47.4 manual. · Disk Utility User Guide: repair a storage device — scope of First Aid. Apple user guide; does not document the underlying repair steps.
Related: Partition Table Recovery and Filesystem Discovery · NTFS MFT, Allocation and File Reconstruction · ext4 Superblocks, Inodes, Extents and Journal · Allocation Metadata, Orphaned Files and Lost Space · Storage Metadata Generations and Consistency · Filesystem Journals and Crash Consistency · File-System Recovery vs. File Carving · Hex Editors & Disk Structure Viewers · CHKDSK, fsck and First Aid: Repair vs. Recovery