The 30-Second Fix: Reboot and Retry
Yeah, I know. The classic 'turn it off and on again.' But for this error, it works more than half the time.
Here's the deal: some background program (like a file explorer window, a backup tool, or even a media player) has a handle on your drive. Rebooting kills every handle cleanly.
- Close all open windows, especially file explorer, media players, and any app that might be reading the drive.
- Click Start > Power > Restart. Not Shut Down — Restart. On Windows 10/11 with Fast Startup enabled, a shutdown doesn't fully release handles.
- After reboot, try ejecting the drive again. Right-click the drive in File Explorer and pick Eject. Or use the 'Safely Remove Hardware' icon in the system tray.
Still stuck? Move to the 5-minute fix.
The 5-Minute Fix: Find and Kill the Locking Process
If rebooting didn't help, something is stubbornly holding on. Let's find out what.
Step 1: Open Computer Management
Hit Win + X and select Computer Management. Go to Storage > Disk Management. Find your removable drive — it should have a drive letter like E: or F:.
Step 2: Use the Built-In Eject Tool
Right-click the disk's left-side area (not the volume) and select Eject. This sometimes works even when the normal eject fails.
Step 3: Force Close Handles
If that fails, you need to see what's locking it. Download Process Explorer from Microsoft (it's free). Run it as Administrator.
- Press Ctrl + F to open the Find Handle or DLL dialog.
- Type your drive letter (like
E:) and hit Search. - Process Explorer will show every process with an open handle to that drive. Common culprits:
explorer.exe,searchindexer.exe, or some media player. - Double-click the process to jump to it, then right-click it and select Kill Process.
- Now try ejecting again.
If you can't kill the process (like System), reboot and try again — or move to the advanced fix.
The 15+ Minute Fix: Registry Hack to Force Eject
This is the nuclear option. It tells Windows to always allow a forced dismount, even if something is holding on. Backup your registry first — you've been warned.
Step 1: Open Regedit
Press Win + R, type regedit, and hit Enter. Click Yes on the UAC prompt.
Step 2: Navigate to the Right Key
Go to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTORIf USBSTOR doesn't exist, create it. Right-click Services > New > Key, name it USBSTOR.
Step 3: Create a DWORD
In the right pane, right-click > New > DWORD (32-bit). Name it ForceDismount.
Set its value to 1. Close regedit and reboot.
Now Windows will force-eject any drive, even if an app has an open handle. Only use this when you're sure nothing important is writing to the drive. You can corrupt data if something's mid-write.
Pro tip: After you've ejected the drive successfully, set
ForceDismountback to0. You don't want this always on — it can cause issues if a backup or sync tool is running.
Bonus: Check the Drive for Errors
Sometimes the error isn't about a lock — it's about a corrupted file system. Run chkdsk on the drive.
- Open Command Prompt as Administrator.
- Type
chkdsk E: /f(replace E: with your drive letter). - Let it scan and fix errors. This can take a few minutes.
- Once done, try ejecting again.
If chkdsk finds errors and you still can't eject, the drive might be physically failing. Copy your data off ASAP.