Skip to content
PCFixWorkbench

Storage · Removable drives

Fix a drive that Windows asks to scan and fix every time you plug it in

Written November 29, 2026

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

Read the problem before you touch it

  1. 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.
  2. 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.
  3. 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

  1. 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.
  2. 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.
  3. 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.
  4. 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

  1. 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.
  2. Repair it deliberately if the check finds errors. Run chkdsk X: /f to fix file system errors. Let it finish without unplugging anything. Then run the plain chkdsk X: once more: it should report no problems and no dirty flag.
  3. 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

When it goes wrong

Related fixes

Sources