How to Run CHKDSK in Windows 10: Commands and Switches

Microsoft steps and switches for chkdsk.

Fact-checked Reviewed by Meera Krishnan Updated November 19, 2026 Based on 2 sources
Summary

How to run chkdsk in Windows 10? Open Command Prompt as an administrator, type chkdsk C: /f and press Enter. Microsoft says chkdsk with no parameters only shows the volume's status and fixes nothing. The /f switch fixes file system errors, and /r also looks for bad sectors. If the drive is in use, Windows asks to schedule the check for the next restart.

What Does CHKDSK Do?

Microsoft's chkdsk reference says the command checks the file system and file system metadata of a volume for logical and physical errors. It applies to Windows 10 and Windows 11. It works only on local disks, not on a drive letter redirected over a network.

How to Run CHKDSK in Windows 10 From Command Prompt

Membership in the local Administrators group is the minimum needed to run chkdsk. Microsoft gives these steps in its Windows Update troubleshooting page:

  1. Type command prompt in the taskbar search box, right-click Command Prompt and select Run as administrator.
  2. Select Yes if Windows asks for permission.
  3. Type chkdsk /f C: and press Enter. Keep the space shown.
  4. Repairs start automatically, and you are asked to restart your device.

Microsoft notes that this section sits under advanced troubleshooting steps meant for people comfortable with the command line.

Step 1: Run a Read-Only Check First

Used without parameters, chkdsk displays only the status of the volume. Microsoft says that without /f it reports that a file needs fixing but does not fix it. Open files can also produce false lost-allocation-unit reports, so close your programs first.

Step 2: Fix Errors With /f

The /f switch fixes errors on the disk, and the disk must be locked. If Windows cannot lock the drive, chkdsk asks whether to check it the next time you restart. A prompt like this appears:

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)

Microsoft says that if you choose to check at restart, chkdsk corrects errors automatically when the computer restarts. On a boot partition, it restarts the computer by itself after the check. Running /f on a large disk or one with millions of files can take a long time.

Step 3: Add /r to Find Bad Sectors

The /r switch locates bad sectors and recovers readable information. It includes /f, plus analysis of physical disk errors. On a hard disk drive, Microsoft says heads must move to each location, so checks are slow and runs of several hours are not uncommon on large drives. The /x switch forces the volume to dismount first if needed, which invalidates all open handles to the drive.

Step 4: Use Faster NTFS Options

Microsoft lists these switches for NTFS volumes only:

  • /scan: runs an online scan on the volume.
  • /perf: used with /scan, it uses more system resources to finish faster, which might slow other tasks.
  • /spotfix: runs spot fixing on the volume.
  • /offlinescanandfix: runs an offline scan and fix on the volume.
  • /i and /c: skip some index and folder-cycle checks to reduce run time.

Step 5: Read the Chkdsk Results

Microsoft says you can view the logs in Event Viewer:

  1. Press Win + R, type eventvwr.msc and select OK.
  2. Expand Windows Logs, right-click Application and select Filter Current Log.
  3. Open the Event sources list, select Chkdsk and Wininit, then select OK.

Chkdsk also returns an exit code:

Exit codeMeaning
0No errors were found.
1Errors were found and fixed.
2Cleanup was performed, or skipped because /f was not specified.
3The disk could not be checked, or errors were not fixed.

Cautions From Microsoft

  • Interrupting chkdsk is not recommended. Microsoft says it should not leave the volume more corrupt than before, and running it again checks and should repair any remaining corruption.
  • On FAT file systems, repairs usually change the file allocation table and can cause data loss. Microsoft says answering Y to convert lost chains saves them as File<nnnn>.chk files in the root directory.
  • If chkdsk on a large drive finishes suspiciously fast, Microsoft lists causes such as a locked volume, an unscanned sector range or a hardware problem, and says to check the logs.

If chkdsk finds nothing but Windows still misbehaves, our guide on how to repair Windows 10 system files covers System File Checker.

What Do These Sources Not Say?

  • The Microsoft pages we opened do not give Windows 10 steps for the Check button in a drive's Properties window. The only page we found for that is written for Windows 7.
  • Microsoft does not say how often to run chkdsk.
  • We read Microsoft's notes for hard disk drives only, so this guide gives no advice for SSDs.
  • The pages do not say how to recover files from a drive that chkdsk cannot fix.

Frequently Asked Questions

How to run chkdsk in Windows 10 without losing files?

Run it without parameters first to see the status. Microsoft warns that repairs on FAT drives can cause data loss, so back up what you can before you use /f or /r.

What is the difference between chkdsk /f and /r?

/f fixes errors on the disk. /r includes /f and also locates bad sectors and recovers readable information.

Why does chkdsk ask to run at the next restart?

The drive is in use and cannot be locked. Answer Y and restart, and chkdsk runs before Windows starts.

Where can I see what chkdsk found?

In Event Viewer, under Windows Logs, Application, filtered to the Chkdsk and Wininit sources.

Key Takeaways

  • Open Command Prompt as administrator, then run chkdsk C: /f to fix errors.
  • Without /f, chkdsk only reports and fixes nothing.
  • Use /r when you suspect bad sectors, and expect a long run on large hard drives.
  • Check the exit code and the Event Viewer log afterward.

Sources and References

Facts follow Microsoft Learn and Microsoft Support.

  1. chkdsk (Microsoft Learn) learn.microsoft.com
  2. Troubleshoot problems updating Windows (Microsoft Support) support.microsoft.com