How to Run CHKDSK in Windows 10/11 from CMD or Before Boot

Published by Nyau Wai Hoe - Updated on

CHKDSK is a command used in Command Prompt to scan, check, and repair hard drives in our computers. In Windows 11 or Windows 10, using chkdsk is no different from using it in any previous version of Windows. However, you will need to give the Command Prompt (CMD) administrative privileges to use the chkdsk command.

chkdsk Windows 11/10

Run CHKDSK in Windows 11/10 from Command Prompt

If your target hard drive is not a boot drive, meaning that the drive isn’t where your Windows is located, using CHKDSK in Command Prompt will scan and repair the target drive immediately.

  1. Go to Start Menu. Type CMD.
  2. From the search result, right click Command Prompt, then click Run as administrator.cmd run as admin
  3. If “User Account Control” ask for permission, click Yes to proceed.
  4. In the command prompt, type:
    chkdsk [driveletter] /f /r /x
  5. For example:
    chkdsk C: /f /r /x

    chkdsk in Windows 11/10 command prompt

  6. Chkdsk will then run to scan the selected disk for errors and repair them automatically. It may take hours if you have a huge and messy drive.

Why do we need the parameters “/f /r /x” when doing chkdsk?

  • If you enter CHKDSK without the parameters, the command itself will only scan the disk and show you the disk’s status. It won’t repair anything. To allow it to fix errors it finds, “/f” is needed.
  • If you want it to also locate bad sectors on the drive and recover readable information, “/r” is needed.
  • To force it to dismount the drive before checking the disk, “/x” is needed. This is recommended to make sure there is no running application in that particular drive that may interfere with the CHKDSK process.
  • If you need more info on other parameters you can use, go to this chkdsk docs from microsoft.

Run CHKDSK in Windows 10/11 Before Boot

If you want to CHKDSK your primary drive where you store and boot your Windows, usually C: drive, CHKDSK will need to run before booting into Windows. This is because CHKDSK cannot be run if the drive is in use, especially if there are any system core files on the drive that Windows relies on to work.

Note: If you cannot even boot into Windows, skip this method and go to the next one.

Here’s how you can set CHKDSK to run before boot in Windows 11/10:

  1. Follow step 1-4 in the instruction above.
  2. In the command prompt, enter chkdsk commands with the parameters. For example:
    chkdsk C: /f /r /x
  3. If chkdsk detects that the drive you want to scan is a boot drive, it will shows “Cannot lock current drive. Chkdsk cannot run because the volume is in used by another process“, and ask if you would like to schedule the drive to be checked the next time you reboot/restart your computer.
  4. Type and enter Y.Run chkdsk in Windows before boot
  5. Restart your computer.
  6. Chkdsk will run automatically during your next boot before booting into Windows.

If you cannot even boot into Windows

If you are facing a serious issue where you can’t even boot into Windows, you can force your PC to boot into recovery mode and open Command Prompt from the recovery mode.

For more info about how to launch CMD on boot, read: How to Startup Repair Windows 11/10 using Command Prompt.

When do you need to run chkdsk for your drives?

You can run CHKDSK gradually and as frequently as you like. Unlike defragmenting, CHKDSK won’t harm your drive in any way no matter how frequently you run it. If you have not run it for a while, it’s recommended that you run CHKDSK for each of your hard drives once a month.

If you encounter freezes, hangs, drives, or CPU running at 100% all the time in Windows, run CHKDSK. There may be errors on the disk that cause all the problems.

Why is chkdsk stuck at a certain percentage for a long time?

CHKDSK may take some time to finish. We are talking about several hours here depending on the size of the disk and how much space it was used. Try to wait it out. We usually let our system run CHKDSK overnight.

If CHKDSK is still stuck at a certain percentage even after 10 hours of running, try to restart the run. It may indicate that your drive is starting to fail. Backup immediately and replace the drive as soon as possible before it completely breaks down.

Categories: Windows 10Windows 11

Nyau Wai Hoe
Nyau Wai Hoe is the Founder and Chief Editor of With a degree in software engineering and over 12 years of experience in the tech support industry, Nyau has established himself as an expert in the field, with a primary focus on the Microsoft Windows operating system. As a tech enthusiast, he loves exploring new technologies and leveraging them to solve real-life problems.

Share via
Copy link