NTFS MFT, Allocation and File Reconstruction
NTFS describes every file in Master File Table records made of attributes, and finds non-resident content through data runs. Recovering a file means following a checked record to the right stream of bytes. A valid filename or a readable MFT record is evidence, not proof that the content behind it is intact or still belongs to that file.
- Names, file records, cluster allocation and content are separate evidence; one can survive while another is lost or reused.
- A record is checked by its sequence number, base and extension links and fixups, not by the FILE signature alone.
- A runlist is a candidate mapping for one stream, not proof that the clusters still hold that file’s bytes.
- Recovering a file’s main stream can silently drop alternate data streams; sparse, compressed and encrypted files have extra dependencies.
$MFTMirrmirrors only the first few records; it is not a backup of the MFT.
File records and attributes
Microsoft describes the MFT as holding at least one entry for every file on an NTFS volume, including the MFT itself; everything about a file is stored either in MFT entries or in space outside the MFT that those entries describe. A file is a set of typed attributes: $STANDARD_INFORMATION for timestamps and flags, one or more $FILE_NAME attributes with a name and parent reference, one or more $DATA attributes for content, and index attributes for directories.
Small attributes, including the content of some small files, can be resident inside the record itself. Larger content is non-resident and described by data runs. When one record is not enough, the base record carries an $ATTRIBUTE_LIST that points to extension records, so one file can span several records that all have to be found and matched. Directories are index structures that reference file records by name; they do not contain the files.
Checking that a record and its references fit together
A block that starts with the FILE signature is a candidate, not a verified record. Microsoft’s description of the file record segment header gives the fields that make the check possible:
- Fixups. An update sequence array protects multi-sector transfers of the record. The fixups have to be applied and must match before the record’s contents are trusted; a mismatch suggests a torn or partly overwritten record.
- Sequence number. It is incremented each time the record segment is freed. A file reference carries a sequence number too, and Microsoft says that if the two do not match, the reference is incorrect and probably obsolete.
- Base record link. An extension record names its base record; a base record has zero there. Extension records are accepted only when base and extension point at each other consistently.
- Bounds. Attribute offsets and lengths have to stay inside the record, and run offsets inside the volume.
The structure Microsoft documents is stated to be valid for NTFS major version 3, minor version 0 or 1; tools that parse other versions should say so.
From data runs to a stream of bytes
Data runs map offsets in a stream to clusters on the volume. Following them in order reconstructs one candidate stream. That is a mapping recorded at some moment, not proof that those clusters still hold the same bytes.
Damage to the runlist of a large fragmented file is serious, but not always the end of the content. Extension records, partly surviving runs and format-aware reconstruction of the payload can sometimes recover all or part of it; there is no guarantee either way. Clusters that are physically present but logically disconnected are the situation where pure carving is weakest, as described in File-System Recovery vs. File Carving.
Two bitmaps, and what allocation does not prove
Two different bitmaps are easy to confuse. Microsoft’s NTFS 3 notes describe the $Bitmap file as indicating which clusters are in use, and a separate $BITMAP attribute of $Mft as indicating which MFT records are in use. A record can be free in one sense while its clusters are still marked allocated in the other, or the reverse.
Allocation answers only whether space is considered in use. It does not say which file owns a cluster or whether the bytes there are current. An allocated cluster can belong to a newer file; an unallocated one can still hold old content. Lost or misreported space is covered in Allocation Metadata, Orphaned Files and Lost Space.
Deleted, orphaned and stale records
Microsoft documents that when files are deleted, their MFT entries are marked as free and may be reused. A free record can keep useful metadata until something claims it, and the file’s clusters can be reused independently of the record. Deleted-file recovery is therefore exposed to two separate reuse events, and on SSDs TRIM adds a third, independent one underneath.
An orphaned record, one with no surviving directory reference, can still lead to a usable file through its own attributes, though often without its original path. Old records also survive alongside current ones. A stale record from before a file was rewritten or moved is not merged with the current record for the same file; each is a separate candidate with its own date and mapping.
Illustration: the right name, someone else’s clusters
An old MFT record has the correct name and size. The exported file has the expected length.
Some of the clusters in its runlist were later allocated to another file, so part of the payload belongs to that file.
Check which clusters the current metadata assigns to other files and validate the content across its whole length.
A conceptual example, not a documented case. Reuse can be partial, complete or absent.
Names, hard links and paths
A file can have several $FILE_NAME attributes, for example a long name and a short name, or several hard links in different directories. Several names on one record are not by themselves a sign of corruption. Paths are rebuilt from parent references whose sequence numbers match the parent record; a parent reference that fails that check points to a record that has since been reused. Where references do not agree, the file is recovered without a path, or with the path marked as uncertain.
Alternate streams, sparse, compressed and encrypted files
The unnamed $DATA stream is what most programs see as the file. Named streams, often called alternate data streams, are separate $DATA attributes; Microsoft notes that each stream has its own allocation size, actual size and valid data length. A recovery that exports only the unnamed stream can report a file as recovered while other streams are missing. A destination file system that does not support named streams cannot hold them, so the export format matters.
Sparse files do not allocate space for ranges of zeros; Microsoft says the file system keeps a list of those ranges and returns zeros when they are read. Sparse ranges and compressed runs are therefore not ordinary allocated extents and have to be interpreted according to the attribute’s flags. Files encrypted with EFS depend on keys held outside the file record; a recovered record and its clusters give ciphertext, not a decrypted file.
$MFTMirr is a small mirror
$MFTMirr is not a duplicate of the MFT. Microsoft’s Windows 2000 documentation describes it as an image of the first records of the MFT, intended to keep access to the MFT after a single-sector failure. The rest of the MFT has no built-in second copy. A tool or report that treats the mirror as a full backup is overstating what NTFS keeps.
Checking what was extracted
Metadata, current allocation and content are three separate kinds of evidence. A plausible name and size are a starting point. Check the content itself across its whole length: open or parse it, compare it with any trusted copy, and look for regions that belong to other files or are zero where they should not be. Record which streams were exported, whether the path is verified, and which ranges are uncertain. See How to Validate Recovered Data and What Overwrite Actually Destroys.
$Bitmap says a cluster is in use; a data run says which clusters one stream once mapped. Neither proves the bytes are still that file’s. Check the record, its references and the content separately.
Technical references: Microsoft Learn: FILE_RECORD_SEGMENT_HEADER — fixups, sequence number, base record · Microsoft Learn: Master File Table — entries per file, free records reused · Microsoft Learn: File Streams — unnamed and named $DATA streams · Microsoft Learn: Master File Table (NTFS 3) — record bitmap vs. cluster $Bitmap · Windows 2000 Server: File Systems — $MFTMirr. Sparse-file behaviour is from Microsoft Learn: Sparse Files. Pages checked October 2026; the record header is documented for NTFS 3.0 and 3.1, and the metadata-file table dates from Windows 2000.
Related: Allocation Metadata, Orphaned Files and Lost Space · Filesystem Journals and Crash Consistency · File-System Recovery vs. File Carving · Files Missing but Storage Space Is Still Used · Drive Shows as “RAW” · How to Validate Recovered Data · What Overwrite Actually Destroys