The fastest fix for most disk check errors is to open Command Prompt as administrator, run chkdsk C: /f (swap in the affected drive letter), and restart if Windows offers to schedule the scan; at the same time, back up anything important, because repeated errors can point to a failing drive. Microsoft’s documentation says chkdsk with /f fixes logical file system errors, while /r also looks for bad sectors and tries to recover readable data.
What a disk check error means
“Disk check errors” covers several situations: Windows scheduling a check at startup, chkdsk reporting corruption, or messages such as the volume being in use by another process. The check examines file system structures, and sometimes the disk surface, for problems. The cause may be a sudden power loss, a crash during writes, a cable fault, or the drive itself wearing out. Microsoft’s reference states that chkdsk repairs logical errors only when you use /f, and that it needs to lock the drive to do so.
Symptom, likely cause and next step
| Symptom | Common cause | What to do |
|---|---|---|
| Check runs at every startup | The volume’s dirty flag keeps getting set, often by unclean shutdowns or an unrepaired fault | Run chkdsk /f from an administrator prompt and let it finish |
| “Cannot run because the volume is in use” | Open files or the system drive being locked | Answer Y to schedule it for the next restart |
| Chkdsk reports bad sectors | Physical media problems | Back up now; run /r once; consider replacing the drive |
| Finishes suspiciously quickly | Online scan only, or locked volume | Review the chkdsk log in Event Viewer; run an offline check |
| Errors return after repair | Failing drive, bad cable or power issue | Check drive health, swap the cable, and plan a replacement |
| Drive shows RAW or inaccessible | Severe file system damage | Stop writing to it and consider recovery help before repairing |
Step-by-step fix
- Back up first. If the drive holds anything you cannot replace, copy it elsewhere before repairing. Repairs can change data structures, and a failing drive can degrade further under heavy reads.
- Open an elevated prompt. Microsoft lists membership in the local Administrators group as the minimum requirement. Right-click Command Prompt and choose Run as administrator.
- Run a read-only check. Typing chkdsk with only the drive letter reports status without fixing anything. The documentation warns that running it without /f on an active partition may report spurious errors because it cannot lock the drive.
- Repair the file system. Run
chkdsk C: /f. If it cannot lock the drive, accept the offer to check on the next restart, which is automatic for the boot partition. - Look for bad sectors if needed. Run
chkdsk C: /r, which includes /f and also analyzes physical errors. On large hard drives this can take hours, since every sector is read. - Read the result. Microsoft documents exit codes: 0 means no errors, 1 means errors were found and fixed, 2 means cleanup was done or skipped, and 3 means the disk could not be checked or errors could not be fixed.
Choosing the right switch
| Switch | What the maker states | Use when |
|---|---|---|
| /f | Fixes errors on the disk; the disk must be locked | First repair attempt |
| /r | Locates bad sectors and recovers readable information; includes /f | You suspect physical problems |
| /scan | NTFS online scan of the volume | You want a check without taking the drive offline |
| /spotfix | NTFS spot fixing | Quick repair of items an online scan found |
| /x | Forces the volume to dismount first; includes /f | Open handles block the check |
SSD versus hard drive
Microsoft notes that /r reads every sector, which takes much longer on a spinning drive because the heads must move to each location, and finishes faster on an SSD. The documentation also cautions that repeated full-surface scans on an SSD could add write and erase cycles, though occasional checks are not a significant concern. On an SSD, the manufacturer’s own diagnostic tool and SMART health data are a sensible complement.
Reading the chkdsk log
After a startup scan, the details are stored in the Application log. In Event Viewer, filter the sources Chkdsk and Wininit to read the results, or use the PowerShell commands shown in Microsoft’s documentation. The log tells you whether errors were fixed, how many bad sectors were found, and whether the scan completed, which is helpful before you decide to replace a drive.
Common mistakes
- Interrupting the scan. Microsoft advises against it, although it should not leave the volume more corrupt than before.
- Skipping the backup. Do this first when the drive holds valuable files.
- Running /r repeatedly. Repeated passes will not cure failing hardware.
- Ignoring the cable and power. A loose SATA cable or unstable power can produce the same symptoms as a dying disk.
- Cancelling the scheduled check at every boot. The dirty flag stays set and the loop repeats.
When to stop and replace the drive
If errors return after a successful repair, if bad sector counts grow, if the drive clicks or disappears from the system, or if SMART status reports warnings, treat the drive as unreliable. Copy off what you can, then replace it. For a drive under warranty, contact the maker. If the data is critical and the drive is unreadable, a professional recovery service is safer than repeated repair attempts.
Checks that cost nothing before you replace hardware
- Reseat the data cable. Power down, unplug the PC, and reseat or swap the SATA cable. For NVMe drives, make sure the drive is seated in its slot.
- Look at drive health. The drive maker usually offers a free diagnostic tool, and SMART data can show reallocated or pending sectors.
- Review shutdown habits. Power cuts and forced shutdowns are a frequent cause of a dirty volume.
- Update storage drivers and firmware. Follow the maker’s instructions for any firmware update, and back up first.
- Run Windows system file checks. If errors affect system files, the built-in repair tools may help, though they address a different layer than chkdsk.
Never open a power supply while troubleshooting; unplug the PC before touching any internal cable. If a hardware fault is suspected, contact the drive maker or a technician.
If the PC will not start into Windows
When the system drive has errors severe enough to block startup, boot into the Windows recovery environment from installation media and open the command prompt there. Microsoft notes that chkdsk is also available from the recovery console, so the same switches apply. Identify the correct drive letter first, because letters in the recovery environment can differ from what you see in Windows.
Frequently Asked Questions
Is it safe to run chkdsk /f?
Generally yes, and Microsoft describes it as the way to fix logical errors. Back up important data first, because any repair carries some risk when a drive is already damaged.
What is the difference between chkdsk /f and /r?
The /f switch fixes file system errors. The /r switch includes /f and also locates bad sectors and recovers readable data, so it takes much longer.
Why does Windows run a disk check every time I start?
The volume is probably still marked dirty because a previous check was interrupted or errors were not repaired. Run chkdsk /f from an administrator prompt and let it complete.
Can chkdsk fix a failing hard drive?
No. It repairs file system problems and can mark bad areas, but it cannot restore failing hardware. Back up and replace the drive if errors keep coming back.
How long does chkdsk take?
It depends on drive size, speed and the switches used. A /r scan on a large hard drive can take hours, while an SSD completes faster.
Should I run chkdsk on an SSD?
Occasional use is fine, according to Microsoft, but avoid unnecessary repeated full scans with /r.
Related guides
More from Amazon
Programs that pair well with the guide above. Offers and eligibility are set by Amazon and may change.
Free shipping on eligible items, Prime Video and more. Eligible new members can start with a free trial.
Start a Prime free trialAd-free music streaming. Eligible new subscribers can start with a free trial.
Try Music Unlimited freeA Prime membership for ages 18-24 with a trial period. Eligibility is set by Amazon.
See Prime for Young AdultsAudiobooks and podcasts to listen to on the go. Eligible new members can start with a free trial.
Try Audible freeAs an Amazon Associate we earn from qualifying purchases.