How to Use the fsutil and chkdsk Commands in Windows 11 to Diagnose and Repair File System Corruption

Filesystem anomalies in Windows 11—often triggered by abrupt power outages, unsafe external drive disconnection, or failing storage controllers—manifest as disappearing directories, zero-byte file errors, or system lockups during disk I/O. Windows provides two foundational command-line storage tools: fsutil (File System Utility) for querying NTFS file system behaviors, 8.3 naming parameters, and volume dirty flags, and chkdsk (Check Disk) for repairing corrupt Master File Table (MFT) records and reallocating physical bad sectors.

Understanding the Volume Dirty Bit with fsutil

When the Windows NTFS driver detects that metadata transactions were interrupted before writing to disk, it marks the volume with an internal hexadecimal flag known as the dirty bit. Windows automatically prompts for a disk scan on reboot when this bit is set.

# Query whether drive C: has a dirty bit set
fsutil dirty query C:

# Query secondary storage volume D:
fsutil dirty query D:
Command / Flag Operation Performed When to Use
fsutil dirty query <drive> Inspects the filesystem integrity flag. Quick verification before launching lengthy repairs.
fsutil dirty set <drive> Manually marks volume as dirty. Forces a mandatory boot-time CHKDSK on next restart.
chkdsk <drive> /f Repairs logical filesystem errors on disk. Fixes cross-linked files and directory index corruptions.
chkdsk <drive> /r Locates bad sectors and recovers readable information. Deep physical surface analysis (includes /f).
chkdsk <drive> /scan /perf Online non-disruptive NTFS self-healing scan. Live diagnostic scan without locking the volume.

Running an Online chkdsk Scan in Windows 11

Modern NTFS in Windows 11 includes self-healing capabilities. Instead of immediately dismounting your drive and taking your system offline, run an online scan with the /perf switch to utilize system resources for maximum speed:

chkdsk C: /scan /perf

This command audits the four primary NTFS phases (file verification, index verification, security descriptor verification, and usn journal) while the operating system remains fully active. If issues are found, CHKDSK queues them for rapid offline spot-repair, requiring only seconds during a restart rather than hours.

Executing Full Offline Repairs with chkdsk /f and /r

If filesystem errors cannot be resolved online, or if the drive is suffering from physical block degradation, schedule an offline repair:

chkdsk C: /f /r

Because the boot volume C: is actively in use by Windows, the command prompts:

“Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)”

Press Y and press Enter. Restart your computer. Windows boots into the Recovery Environment and scans the drive across all 5 verification stages, remapping bad sectors and restoring the MFT index.

Auditing chkdsk Logs in Event Viewer

Once the system finishes scanning and reboots into Windows 11, review the complete scan log:

  1. Press Windows Key + X and select Event Viewer.
  2. Navigate to Windows Logs > Application.
  3. In the right pane, click Filter Current Log.
  4. Under Event sources, check Chkdsk and Wininit, then click OK.
  5. Select the latest event (Event ID 1001) to read the full report of repaired clusters, cleaned file indexes, and bad sector reallocation counts.

Routine filesystem verification with fsutil and chkdsk protects long-term data resiliency and prevents cascading data loss on solid-state and mechanical drives.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.