0XC0000304

STATUS_MFT_TOO_FRAGMENTED (0xC0000304) Fix: MFT Too Fragmented

Hardware – Hard Drives Advanced 👁 0 views 📅 Jun 10, 2026

The MFT is so fragmented Windows can't read it. Fix is to defrag the MFT zone with a specific tool. Skip chkdsk, it won't help here.

Quick Answer

Use the Sysinternals Contig tool with the -z switch to defragment the MFT zone. Run contig -z C: from an elevated command prompt.

Why This Happens

The Master File Table (MFT) is the heart of NTFS — it tracks every file and folder on the volume. When the MFT grows too large and gets fragmented across the disk, Windows can't read it efficiently. This error usually shows up when you try to shrink a volume in Disk Management, run certain backup tools, or attempt a system restore. I've seen it most often on heavily-used drives that are over 80% full, especially on Windows Server 2012 R2 and Windows 10 1809+ builds.

The culprit here is almost always aggressive file creation/deletion — think SQL Server transaction logs, hypervisor snapshots, or heavy temp file usage. The MFT expands in chunks called MFT zones. When those zones get scattered, you get this error.

Fix Steps

  1. Download Contig from Microsoft Sysinternals
    Grab it from https://learn.microsoft.com/en-us/sysinternals/downloads/contig. No install needed — it's a single EXE.
  2. Open an elevated Command Prompt
    Right-click Start > Command Prompt (Admin) or PowerShell (Admin).
  3. Navigate to the Contig folder
    cd C:\path\to\Contig
  4. Run the MFT defrag command
    contig -z C:
    Replace C: with your drive letter. This forces the MFT zone to be contiguous. It leaves existing MFT records in place but reorganizes the free space around them.
  5. Wait for it to finish
    Depending on drive size and fragmentation, this can take 5–30 minutes. Don't interrupt it.
  6. Reboot and test
    Try the operation that triggered the error again — shrink volume, backup, restore, whatever.

Alternative Fixes If Contig Doesn't Work

  • Free up at least 20% space
    Contig needs breathing room. If the drive is over 90% full, delete or move files first. Use windirstat or wiztree to find big junk.
  • Run a full chkdsk
    Even though chkdsk won't fix fragmentation, it might catch a corrupt MFT mirror. Run chkdsk C: /f /r then reboot. Yes, it takes hours on large drives. Deal with it.
  • Third-party defrag tools
    I've had luck with Defraggler in its boot-time defrag mode. It can defrag locked files including the MFT. Boot from a live CD or use the scheduled defrag option.
  • Last resort: format and restore
    If the drive is still failing, back up what you can and format it. NTFS will create a fresh contiguous MFT. Then restore your data. Not fun, but sometimes it's the only way.

Prevention Tips

  • Keep 15–20% free space
    NTFS needs room to grow the MFT contiguously. Once the drive hits 80% full, the MFT fragment risk goes up fast.
  • Use fixed MFT size for critical volumes
    Set a reservation with fsutil behavior set mftzone 2 (value 2 = 200 MB per GB). Reboot. This gives the MFT dedicated space early.
  • Schedule regular defrags
    On Windows 10/11, set a weekly defrag task for SSDs and HDDs. SSDs don't need defrag for performance, but the MFT zone still benefits from being contiguous.
  • Avoid heavy temp file usage on the system drive
    Move SQL tempdb, browser caches, and pagefiles to a separate drive if possible.

That's it. Contig has saved my skin more times than I can count. Keep a copy on your admin USB drive — you'll need it eventually.

Was this solution helpful?