Pcornel
Windows · Filesystem

Filesystem Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=2971

Back to the Topic

Answer

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.

Remember

  • 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.

First checks

  • Get-Volume — volumes, filesystem type, health and free space
  • fsutil fsinfo volumeinfo C: — filesystem features
  • chkdsk C: /scan — online scan
  • Get-WinEvent -FilterHashtable @{LogName='System';ProviderName='Ntfs'} -MaxEvents 20 — NTFS events

Commands

Repair-Volume -DriveLetter C -Scan
Operational command for Scan a Windows volume for filesystem issues. Focus fields: drive letter, health status and scan…

Verify in this order

disk errors → filesystem inconsistency → logged → chkdsk repairs

Where it usually breaks

First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2971

Confirmation

Confirm action

Continue?