NTFS $MFT: The Master File Table Explained


Every file name, every timestamp, and every permission on an NTFS volume is described somewhere other than inside the file itself. That somewhere is the NTFS MFT, the Master File Table, a single hidden file that maps the whole volume the way an index maps a book.

Understanding the MFT explains a lot of ordinary NTFS behavior: why small files seem to cost almost no space, why a folder with a million entries opens slowly, and why a corrupt table can turn a healthy-looking disk into a raw one.

What $MFT Stores

The Master File Table is itself a file, conventionally numbered zero. For every file and every folder on the volume the MFT holds at least one record, and each record usually occupies one kilobyte. That record describes the object: its name, its parent directory, its timestamps, its security descriptor, and pointers to where its content actually lives.

Each record is addressed by an index, and that index is the volume's equivalent of an inode number. When you open a path, NTFS resolves each component through the MFT, which is why the table is so central to performance. Heavy metadata activity, such as creating or deleting thousands of small files, is essentially heavy MFT activity.

Because one record is a fixed size, its layout is tightly packed. The record contains a header and a set of attributes, and each attribute declares its own type and length so the parser can walk the list. A second record in the table is reserved for the MFT's own description, which lets the file system find the table before it can look anything up.

Resident Data and Data Runs

A small file can store its content directly inside its own MFT record, a state called resident data. If everything fits, no separate cluster is allocated, and the file consumes nothing beyond the record it already owns. This is why a folder full of tiny text files can appear to occupy almost no space.

When the content grows past the room in the record, NTFS switches to non-resident storage. The record then keeps a runlist, a compact list of data runs that map logical offsets to physical clusters. A file that is laid out contiguously needs a single run; a file that grew in pieces needs several, and that is exactly how fragmentation begins.

The runlist is deliberately agile, so a large file can be described with a few bytes even when its clusters are scattered around the disk. The cost of fragmentation is not the size of the runlist but the extra seeking the drive must do when reading the file in order.

The Other Metadata Files

The MFT never works alone. Several companion files keep the volume consistent, and knowing their names helps when a repair tool reports a problem.

These files are ordinary entries in the MFT, created when the volume is formatted and protected from casual access. A repair utility reads them first, because a consistent set of metadata files is what makes the rest of the volume trustworthy.

When $MFT Gets Fragmented or Damaged

The MFT is not immune to fragmentation. When the table has to grow and no contiguous space is available, it is split into multiple runs. Directory enumeration then requires more seeking, and a folder holding a very large number of entries can open noticeably more slowly. On a busy volume that writes and deletes constantly, this is a common and often overlooked cause of sluggish browsing.

Damage is more serious. A broken record or a corrupted runlist can make files unreachable, and in bad cases the volume mounts as raw because the boot sector can no longer find a valid table. The check disk tools report this class of problem directly, and an interrupted write combined with a power loss is the most frequent trigger.

Verifying and Backing Up an NTFS Volume

Because the MFT underpins everything else, verifying it is the first step before any repair. Run a file system check, and keep a backup of the volume so that a repair never becomes the only copy of your data.

Step 1. Right-click the NTFS partition and open Advanced, then choose Check File System.

right-click the NTFS partition and open Check File System

Step 2. Tick the repair options and click Proceed to start the check.

select repair options and click Proceed

Step 3. Wait for the check to finish and review the result.

review the file system check result

FAQ

How big is the MFT?

It grows as files are added, roughly one kilobyte per object plus non-resident attributes such as long names or large security descriptors. NTFS reserves space for it at format time so that it does not have to grow from nothing.

Can I delete or resize the MFT?

No. The MFT is required metadata and cannot be removed from a live volume. Its reserved size can be adjusted with specialized tools, but doing so is risky and rarely necessary for normal use.

Does a full drive corrupt the MFT?

Running out of space does not corrupt the table by itself, but it prevents new records from being written and can leave operations half-finished. Corruption usually comes from power loss or failing hardware during a metadata write, not from a merely full disk.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it