sodcalculator

10 Tech How-To

How to Fix Hard Disk Errors on Windows

Guide 10-14145 · Updated · Step by step

This guide walks you through the most effective ways to fix hard disk errors on Windows, from simple built-in tools to command-line repairs. You’ll learn how to diagnose the problem, run the appropriate repair, and recover your data if the drive is failing. No special software is needed—everything uses tools already in Windows.

What You’ll Need

  • Administrator account access
  • Patience (some scans take hours)
  • An external drive or cloud storage for backups (recommended)
  • Your Windows installation media (only if the drive won’t boot)

Step-by-Step

  1. Back up your important files immediately. Before any repair, copy critical data to an external drive or cloud. If the disk is failing, every minute counts. Skip this only if you have nothing valuable on the drive.
  2. Run Check Disk (CHKDSK) with automatic repair. Open File Explorer, right-click the drive (usually C:), select Properties → Tools → Check under Error checking. Windows will scan for file system errors. If it finds any, it will ask to repair them—click Repair drive. For a deeper scan, use the command line method in the next step.
  3. Use CHKDSK from Command Prompt for thorough repair. Press Win + X and select Terminal (Admin) or Command Prompt (Admin). Type chkdsk C: /f /r and press Enter. If the drive is in use (usually C:), it will ask to schedule the scan for next restart—type Y and reboot. The /f fixes file system errors, /r locates bad sectors and recovers readable data. This can take hours on large drives.
  4. Check the drive’s SMART status. SMART (Self-Monitoring, Analysis and Reporting Technology) tells you if the drive is physically failing. Open PowerShell or Command Prompt as admin and type wmic diskdrive get status. If it says OK, the drive is healthy; if Bad or Pred Fail, replace the drive soon. For more detail, use wmic diskdrive get model,status.
  5. Run the System File Checker (SFC) for corrupted system files. Sometimes hard disk errors are caused by damaged Windows files, not the disk itself. In an admin terminal, type sfc /scannow and wait. It will replace corrupted system files automatically.
  6. Use DISM to repair the Windows image. If SFC fails, run DISM /Online /Cleanup-Image /RestoreHealth. This fixes the underlying Windows image that SFC relies on. After it completes, run sfc /scannow again.
  7. If the drive won’t boot, use Windows Recovery Environment. Boot from your Windows installation USB, select Repair your computer → Troubleshoot → Command Prompt. Then run chkdsk C: /f /r (replace C: with the correct drive letter). You can also use Startup Repair from the Troubleshoot menu.
  8. Consider a third-party disk diagnostic tool. While Windows tools are good, manufacturers like Seagate, Western Digital, and Samsung offer free diagnostic tools. Download the one for your drive brand and run a full test. If it reports physical errors, back up immediately and replace the drive.

Common Mistakes

  • Skipping the backup. Running repairs on a failing drive can cause more data loss. Always back up first.
  • Interrupting CHKDSK. Let it finish. Stopping it mid-scan can corrupt the file system further.
  • Using the wrong drive letter. In Recovery Environment, the drive letter might not be C:. Use diskpart → list volume to find the correct one.
  • Ignoring SMART warnings. If SMART says the drive is failing, no software repair will fix it. The drive needs replacement.
  • Running CHKDSK on an SSD too often. CHKDSK is designed for HDDs. On SSDs, it can cause unnecessary write wear. Use it only if you suspect file system errors, not for routine maintenance.

Tips

  • Run CHKDSK regularly if you hear clicking or grinding. Those sounds indicate physical damage—back up immediately.
  • Keep your system clean. Use Disk Cleanup to remove temp files, which reduces fragmentation and stress on the drive.
  • Defragment an HDD, not an SSD. For HDDs, run defrag C: monthly. For SSDs, never defrag—Windows handles TRIM automatically.
  • Monitor drive health with SMART. Set up a scheduled task to check SMART status weekly.
  • Use a surge protector. Power surges are a leading cause of hard disk damage.

Troubleshooting

  • CHKDSK says “The type of the file system is RAW.” The drive’s file system is corrupted. Try chkdsk C: /f anyway. If that fails, use data recovery software before formatting.
  • CHKDSK gets stuck at a certain percentage. Wait at least an hour. If it’s truly stuck, restart and try running it in Safe Mode (press F8 during boot, or use msconfig to boot into Safe Mode).
  • You get “Access Denied” when running CHKDSK. You must run it as administrator. Right-click the terminal and select Run as administrator.
  • SFC finds errors but can’t fix them. Run DISM first, then SFC again. If still failing, boot into Safe Mode and run SFC there.
  • The drive makes clicking noises but CHKDSK finds no errors. This is a physical failure. Stop using the drive, back up what you can, and replace it. Do not run CHKDSK again—it may worsen the damage.
  • Windows won’t boot at all. Use your installation media to access the Recovery Environment. If you don’t have it, create one on another PC using Microsoft’s Media Creation Tool.

Frequently Asked Questions

Will CHKDSK fix bad sectors?

CHKDSK can mark bad sectors so the drive won’t use them again, and it attempts to recover data from them. However, it cannot physically repair a damaged drive. If bad sectors are present, back up and replace the drive.

How long does CHKDSK take?

It depends on drive size and health. A 1TB HDD can take 2-5 hours. A failing drive can take much longer. Let it run overnight if needed.

Can I use my computer while CHKDSK is running?

No. If CHKDSK is running on your system drive, it will restart and run before Windows loads. On other drives, you can use the computer, but it will be slower. It’s best to let it run uninterrupted.

Is CHKDSK safe for SSDs?

Yes, but it’s not necessary for routine maintenance. SSDs don’t have moving parts, so bad sectors are rare. Use it only if you suspect file system errors, not for optimization.

What’s the difference between /f and /r in CHKDSK?

/f fixes file system errors. /r includes /f and also scans for bad sectors, attempting recovery. Use /r for a thorough check.

How do I know if my hard drive is physically failing?

Signs include clicking or grinding noises, frequent freezes, file corruption, and SMART warnings. Run wmic diskdrive get status—if it says Bad, replace the drive.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →