How to Run CHKDSK on Windows 11: Find & Fix Disk Errors

Use this command from File Explorer or the command line tool

Reading time icon 4 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • Chkdsk command can be used to verify the integrity of files on your hard drive.
  • This tool can also be used to repair errors and recover some of the damaged files.
how to run chkdsk windows 11

Ensuring that your hard drive is working correctly should be your priority, and this is why you need to run chkdsk on Windows 11 and scan the drive for bad sectors.

By scanning your drives frequently, you can diagnose potential issues, such as drive errors, and prevent file loss from occurring on your PC. To learn how to do that, be sure to keep on reading.

How long does chkdsk take?ย 

Chkdsk takes from 20 minutes to a couple of hours. This depends on the size of the drive as well as the number of damaged sectors. The larger the drive with more bad sectors, the longer the scan will take.

The following are the most commonly used chkdsk commands:

  • chkdsk /f – will scan and try to repair the bad sectors
  • chkdsk /r – will scan and try to recover data from damaged sectors

How do I scan and repair drivers in Windows 11? 

1. Use chkdsk from CMD

  1. Press Windows key + X and choose Windows Terminal (Admin). You can use Command Prompt or PowerShell since the command works in both command line tools.
  2. Once the command line starts, type chkdsk C: and press Enter. Of course, you can use any other drive letter instead of C.
  3. The scan will now scan your PC for disk errors and let you know if there are any damaged sectors on your drive.

2. Use chkdsk from File Explorer

  1. Open File Explorer, and navigate to This PC.
     
  2. Locate the drive you wish to scan. Right-click the drive and select Properties from the menu.
  3. Navigate to the Tools tab and click on the Check button.
  4. Click on Scan drive to start the scan.
  5. Disk integrity check will now start.

3. Use chkdsk from the W11 installation disk

  1. Boot your PC from the installation media.
  2. Click Next, and then choose Repair your computer.
  3. Select Troubleshoot.
  4. Next, navigate to Advanced options.
  5. Lastly, click on Command Prompt.
  6. Run the chkdsk /f command.

Chkdsk parameters and exit codes

What do chkdsk parameters mean?

/fused to fix bad sectors
/r locates the bad sectors and recovers readable information
/vdisplays the name of each scanned file
/xforces the drive to dismount
/iperforms a less vigorous check (only on NTFS drives)
/cdoesn’t check cycles within the folder structure (only on NTFS drives)
/I[:<size>]changes the size of the log file
/bclears the bad clusters and scans all allocated and free clusters for errors (only on NTFS drives)
/scanruns an online scan (only on NTFS drives)
/forceofflinefixit’s used with /scan to bypass online repair and queue defects for offline repair (only on NTFS drives)
/pref it’s used with /scan in order to allocate more resources in order to complete the scan faster (only on NTFS drives)
/spotfixruns spot fixing on the volume (only on NTFS drives)
/sdcleanupit cleans unnecessary security descriptor data (only on NTFS drives)
/offlinescanandfixit performs an offline scan and fixes the drive
/freeorphanedchainsfrees orphaned cluster chains (only on FAT/FAT32/exFAT)
/markcleanmarks the volume clean if no corruption was detected (only on FAT/FAT32/exFAT)
/?displays the list of all supported parameters

Some of these commands will need to lock your drive. In case there are any issues, we have a guide on what to do if chkdsk cannot lock current drive.

What do chkdsk exit codes mean?

0the scan found no errors with your drive
1the errors have been found and fixed
2performed disk cleanup or didn’t perform it because /f parameter wasn’t used
3couldn’t check the disk or fix the errors; errors weren’t fixed because /f was not specified.

Using chkdsk on your PC is important since you want to diagnose and fix hard drive problems before the file loss occurs. However, if chkdsk is stuck on your PC and you can scan the drive, we have a special guide to fix it.

To learn how to effectively fix issues, be sure to learn the difference between CHKDSK, SFC and DISM on your PC.

How often do you use chkdsk on your PC? Let us know in the comments below.

More about the topics: chkdsk, Windows 11