Disk Check Could Not Be Performed: Fixes
In this article
The "disk check could not be performed" error appears when Windows cannot run chkdsk on a drive, usually because the disk is in use, locked, or has a file system problem. The fix is to schedule the check for the next restart, close all programs using the drive, or run chkdsk from the Recovery Environment. This article explains why the error occurs and walks through every reliable way to get the check running.
What the Error Means
When you right-click a drive in File Explorer, select Properties → Tools → Check, and see "The disk check could not be performed because the disk check utility needs exclusive access to some Windows files on the disk," it means chkdsk cannot lock the volume. Windows needs to unmount the drive to scan it, but if any process is using files on it—including Windows itself—the lock fails. The same message appears when you try to run chkdsk from a command prompt on the system drive (usually C:) without the proper flags.
The error is not a sign that your drive is failing. It is a protection mechanism. The check would be unsafe to run while files are open, so Windows refuses rather than risk corruption. The solution is to either schedule the check for boot time (when no other programs are running) or run it from an environment that does not use the drive.
Why Windows Won't Lock the Drive
Chkdsk works in two phases. First, it requests exclusive access to the volume. If the request succeeds, it scans the file system and optionally checks each sector. If the request fails, you get the error. The system drive is always in use because Windows itself, the page file, and system restore points are on it. That is why the error is most common on C:.
Other drives can also be locked if a program is holding a file open. Examples include:
- A media player playing a video from the drive
- A backup program writing to the drive
- An antivirus scan in progress
- A file explorer window open on that drive
- A virtual machine using a disk image stored there
For external drives, the lock can also come from a USB hub or a driver that does not release the volume quickly. In all cases, the solution is the same: make the drive available for exclusive access.
How to Schedule the Check for Next Restart
The most straightforward fix is to let Windows run the check before the operating system loads. At that point, no user programs are running, and the volume is not in use. To do this:
- Open an elevated Command Prompt (search for "cmd", right-click, and select "Run as administrator").
- Type
chkdsk C: /fand press Enter. Replace C: with the letter of your drive. - When prompted "The type of the file system is NTFS. Cannot lock current drive. Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)", type Y and press Enter.
- Restart your computer. The check will run automatically before Windows starts.
If you want to also scan for bad sectors, add /r to the command: chkdsk C: /f /r. The /r flag includes the /f functionality and takes longer, but it is more thorough. You can also add /x to force the volume to dismount, but that only works if the volume is not the system drive.
Running Chkdsk from the Recovery Environment
If scheduling does not work—for example, if the drive is so corrupted that Windows cannot even schedule the check—you can run chkdsk from the Windows Recovery Environment (WinRE). This environment runs from a separate partition and does not use the drive you are checking.
- Open Settings → System → Recovery → Advanced startup, and click Restart now. Alternatively, restart your PC and press the appropriate key (often F11 or Esc) to enter boot options.
- Choose Troubleshoot → Advanced options → Command Prompt.
- Type
chkdsk C: /f /rand press Enter. If your drive letter is different in WinRE, rundiskpart, thenlist volumeto see the correct letter. - Wait for the scan to finish, then type
exitand restart.
This method works even if the drive is severely corrupted, because WinRE does not load the full Windows installation. It is also the only way to run chkdsk on a drive that cannot be mounted normally.
What to Do if the Check Still Won't Run
If you schedule the check and restart, but the check does not appear, or it runs and then hangs, try these steps:
- Disable automatic repair: If Windows tries to run Startup Repair instead of chkdsk, you may need to disable it first. In an elevated Command Prompt, type
bcdedit /set recoveryenabled Noand restart. - Run chkdsk on an external drive: Connect the drive to a different USB port or another computer. Sometimes the USB controller is the problem.
- Use the /offlinescanandfix flag: For NTFS drives,
chkdsk /offlinescanandfixcan run without locking the volume, but it only works on drives that support it (Windows 10 and later). - Check for file system errors with PowerShell: Run
Repair-Volume -DriveLetter C -Scanto see if the file system is healthy without a full chkdsk.
If chkdsk reports errors but cannot fix them, the drive may have physical damage. Back up your data immediately and consider replacing the drive. Chkdsk is not a substitute for a backup.
Common Misconceptions
Many users believe that the error means their drive is failing. That is rarely the case. The error is about access, not health. A drive that is failing will typically show other signs: strange noises, slow performance, or errors in the Event Viewer under "Disk". If you have none of those, the error is almost certainly just a locked volume.
Another misconception is that you must run chkdsk immediately. In most cases, scheduling it for the next restart is perfectly safe. The only time you should prioritize it is if you see "The file system is corrupt" or if Windows is already behaving erratically. In those cases, back up what you can, then run the check.
Finally, some users think that chkdsk /r will fix bad sectors. It does not repair physical damage; it marks bad sectors so the drive does not use them again. If the drive has many bad sectors, it is failing, and chkdsk will not save it.
Frequently Asked Questions
Why does chkdsk say "cannot lock current drive"?
Because the drive is in use. Windows cannot unmount a volume that has open files. The error is a safety measure to prevent data corruption. Scheduling the check for restart or running it from WinRE avoids the lock.
Can I run chkdsk on an external drive without restarting?
Yes, if no program is using the drive. Close all windows and programs that might access it, then run chkdsk E: /f from an elevated Command Prompt. If it still fails, close all programs and try again, or use the /offlinescanandfix flag.
How long does chkdsk take?
It depends on the drive size and speed. A quick file system check on a healthy 1TB drive can take 10–20 minutes. A full scan with /r can take several hours. If it seems stuck, wait at least an hour before assuming it is frozen.
What does chkdsk /f /r do?
/f fixes file system errors, and /r locates bad sectors and recovers readable information. /r implies /f, so you do not need to type both, but it is common to see them together. Use /r if you suspect physical damage.
Will chkdsk delete my files?
No. Chkdsk repairs the file system structure, not your files. In rare cases, if a file is severely corrupted, it may be moved to a folder called "found.000" or similar, but it is not deleted. Always back up important data before running chkdsk, just in case.
Can I cancel chkdsk once it starts?
You can press Ctrl+C to cancel, but it is not recommended. Cancelling mid-scan can leave the file system in an inconsistent state. If you must cancel, do it during the first phase (file system check), not during the sector scan.