Fix “Drive Is in Use” Error in Windows 11
When formatting an internal or external drive in Windows 11, the process may fail with a message stating that the drive is currently in use by another program or process. This error typically occurs when an open file, background service, File Explorer window, or system process holds an active lock on the volume. This guide provides direct, step-by-step methods to identify the conflicting process, release the drive lock, and successfully format your storage device using built-in Windows 11 tools.
1. Close Open Applications and Windows Explorer
Background applications or active File Explorer windows often prevent Windows from locking the partition for formatting.
- Close any open files, media players, or software accessing files on the target drive.
- Close all File Explorer windows.
- Open Task Manager (
Ctrl+Shift+Esc). - Locate Windows Explorer in the Processes tab, right-click it, and select Restart.
- Attempt the format again.
2. Identify the Locking Process Using Resource Monitor
Resource Monitor allows you to pinpoint and terminate the exact process accessing your drive.
- Press
Win+R, typeresmon, and pressEnter. - Navigate to the CPU tab.
- Expand the Associated Handles section.
- In the Search Handles box, type the drive letter followed
by a colon (for example,
E:). - Review the list of processes holding a handle on that drive.
- Right-click the offending process and select End Process.
- Try formatting the drive.
3. Force Format Using Diskpart
Diskpart runs with elevated administrative privileges and can force a dismount of the drive.
- Press
Win+Xand select Terminal (Admin) or Command Prompt (Admin). - Type
diskpartand pressEnter. - Type
list volumeand identify your drive number or letter. - Type
select volume X(replaceXwith your volume number or letter). - Type
format fs=ntfs quick(orfs=exfat/fs=fat32depending on your needs) and pressEnter. - If prompted that the volume is in use, type
Yto force a dismount. - Type
exitonce the format reaches 100%.
4. Clean and Format with Disk Management
Disk Management offers a visual interface to delete existing volumes and re-create them cleanly.
- Right-click the Start button and select Disk Management.
- Locate the partition giving the error.
- Right-click the partition and choose Delete Volume (Note: This erases all data on the volume).
- Once the space is marked as Unallocated, right-click it and select New Simple Volume.
- Follow the on-screen wizard to assign a drive letter and format the drive.
5. Boot into Safe Mode to Format
If system services or antivirus programs persistently lock the drive, formatting in Safe Mode eliminates third-party conflicts.
- Open Settings (
Win+I) and go to System > Recovery. - Next to Advanced startup, click Restart now.
- After rebooting, navigate to Troubleshoot > Advanced options > Startup Settings > Restart.
- Press
4orF4to enable Safe Mode. - Once logged in, open File Explorer or Disk Management and format the drive normally.
- Restart the computer to return to standard Windows 11 mode.