SpyClue · Technical Knowledge Library+91 95029 46496
Home / Knowledge Centre / File systems · NTFS
ENGINEERING REFERENCE · INTERMEDIATE → ADVANCED

NTFS metadata for recovery engineers: MFT, attributes and allocation

Understand the NTFS Master File Table, file record segments, attributes, directory indexes, allocation metadata and recovery-analysis considerations.

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 fileGeneral roleRecovery relevance
$MftMaster File TableFile and directory record metadata.
$MftMirrMirror of selected initial MFT recordsMay help with limited critical-record damage; not a full MFT backup.
$LogFileNTFS transaction logCan provide context for metadata operations; replay and interpretation are version/state dependent.
$BitmapCluster allocation mapHelps determine allocated and free clusters.
$BootVolume boot recordContains volume parameters and boot-related structures.
$BadClusBad-cluster trackingRecords 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

  1. Acquire an image of the source using an appropriate write-protected method where required.
  2. Preserve acquisition logs and hash values; analyse a working copy.
  3. Identify partition boundaries and confirm the NTFS volume geometry.
  4. Inspect primary and backup boot-sector information and key metadata records.
  5. Parse MFT records, attributes, runlists, directory indexes and allocation metadata.
  6. Correlate deleted records with cluster allocation and content signatures.
  7. 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

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.

← Return to the SpyClue Knowledge Centre

SpyClue Data Recovery

Learn the technology. Respect the evidence.

Technical education, careful diagnosis and transparent recovery assessment.