NTFS recovery begins with structure, not file-name guessing
NTFS is a metadata-rich file system. A volume may contain intact file content while directory structures, allocation metadata or key records are damaged. Conversely, a directory entry may remain visible while the underlying file content is incomplete or overwritten. Recovery analysis should identify which structures are available and how they relate.
The Master File Table
The Master File Table (MFT) contains file record segments used by NTFS to describe files and directories. Microsoft documentation notes that each file has at least one MFT entry, and that information such as names, timestamps, permissions and data may be stored in MFT attributes or in external space referenced by those records. Large or complex files can require additional records and attribute lists.
Attributes: a file record is not just a name
NTFS stores information as attributes. Common examples include:
- $STANDARD_INFORMATION: standard metadata such as timestamps and flags.
- $FILE_NAME: file-name and parent-directory reference information.
- $DATA: file content, which may be resident inside the record or non-resident in clusters.
- $ATTRIBUTE_LIST: references additional attribute records when required.
- $INDEX_ROOT / $INDEX_ALLOCATION: directory indexing structures.
- $BITMAP: allocation tracking for relevant structures and clusters.
Resident and non-resident data
Small data streams may be stored resident within an MFT record, while larger streams are commonly non-resident and described by data runs that map virtual cluster ranges to volume clusters. A recovery tool must correctly interpret attribute flags, runlists, compression, sparse regions, encryption and alternate data streams. A visible file record does not by itself prove all data runs remain readable.
Important NTFS metadata files
| Metadata file | General role | Recovery relevance |
|---|---|---|
| $Mft | Master File Table | File and directory record metadata. |
| $MftMirr | Mirror of selected initial MFT records | May help with limited critical-record damage; not a full MFT backup. |
| $LogFile | NTFS transaction log | Can provide context for metadata operations; replay and interpretation are version/state dependent. |
| $Bitmap | Cluster allocation map | Helps determine allocated and free clusters. |
| $Boot | Volume boot record | Contains volume parameters and boot-related structures. |
| $BadClus | Bad-cluster tracking | Records clusters NTFS treats as unusable. |
Deleted file records and reuse
When a file is deleted, its MFT record may be marked available for reuse. The record may retain useful metadata for some time, but subsequent file creation can overwrite it. Even if a record survives, the clusters that held the file's content may have been reallocated. Recovery therefore requires correlating record state, sequence numbers, parent references, data runs and cluster allocation, not simply searching for a familiar filename.
Directory indexes and parent relationships
Directory indexes help map names to file references. If index structures are damaged, files may exist in MFT records without appearing in normal directory traversal. Reconstructing a directory tree may require validating parent references and handling orphaned records, duplicate names and stale metadata. A recovered tree should mark uncertain relationships rather than inventing paths.
Safe analysis workflow
- Acquire an image of the source using an appropriate write-protected method where required.
- Preserve acquisition logs and hash values; analyse a working copy.
- Identify partition boundaries and confirm the NTFS volume geometry.
- Inspect primary and backup boot-sector information and key metadata records.
- Parse MFT records, attributes, runlists, directory indexes and allocation metadata.
- Correlate deleted records with cluster allocation and content signatures.
- Validate recovered files by opening or application-specific checks; record partial or corrupt results.
Common pitfalls
- Assuming the MFT mirror contains a complete copy of the MFT.
- Assuming a deleted MFT record means its file data is still present.
- Ignoring non-resident attributes, fragmented runlists or alternate data streams.
- Writing repaired metadata to the original source before acquiring an image.
- Reporting a reconstructed folder path as certain when parent metadata is ambiguous.
Primary technical references
- Microsoft Learn: Master File Table
- Microsoft Open Specifications: NTFS reserved file names
- Microsoft Open Specifications: NTFS attribute types
Editorial note: This article is educational. It distinguishes general principles from model-specific behaviour. Always verify procedures against the exact device family, firmware revision, manufacturer documentation and validated equipment. No single workflow is appropriate for every failure.