Use this when a volume reports errors, is marked dirty or files are corrupt.
Filesystem Troubleshooting
Troubleshoot Windows file systems with chkdsk /scan or /f, fsutil dirty query, the System event log for NTFS errors, free space and disk health checks, and restore from shadow copies if files are damaged.
1. Get-Volume HealthStatus; fsutil dirty query.
2. System log: Ntfs 55/98, disk 7/51/153.
3. chkdsk /scan then /spotfix or /f in a window.
4. Disk health: Get-PhysicalDisk | Select HealthStatus.
5. Restore from backup if data is damaged.
disk errors → filesystem inconsistency → logged → chkdsk repairs
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Repair-Volume -DriveLetter C -ScanPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verify filesystem metadata state and repeat the exact file operation after repair Verify boundary
Record the Windows volume GUID/drive, filesystem type, free space and relevant NTFS/ReFS/disk event state, then expect the volume to be Online and writable with no active corruption indication after remediation. Recheck the exact file/folder ACL and perform the original operation using the same identity; confirm read-back of file size, timestamp or hash when data integrity matters. Monitor for new filesystem or storage errors during the retest. A clean filesystem check shows metadata consistency within its scope, but it does not show the backend media or application data is semantically correct.
Step 2 Branch filesystem failure at access, capacity, metadata, filter and block-I/O boundaries Narrow the fault
If a Windows filesystem path returns Access Denied, verify the token and ACL/inheritance before running repair tools. If writes fail with capacity errors, inspect volume free space, quota and shadow-copy consumption; if the volume becomes read-only, offline or reports metadata errors, capture filesystem and disk events and schedule the appropriate repair boundary. If errors are intermittent under load, correlate filter-driver and storage latency/error events. If only one file fails, test another file on the same volume and the same file locally versus over SMB to separate object corruption, filesystem state and network access.
Step 3 Common mistakes Narrow the fault
- Running
chkdsk /fon a busy server without planning a reboot.
- chkdsk /scan runs online on NTFS without downtime.
- Some repairs need a reboot or offline volume.
- File system errors can come from a failing disk.
Get-Volume— volumes, filesystem type, health and free spacefsutil fsinfo volumeinfo C:— filesystem featureschkdsk C: /scan— online scanGet-WinEvent -FilterHashtable @{LogName='System';ProviderName='Ntfs'} -MaxEvents 20— NTFS events
ReferenceWhy it matters1 section · depth on demand
Windows filesystem symptoms reflect volume state, NTFS/ReFS metadata, filters and storage completion
Filesystem Troubleshooting on Windows separates logical volume availability from NTFS/ReFS metadata health, access-control decisions, filter drivers and the lower storage path. A mounted drive letter can still have dirty/corrupt metadata, exhausted free space, quota limits or intermittent I/O failures. File locks and antivirus/backup filters can deny or delay an operation without filesystem corruption. The filesystem owns directory/file metadata and allocation, but it does not show the physical disk, SAN or virtual storage completed every write. Preserve event IDs, volume identity and the exact failing path before repair actions.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Online first, offline only when needed
C:\> chkdsk D: /scan
Stage 1: Examining basic file system structure ...
Windows has scanned the file system and found problems.
Run CHKDSK with the /spotfix option to fix these.
C:\> chkdsk D: /spotfix
C:\> fsutil dirty query D:
Volume - D: is NOT Dirty
The chkdsk reference describes /scan (online scan, NTFS) and /spotfix (spot fixing, NTFS), /f (fix, requires locking the volume) and /r (also locate bad sectors), and documents exit codes 0 (no errors), 1 (errors fixed), 2 (cleanup performed or skipped without /f) and 3 (could not check or fix).
| Option | Downtime | Use |
|---|---|---|
/scan | None | Detect problems on a live volume |
/spotfix | Brief dismount of the volume | Fix problems found by the online scan |
/f | Volume locked (C: needs reboot) | Full metadata repair |
/r | Long — reads every sector | Suspected bad sectors; prefer replacing the disk |
Evidence that something is wrong
| Source | Event / sign |
|---|---|
| System log, source Ntfs | 55 (corruption), 98 (volume needs repair), 130/140 |
| System log, source disk | 7 (bad block), 11 (controller error), 153 (I/O retried) |
Get-Volume | HealthStatus not Healthy |
fsutil repair state D: | Corruption detected by self-healing NTFS |
Disk-level errors (7, 11, 153, storport 129) mean the hardware or path is failing; running chkdsk repeatedly on a dying disk makes it worse. Copy data off first.
ReFS volumes
ReFS does not use chkdsk for repair; integrity streams and Storage Spaces resilience handle corruption. Check Get-FileIntegrity and the Microsoft-Windows-ReFS event logs instead.
Before /f or /r on important data
1. Have a current backup.
2. Note the exit code and log: after the run, Get-WinEvent -FilterHashtable @{LogName='Application'; ProviderName='Chkdsk','Wininit'} holds the report.
3. Files moved to D:\found.000 were orphaned fragments — restore real files from backup rather than trusting them.
*The CHKDSK and dirty-bit responses illustrate a repair sequence and are not records of a scanned volume.*
Method
Filesystem troubleshooting detects and repairs NTFS/ReFS corruption, space problems and volume errors.
Get-Volume | Select-Object DriveLetter, FileSystem, HealthStatus, SizeRemaining, Size
Repair-Volume -DriveLetter D -Scan
Repair-Volume -DriveLetter D -SpotFix
chkdsk D: /scan
fsutil dirty query D:
Get-WinEvent -LogName System -MaxEvents 50 | Where-Object ProviderName -match 'Ntfs|disk'
| Symptom | Next step |
|---|---|
| Event 55/98 (NTFS corruption) | Online scan, then spot fix |
| Volume flagged dirty | chkdsk at next reboot for system volume |
| Space disappears | Shadow copies (vssadmin list shadowstorage), large hidden folders (WinSxS, logs) |
| Disk errors (event 7, 153) | Check hardware, storage paths |
On NTFS, /scan runs online; /f and /r may require exclusive access or a reboot. Back up before repairing important volumes.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Filesystem → Filesystem Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/storage/file-server/ntfs-overview · confidence 94%