Other products

Run Microsoft CHKDSK from the command line

We does not offer support for getting the CHKDSK utility to run, nor does it support the problems that may occur as a result of running the CHKDSK utility. Any support issues related to the CHKDSK utility should be directed to Microsoft. For additional information, visit Microsoft's support page.

Run CHKDSK to check for disk errors

  1. Press the Windows + R keys to open the Run dialog box.

  2. Type the following text, and then press Enter.

  3. Type the drive letter of the drive you want to check (followed by a colon), and then press Enter. For example, type the following text to check drive D.

  4. Change to the root directory of the drive by typing the following text and pressing Enter.

  5. Type the following text, and then press Enter.

    chkdsk /<switch>

    where <switch> is one of the following:

    • If you want to automatically repair file system errors, use the /f switch (for example, chkdsk /f).

    • If you want to both repair file system errors and scan for and recover bad sectors, use the /r switch (for example, chkdsk /r).

    If you do not specify a switch when you run CHKDSK, any errors that are found are not fixed.

  6. If you are prompted to schedule CHKDSK to run the next time the computer restarts (because CHKDSK may be unable to gain exclusive access to the drive under Windows), type the following text, and then press Enter.

  7. At the command prompt, type the following text, and then press Enter.

  8. If you had to schedule the CHKDSK operation, then restart your computer.

    While Windows loads, CHKDSK should automatically run and check the drive that you specified earlier.

We recommends that you run CHKDSK a second time if any errors or bad sectors are found on the disk. Continue running CHKDSK until all errors and bad sectors have been fixed.

The solution made it easy for me to handle my issue.

Yes No

Help us improve this solution.

Thank you for helping to improve this experience.

What would you like to do now?

Browse for solutions, search the Norton Community, or Contact Us.

DOCID: v76078023
Operating System: Windows
Last modified: 03/31/2022