TechBuzzPro

How to Use CHKDSK to Repair a Hard Drive

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, CHKDSK can repair many hard drive file-system errors on Windows. The built-in Check Disk utility scans the drive, repairs damaged folders and file tables, and marks unreadable sectors as bad so Windows stops using them. You need administrator rights, and you should back up important files first because repairs can occasionally make damage worse.

What You'll Need

  • A Windows PC with administrative access to the account you are signed in to.
  • The drive letter of the drive you want to check, such as C: or D:.
  • At least 30 minutes of free time, although larger drives can take several hours.
  • A backup of irreplaceable files on an external drive or another PC, if possible.
  • A stable power source. If the drive is a secondary drive in a desktop, do not unplug it during the scan.

Step-by-Step

  1. Back up your important files first. CHKDSK is a repair tool, not a data-recovery service. If the drive is failing, copying files may take longer than usual and may produce read errors, but having a copy is still safer than running a repair with no backup. Skip this step only if the drive contains nothing you care about.
  2. Open an elevated Command Prompt. Press the Windows key, type cmd, right-click Command Prompt and choose Run as administrator. A User Account Control prompt appears; select Yes. If you cannot find Command Prompt in the search results, choose Run as administrator from the search box itself.
  3. Run a read-only check first. Type chkdsk D: /scan and press Enter, replacing D: with the drive you want to test. The /scan option runs an online scan on NTFS volumes without dismounting the drive, so you can keep working. This gives you a quick idea of whether errors exist before committing to an offline repair. If your drive uses exFAT or FAT32, the online scan option is not available, so use the standard check in the next step instead.
  4. Read the results. Windows reports the file system, found errors, and whether space is in use. A message saying no problems were found means the file system is healthy, though it does not rule out a failing drive with physical hardware problems.
  5. Schedule the full repair. Type chkdsk D: /f and press Enter. The /f option fixes file-system errors. If the drive is in use, Windows asks whether to schedule the scan for the next restart. Type Y and press Enter to confirm. On NTFS drives, adding /x forces the volume to dismount first, which is sometimes needed on a system drive or a drive held open by another program.
  6. Restart the PC if prompted. Close open applications and restart Windows. The scan runs before the desktop loads, so it can work on the drive without programs locking files. Do not press the power button to interrupt it, because stopping mid-repair can leave the file system in a worse state.
  7. Watch for the final report. After the scan finishes, Windows shows a summary of the repairs. Restart again if you are asked to, then open File Explorer and check that your folders and files are intact.
  8. Check the drive's health afterward. Open Command Prompt as administrator again and run chkdsk D: /scan once more. A clean result confirms the file system is consistent. To look for physical problems, open the drive's Properties in File Explorer, go to the Tools tab, and select Check. This launches the same disk-checking process with a graphical interface.

Common Mistakes

  • Access denied. You are not running Command Prompt as administrator. Close it, right-click it again and choose Run as administrator.
  • Cannot find the drive. The letter is wrong or the drive is not connected. Confirm the letter in File Explorer by clicking This PC. BitLocker-protected drives may also need unlocking before a full check can run.
  • CHKDSK is in use. Another program has files open on the drive. Close everything using it, or schedule the check for the next restart. On NTFS, /x forces dismounting, but that closes any open handles.
  • The wrong drive gets repaired. Check the volume size and label in File Explorer before running the command. A mistyped letter can target the wrong disk.
  • Errors remain or files disappear. File-system repair cannot rebuild data that has already been overwritten or lost to hardware failure. Continue with recovery options rather than repeatedly running CHKDSK.

Tips

  • Always use the drive letter, such as D:, and keep the colon. Typing chkdsk D alone does not target the volume.
  • Use /f for file-system repairs and /scan for a quick online check on NTFS. Use /r only when you suspect bad sectors, because it can take many hours on a large drive.
  • Do not use CHKDSK on a failing drive that contains your only copy of important data. Image the disk first if you have the space and equipment.
  • Run scans when the PC is plugged in and stable. On a laptop, keep the charger connected for the duration.
  • CHKDSK repairs file systems, not broken drive hardware. If the drive reports repeated errors, bad sectors or clicks, replace it and restore from backup.

Troubleshooting

If the scan will not start, first confirm the drive letter and that you are in an elevated Command Prompt. Then check whether the drive is encrypted with BitLocker, because a locked volume cannot be checked until it is unlocked. If the repair is repeatedly interrupted by a restart, leave the PC plugged in and let the scheduled scan complete before running any other programs.

If CHKDSK reports that it made corrections but problems keep returning, the underlying cause is likely hardware. Check the drive's SMART status using a manufacturer diagnostic tool or a reputable drive-health utility, and look for event logs about disk errors in Event Viewer under Windows Logs and System. A drive that fails these checks should be replaced, not repaired again.

If files are missing after the repair, do not write new data to the drive. Use data-recovery software that reads the disk to a separate location, or take the drive to a professional recovery service. Continuing to use the drive overwrites recoverable sectors.

Frequently Asked Questions

Does CHKDSK fix a physically failing hard drive?

No. It repairs file-system structures and can mark bad sectors as unusable, but it cannot replace damaged hardware. A drive with recurring errors usually needs replacing.

Is it safe to run CHKDSK on a drive with important files?

It is generally safe, but repairs can change damaged file structures and occasionally make recovery harder. Back up what you can first.

How long does CHKDSK take?

It depends on drive size, error level and connection speed. A quick online scan takes minutes; a full offline repair with /r can run for several hours.

Can I cancel CHKDSK once it starts?

You can stop an online scan, but do not interrupt a repair running during startup. Forcing the PC off mid-repair can leave the file system damaged.

Does CHKDSK delete files?

It does not intentionally delete your data, but it can move orphaned files into a lost-and-found folder, and badly damaged entries may be discarded.

Can I run CHKDSK on an external drive?

Yes. Use its assigned drive letter and close any windows using it. If the scan cannot dismount the volume, you may need to run it from another PC with the drive connected.