$MFT is the index NTFS uses to keep track of every file and directory on a volume. It is also the single most informative artifact you can pull from a Windows machine. Every other file on the volume, the table itself included, has at least one record inside it. Forensic tools answer hard questions about files Windows no longer admits exist because the records survive deletion. Threat hunters chase persistence through it because attackers cannot move files on NTFS without writing to it. If you only ever learn one Windows artifact at the byte level, this is the one to learn.
This page covers what the table is, what a record looks like, which attributes a record can carry, what the reserved system files at the start mean, what the dreaded "Windows cannot recover the master file table" error actually means, and how to read the table yourself.
How to open or view a $MFT file
Double-clicking C:\$MFT does nothing, because Windows will not open it through the normal file APIs (more on that below). Viewing it is a two-step job: get a copy out, then point a parser at the copy.
- Copy it with a raw reader. The homepage has a copy-paste PowerShell block that needs nothing installed (elevated prompt, writes
C:\triage\$MFT). KAPE (--target FileSystem), FTK Imager (Export Fileson the$MFTnode) and Joakim Schicht'sRawCopy.exedo the same job: they read the volume underneath the filesystem and write a normal file you can open. Extracting $MFT from a live host has the exact commands and the checks to run on the copy. - Parse the copy. Drop it on the browser $MFT viewer: it runs a Rust parser compiled to WebAssembly on your machine, nothing is uploaded, and every record shows up as a searchable row with its path, flags and eight timestamps. On a Windows analysis box, MFTECmd turns the same file into a CSV for Timeline Explorer.
- Read the records. Start with the in-use flag, the parent path and the
$STANDARD_INFORMATIONversus$FILE_NAMEtimestamps. The rest of this page explains what each of those fields means.
Open a $MFT file in your browser →
What is the Master File Table
$MFT is a file. A single file. It sits at a known offset near the start of every NTFS volume. The boot sector at offset 0 of the partition (the 512 bytes of the BIOS Parameter Block) contains a field called MftStartLcn that points to the first cluster of $MFT. Read those 1,024 bytes and you have record 0, the table's self-description.
Each row of the table is exactly 1,024 bytes and describes one file or one directory. Every record holds the name, timestamps, DOS-style flags, security descriptor reference, and either the data itself (small files) or a list of disk clusters where the data lives (large files), all encoded as a sequence of typed attributes.
NTFS was introduced with Windows NT 3.1 in 1993 and has been the default Windows filesystem on every fixed disk since Windows XP. It replaced FAT, which keeps a small allocation table and stores filenames inside directory entries. NTFS puts almost every piece of metadata about every file into one structured table, $MFT. That design has two consequences worth committing to memory:
- All metadata is in one place. A single seek to
$MFTenumerates every file on the volume. This is why forensic tools, antivirus engines, indexing services, and backup software all read it. It is also why a corrupted$MFTis a much bigger problem than a corrupted FAT. - Deleted files leave their metadata behind. When NTFS deletes a file, it clears one bit in the record header and marks the file's clusters as free in
$Bitmap. The rest of the record (name, timestamps, often the data) stays put until that record slot is reused. See what survives a delete.
The acronym MFT stands for Master File Table. Written $MFT on disk because, on NTFS, the dollar sign prefixes the names of metadata files.
Where is the $MFT file in Windows?
Every NTFS volume has its own $MFT, in the root directory of that volume. On the system drive that is C:\$MFT; a second NTFS partition mounted as D: has D:\$MFT, and an NTFS-formatted USB drive carries its own too. There is one table per volume, not one per computer.
You will not see it. NTFS does not return its metadata files when a directory is listed, so $MFT is absent from Explorer, from dir /a C:\, and from Get-ChildItem -Force C:\, even with "hidden" and "protected operating system files" switched on. Trying to open or copy it by name fails with an access-denied error, including from an elevated prompt, because the NTFS driver keeps it open and will not let it be read through the normal file APIs. Tools that read it open the raw volume (\\.\C:) and reassemble the file from its clusters themselves.
To see how big it is and where it sits, run this from an elevated prompt:
fsutil fsinfo ntfsinfo C:
The fields that matter here:
| Field | Meaning |
|-------|---------|
| Bytes Per FileRecord Segment | Size of one MFT record, 1024 on almost every volume (4,096 on some 4Kn disks). |
| Mft Valid Data Length | How much of $MFT is in use, which is the size of the file you get when you copy it. |
| Mft Start Lcn | Cluster where $MFT starts (the same value the boot sector holds). |
| Mft2 Start Lcn | Cluster where $MFTMirr starts. |
| Mft Zone Start / Mft Zone End | The cluster range NTFS keeps free for the table to grow into. |
How $MFT is laid out on disk
When NTFS formats a volume it reserves a region called the MFT zone near the start of the partition. The first 16 records of the table are reserved for NTFS metadata files (described below); record 0 is the table's own entry, pointing back at its own clusters.
$MFT grows by extending into its reserved zone whenever it needs more records. If the volume fills up before the zone is exhausted, Windows shrinks the zone to make room for user data, which is why a heavily-fragmented $MFT is common on aging filesystems. The table never shrinks. Once a slot has been created, it stays in $MFT; deletion only clears the in-use flag. That is why old deleted records far above the current high-water mark can survive for years on a lightly-used volume.
A backup of the first records lives in $MFTMirr, placed in the middle of the volume. If $MFT itself is unreadable, NTFS uses $MFTMirr to bootstrap recovery. See $MFTMirr and when NTFS uses it.
Can you delete, move or shrink $MFT?
No to all three, and you would not want to.
- Delete.
$MFTis the volume. Every file and folder, including the root directory, is found through it. Windows refuses to touch it while the volume is mounted, and wiping it from another operating system leaves a partition that will not mount and needs forensic-grade recovery to read. If the question comes from a full disk, the space is not being wasted: it is the index of the files you have. - Shrink. Records are never released. Deleting files frees their slots for reuse but the file keeps its size, so a volume that once held two million files keeps a
$MFTsized for two million files. No supported tool truncates it; the only way to get a compact table is to copy the data onto a freshly formatted volume. - Move or resize the zone. The reservation is configurable, not the table.
fsutil behavior query mftzoneshows the current setting andfsutil behavior set mftzone 2raises it. The value runs from 1 (the default) to 4; Microsoft's currentfsutildocumentation describes it in 200 MB units, while older NTFS documentation described the same four steps as 12.5% to 50% of the volume. It is stored asNtfsMftZoneReservationunderHKLM\SYSTEM\CurrentControlSet\Control\FileSystem, takes effect after a restart, and only matters on volumes that will hold very large numbers of small files (Microsoft suggests 2 when the average file is 2 KB or less).
A fragmented $MFT is normal on an old volume and harmless on an SSD. It is a performance concern on spinning disks, not a sign of damage.
Anatomy of a FILE record
Every MFT record begins with the four-byte ASCII signature FILE (46 49 4C 45). Corrupt records carry BAAD instead, a tombstone written by chkdsk when it could not repair the record. After the signature comes a 56-byte header, then the fixup array, then a stream of typed attributes terminated by 0xFFFFFFFF.
The header fields, at their offsets from the start of the record (NTFS 3.1, the version every Windows since XP writes):
| Offset | Size | Field | What it tells you |
|--------|------|-------|-------------------|
| 0x00 | 4 | Signature | FILE for a valid record, BAAD for one chkdsk could not repair. |
| 0x04 | 2 | Update sequence offset | Where the fixup array starts. The last two bytes of every 512-byte sector in the record are replaced with an update sequence number and the originals are stashed in this array, which is how NTFS detects a torn write. Parsers must put the originals back before reading anything else. |
| 0x06 | 2 | Update sequence size | Number of entries in the fixup array (3 for a 1,024-byte record: the USN plus one per sector). |
| 0x08 | 8 | $LogFile sequence number (LSN) | Points into the $LogFile transaction journal at the last change to this record. |
| 0x10 | 2 | Sequence number | Incremented every time the slot is reused. |
| 0x12 | 2 | Hard link count | Number of $FILE_NAME attributes that are hard links to the file. |
| 0x14 | 2 | First attribute offset | Where the attribute stream starts, usually 0x38. |
| 0x16 | 2 | Flags | Bit 0 IN_USE (clear means deleted), bit 1 DIRECTORY. |
| 0x18 | 4 | Used size | Bytes of the slot this record actually uses. |
| 0x1C | 4 | Allocated size | Size of the slot, 1,024 on standard volumes. |
| 0x20 | 8 | Base record reference | Zero on a base record; on an extension record, the file reference of the base record it belongs to. |
| 0x28 | 2 | Next attribute ID | ID the next attribute added to this record will get. |
| 0x2C | 4 | MFT record number | The record's own index in the table, stored in the header since NTFS 3.1. |
The identifier that indexes a file's entry in the MFT is its record number (also called the entry number or index): record n starts at byte n × 1024 of $MFT. Everything that points at a file uses the 64-bit file reference number, which is the 48-bit record number in the low bits plus the 16-bit sequence number in the high bits. A reference whose sequence number no longer matches the record points at an earlier occupant of the slot, usually a deleted file. Parent directories in $FILE_NAME, $ATTRIBUTE_LIST entries and USN journal records all use this form.
For a byte-by-byte walk through the header and the attribute stream, see inside an MFT record.
After the header come the attributes. Each one has its own short header (type, length, resident/non-resident flag, optional name) followed by the data. There is no fixed order, but in practice $STANDARD_INFORMATION is first and $DATA last. A record that runs out of space (too many fragments, too many ADS, an unusually long name) sprouts an $ATTRIBUTE_LIST attribute pointing at one or more extension records elsewhere in the table. Parsers must follow the chain to reconstruct the file.
File attributes stored in $MFT
This is the canonical list of NTFS attribute types, with hex codes:
| Type | Hex | Purpose |
|------|-----|---------|
| $STANDARD_INFORMATION | 0x10 | Four timestamps (created, modified, accessed, MFT-modified), DOS flags, owner ID, security ID, USN pointer. |
| $ATTRIBUTE_LIST | 0x20 | Pointers to extension records when a file's attributes overflow one record. |
| $FILE_NAME | 0x30 | One filename, parent directory reference, allocated and real size, and a second set of four timestamps. A file may have several (one per hard link, plus the 8.3 short name on volumes with that enabled). |
| $OBJECT_ID | 0x40 | 128-bit object identifier used by the Distributed Link Tracking service. |
| $SECURITY_DESCRIPTOR | 0x50 | Legacy per-file ACL. Modern NTFS stores ACLs centrally in $Secure and references them by ID from $STANDARD_INFORMATION. |
| $VOLUME_NAME | 0x60 | Only on record 3 ($Volume). Holds the volume label. |
| $VOLUME_INFORMATION | 0x70 | NTFS version, dirty flag. |
| $DATA | 0x80 | The file's contents. Resident for very small files; non-resident (a runlist of clusters) otherwise. A file can carry several $DATA attributes; the unnamed one is the primary stream, named ones are alternate data streams. |
| $INDEX_ROOT | 0x90 | Root of a B+ tree. Used by directories ($I30), reparse-point indexes, and other indexed structures. |
| $INDEX_ALLOCATION | 0xA0 | Non-resident continuation of a large index. |
| $BITMAP | 0xB0 | Allocation bitmap for $MFT itself or for large directories. |
| $REPARSE_POINT | 0xC0 | Symlinks, junctions, mount points, OneDrive placeholders, dedup stubs. |
| $EA_INFORMATION / $EA | 0xD0 / 0xE0 | OS/2-era extended attributes. Rare on modern Windows. WSL1 used them for POSIX metadata, which is the only context worth caring about. |
| $LOGGED_UTILITY_STREAM | 0x100 | EFS encryption metadata ($EFS), TxF transaction data. |
A record always carries at least $STANDARD_INFORMATION, one $FILE_NAME, and one $DATA. Everything else is optional and feature-driven.
Resident vs non-resident data
Most $DATA attributes on a real volume are non-resident: the attribute header carries a compact list of cluster runs (a starting LCN plus a length, repeated), and the file's bytes live elsewhere on the disk. The attribute header itself is small.
If the file is small enough (typically under ~700 bytes once the other attributes are accounted for), NTFS stores the bytes inline inside the record. That is resident data, and it is one of the most useful artifacts in forensic work: the contents of a small text file deleted weeks ago may still sit, byte-for-byte, inside an unallocated $MFT record. See resident data for the size threshold and what to look for.
NTFS metadata files in the first sixteen records
The first 16 records of $MFT are reserved for NTFS's own bookkeeping. They start with a $ so they do not collide with user filenames. The ones worth knowing:
| Rec # | File | What it is |
|-------|------|------------|
| 0 | $MFT | The table itself. Its $DATA runlist points at its own clusters. |
| 1 | $MFTMirr | Partial backup of the first records of $MFT. |
| 2 | $LogFile | Transaction log used to undo or redo incomplete operations after a crash. |
| 3 | $Volume | Volume label and dirty flag. |
| 4 | $AttrDef | Schema of valid attribute types. |
| 5 | . | The root directory. |
| 6 | $Bitmap | One bit per cluster on the volume; tracks allocation. |
| 7 | $Boot | Copy of the boot sector. |
| 8 | $BadClus | Sparse file whose runs point at every cluster the filesystem has marked bad. |
| 9 | $Secure | Central store of security descriptors. |
| 10 | $UpCase | Unicode upper-case mapping table used for case-insensitive name comparison. |
| 11 | $Extend | Directory containing newer system files: $ObjId, $Quota, $Reparse, $UsnJrnl, $RmMetadata. |
The change journal $UsnJrnl (under $Extend) is especially useful in forensics; it logs every metadata change on the volume and complements $MFT for timeline reconstruction. See pairing journal with file table.
When $MFT goes wrong
The error "Windows cannot recover master file table. CHKDSK aborted" appears when chkdsk cannot read $MFT and cannot fall back to $MFTMirr either. By that point NTFS has already tried and failed at its built-in self-repair. The root causes I have seen, ranked by how often they actually turn out to be each one:
- Failing physical media. Bad sectors in the MFT zone return garbage on read. SMART data usually corroborates. Image the disk with
ddrescue, notdd, and work on the image. - Sudden power loss during a metadata-heavy operation. The transaction log normally rolls these back, but a corrupted
$LogFiledefeats the rollback. - Driver- or filter-level corruption. Misbehaving disk encryption stacks, file system minifilters, or buggy storage drivers can write inconsistent records. Common on hosts with multiple security agents fighting each other.
- Malicious overwrites. Wipers and a handful of ransomware families (notably Petya and the early NotPetya wave) deliberately scribble on
$MFTto make the volume unmountable. See ransomware patterns in MFT.
The forensically sound response:
- Stop writing to the volume immediately. Every further write reduces the chance of recovery.
- Image the disk with FTK Imager,
dd, orddrescueto a known-good destination. Verify the hash. - Work on the image, not the original. Try
testdisk,R-Studio, or a manual parse that findsFILErecords by signature scanning the volume directly. Even if the on-disk pointer to$MFTis gone, the records themselves are usually still recognizable. - If the goal is to bring the volume back online rather than to recover data, only then run
chkdsk /fon the image.
chkdsk /b on a writable volume can clear bad-cluster markers, but it can also discard records it cannot understand. Run it on the original only after you have an image and have decided availability beats forensic fidelity.
How to read $MFT
You have three realistic options:
- MFTECmd (Eric Zimmerman). A Windows CLI that produces CSV in the bodyfile-friendly layout most timeline tools expect. The de facto standard for incident responders.
omerbenamram/mft. A Rust crate and CLI (mft_dump). The parser this site uses, useful when you want to script analysis or embed it in a larger pipeline.- This site's browser parser. Drop
$MFTonto the homepage and it runs the same Rust parser, compiled to WebAssembly, entirely in your browser. Nothing is uploaded.
For flags, output columns and the timestomping checks, see the MFTECmd guide; for a comparison with concrete pros and cons, see MFT parser tools. For practical workflows on a parsed $MFT, see building a timeline, deleted files, and extracting $MFT.
Frequently asked questions
What does MFT stand for?
MFT stands for Master File Table. Written $MFT on disk because, on NTFS, the dollar sign prefixes the names of metadata files.
What is the master file table used for?
It is the index NTFS uses to find every file and directory on a volume. Each entry stores the file's name, timestamps, security information, attributes, and the location of its data on disk.
What file attributes are stored in the master file table?
At minimum every record carries $STANDARD_INFORMATION (timestamps, DOS flags), $FILE_NAME (name and a second set of timestamps), and $DATA (the file's contents or a pointer to them). Records can also carry $ATTRIBUTE_LIST, $OBJECT_ID, $SECURITY_DESCRIPTOR, $INDEX_ROOT, $INDEX_ALLOCATION, $BITMAP, $REPARSE_POINT, $EA, and $LOGGED_UTILITY_STREAM depending on the file. The full reference is in the attributes table above.
How big is the master file table?
Each record is 1,024 bytes. The table reserves about 12.5% of the volume by default (the MFT zone) but only consumes the space it actually needs. A volume with a million files has roughly a 1 GB $MFT.
Where is the $MFT file located?
In the root directory of each NTFS volume: C:\$MFT for the system drive, D:\$MFT for a second volume, and so on. It is invisible to Explorer and dir, and cannot be opened by name; copy it with a raw-read tool such as KAPE, FTK Imager or RawCopy. fsutil fsinfo ntfsinfo C: shows its starting cluster and size.
Is it safe to delete $MFT?
No. It is the index of every file on the volume, and Windows will not let you delete it while the volume is mounted. Destroying it makes the volume unmountable. It also never shrinks: the space it takes is the price of the number of files the volume has held.
What is the MFT record number?
The index of a record in the table, starting at 0 for $MFT itself. Record n sits at byte offset n × 1024 in $MFT, and NTFS 3.1 also stores the number inside the record header at offset 0x2C. Combined with the 16-bit sequence number at 0x10, it forms the 64-bit file reference number that other structures use to point at the file.
Is $MFT the same as $MFTMirr?
No. $MFTMirr is a partial backup of the first few records of $MFT, placed elsewhere on the disk so NTFS can bootstrap recovery if the main table's header is corrupted.
How do I fix a corrupt master file table?
Image the disk first. Then either run chkdsk /f against the image (fast, may discard records), or use a recovery tool that can scan for FILE signatures and reassemble the table from raw clusters (slow, preserves more evidence). Never run chkdsk against the original volume before imaging.
Can I read $MFT on Linux or macOS?
Yes. $MFT is just a file. Any parser that accepts a raw $MFT dump works on any OS: omerbenamram/mft, analyzeMFT, this site's browser tool. You only need Windows to extract the file from a live mounted volume.
Further reading
- Microsoft, Master File Table. The official, terse reference.
- Brian Carrier, File System Forensic Analysis. Still the best single book on NTFS layout and recovery.
- The linux-ntfs project's NTFS Documentation. Field offsets for every attribute, reverse-engineered the hard way.