Storage · Removable drives
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.
What you need
- A copy of anything important on the drive. A drive that keeps asking for repairs is a drive to copy files off, not a drive to trust further first.
- Ten minutes with the drive plugged in. The check itself is quick on a healthy drive.
- An administrator account for the advanced route only. The simple fixes need nothing special.
Read the problem before you touch it
- Know what the prompt is really saying. Windows tracks whether a volume was shut down cleanly. When a drive is removed while writes were still pending, the file system keeps a dirty flag, and Windows offers to scan and fix the drive the next time it sees it. The prompt is the flag talking, not a fresh diagnosis each time.
- Work out which pattern you have. If the prompt appears only after the drive was used in another device — a car stereo, a TV, a camera, another computer — that device is likely leaving the file system dirty. If it appears after every use in this PC, the removal habit or the drive itself is the cause.
- Notice whether files are actually damaged. A prompt with perfectly readable files is usually just the flag. Files that vanish, folders that will not open, or copies that fail are real corruption, and the priority flips: copy off everything readable before running any repair.
The simple fixes, in order
- Accept the scan once, and let it finish. Click Scan and fix and wait for it to complete. If Windows reports it found no errors, or repaired what it found, eject the drive properly, plug it back in, and see whether the prompt is gone. One completed scan clears the flag in the ordinary case.
- Run the drive's own error check. If the prompt returns, open File Explorer, right-click the drive, and choose Properties > Tools > Check. This runs the same check deliberately rather than at plug-in time, and its result is easier to read.
- Eject properly, every time, for a week. Use the Safely Remove Hardware icon in the notification area and wait for the safe-to-remove message before unplugging. If the prompt stops appearing under that habit, the cause was removal timing — writes still in flight — and the fix is the habit, permanently.
- Set the drive to quick removal if you will not eject. In Device Manager, find the drive under Disk drives, open its Properties > Policies tab, and choose Quick removal. Windows then avoids holding writes back for the drive, which makes unplugging without ejecting far less likely to set the flag, at a small cost to copy speed.
The advanced route
- Check the drive from the command line and read the verdict. Open Windows Terminal as administrator and run
chkdsk X:with the drive's letter. With no switches this is a read-only check that reports whether the file system is clean and whether the dirty flag is set. Microsoft documents the tool in Chkdsk commands. - Repair it deliberately if the check finds errors. Run
chkdsk X: /fto fix file system errors. Let it finish without unplugging anything. Then run the plainchkdsk X:once more: it should report no problems and no dirty flag. - Ask the drive whether it is dirty, directly. Run
fsutil dirty query X:— Microsoft documents this query in Fsutil dirty. If it still reports the volume as dirty immediately after a successful repair and a proper eject, something is writing to the drive at removal — or the drive is failing to store the clean state, which is hardware behavior, not a settings problem.
End state
- The drive plugs in three times in a row with no scan prompt.
- A plain chkdsk run reports no problems found.
- Files copy on and off the drive without errors.
When it goes wrong
- The repair finds errors every single time. A file system that keeps corrupting on a healthy routine is a drive wearing out. Copy everything off, replace the drive, and do not keep repairing it into service.
- The prompt only follows one other device. That device is not closing the drive cleanly. Format choice matters there: exFAT is handled more consistently across TVs, stereos, and cameras than NTFS, so reformatting a backed-up drive as exFAT often ends the cycle. Microsoft's Disk Management overview covers the format options: Overview of Disk Management.
- Chkdsk says the drive is RAW. Windows can no longer read the file system at all. Stop running repairs — each attempt can make recovery harder. Copy what other tools can still read, or treat the data as gone and reformat.
- Eject always says the drive is in use. Close File Explorer windows and any app that browsed the drive, wait a few seconds, and try again. Indexing and preview handlers are the usual holders.
Related fixes
-
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.
-
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 loses its firmware settings every time it is unplugged
Firmware settings that vanish whenever the cord comes out point to one small coin cell on the motherboard that keeps them alive while the PC is unplugged. Note every setting before you swap it, fit the new battery, and set the clock and boot order once — they should hold from then on.
-
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.
Sources
- Microsoft Learn, Chkdsk commands — checking and repairing a volume, and what its reports mean.
- Microsoft Learn, Fsutil dirty — querying whether a volume is marked dirty.
- Microsoft Learn, Overview of Disk Management — drive and file system management, including format choices for removable drives.