Storage · Windows 11
Fix a PC that runs a disk check on every startup
A disk check that runs once is Windows doing its job; one that runs at every startup means the drive is still flagged dirty or the check never completes. Let it finish once, query the dirty flag yourself, and treat a flag that keeps coming back as a drive health warning, not a nuisance to silence.
What you need
- A backup of anything on the drive you cannot lose. A drive that keeps flagging itself can be failing — copy the important files before any repair scan.
- Admin access. The dirty-flag query and the repair scan both need an administrator prompt.
- Time to let one full check finish. Skipping the check with a key press is exactly what keeps some of these loops alive.
Read the problem before you touch it
- Understand the flag behind the check. Windows marks a volume dirty when a shutdown or crash may have left its file system inconsistent. At the next boot it schedules a check, and the check is supposed to clear the flag. A check at every boot means the flag is set again, or never cleared.
- Note whether the check completes or gets skipped. If you or someone else presses a key to skip it most mornings, the flag stays set by design and the loop is explained. If it runs to 100 percent and still returns tomorrow, something is re-dirtying the drive or the drive cannot finish repairing itself.
- Watch for company it keeps. Slow boots, files that vanish, or clicking from a hard drive alongside the repeat checks move this from a flag problem toward a failing drive. Back up first and read the advanced steps as a health verdict, not just a fix.
The simple fixes, in order
- Let one check run completely, untouched. Restart and do not press any key when the check is offered. Let it reach 100 percent and boot into Windows on its own. Then restart once more and see whether it asks again — many loops end here.
- Shut down properly and avoid forced power-offs. Use the Start menu to shut down, and stop holding the power button or switching off at the wall to end the day. Each hard cut can set the dirty flag again and restart the cycle.
- Run the built-in drive error check. Open File Explorer, right-click the drive, and choose Properties > Tools > Check. This runs the same file system check from inside Windows and reports whether it found problems, without the boot-time screen.
- Check the drive's reported health. Go to Settings > System > Storage > Advanced storage settings > Disks & volumes, open the drive's properties, and read its health estimate. A warning there outranks every other step in this guide.
The advanced route
- Query the dirty flag directly. Open Windows Terminal as administrator and run
fsutil dirty query C:, replacing C: with the checked drive if it differs. Microsoft documents the query in fsutil dirty. "Volume is dirty" confirms the flag; "not dirty" with checks still running points at a scheduled task rather than the flag. - Run a full repair scan on the system drive. Run
chkdsk C: /f. Because the system drive is in use, Windows will offer to schedule the scan at the next restart — accept it, restart, and let it finish. Microsoft lists what each switch does in chkdsk. Query the dirty flag again afterward. - Repair system files if the flag will not clear on a healthy drive. A damaged file system driver can re-dirty a volume at every shutdown. Run
DISM /Online /Cleanup-Image /RestoreHealth, thensfc /scannow, as Microsoft documents in Using System File Checker in Windows, then repeat the dirty query after a normal shutdown and restart.
End state
- Two restarts in a row boot straight to sign-in with no disk check offered.
fsutil dirty queryreports the volume is not dirty after a normal shutdown.- The drive's health estimate in Storage settings shows no warning.
When it goes wrong
- The flag returns after every repair scan. Stop trying to clear it. A volume that re-dirties itself after a completed repair is most often a drive failing underneath the file system — back up everything and replace the drive.
- The check freezes at one percentage for hours. Leave it through one long stretch first; a large, damaged drive is slow. If it is still frozen after several hours, power off, and treat the drive as suspect — recover your files before running more scans.
- Only a non-system drive is checked every boot. Run the same dirty query and repair against that drive's letter. The scan can usually run inside Windows without a restart, and a removable drive should be tested in another port or PC.
Related fixes
-
Fix a drive that Windows asks to scan and fix every time you plug it in
The scan-and-fix prompt appears when a drive's file system was left in a dirty state — usually removed without ejecting, or unplugged mid-write. Let Windows check it once, properly, and change the removal habit that keeps setting the flag; if the prompt survives a clean check, the drive itself needs attention.
-
Fix a BitLocker recovery key prompt that appears on every boot
A BitLocker recovery key prompt on every boot means Windows keeps measuring a startup that does not match what BitLocker sealed. Suspend and resume protection once to reseal it — after you have saved the recovery key somewhere safe.
-
Fix a drive that shows as RAW in Disk Management and asks to be formatted
RAW means Windows can no longer read the drive's file system — it does not mean your files are gone, and formatting is the one step that can finish them off. Leave the drive's contents alone, check it read-only first, and copy your data somewhere safe before any repair touches it.
-
Fix a PC that freezes for a few seconds every time a drive wakes
A freeze of a few seconds that always ends on its own — often with a faint click or spin-up sound — is a sleeping drive waking up while Windows waits for it. Raise the drive sleep timeout first so the drive stops dropping out mid-session, and treat a drive that takes longer and longer to wake as a health warning.
Sources
- Microsoft Learn, fsutil dirty — querying whether a volume is flagged dirty.
- Microsoft Learn, chkdsk — what the check disk switches do and when a restart is required.
- Microsoft Support, Using System File Checker in Windows — running SFC and DISM to repair missing or corrupted system files.