0XC0000176

Fix STATUS_UNABLE_TO_UNLOAD_MEDIA (0XC0000176) Fast

This error pops up when Windows can't eject a USB or external drive. Usually an app or driver keeps the drive locked. Here's how to force it out.

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.

  1. Close all open windows, especially file explorer, media players, and any app that might be reading the drive.
  2. Click Start > Power > Restart. Not Shut Down — Restart. On Windows 10/11 with Fast Startup enabled, a shutdown doesn't fully release handles.
  3. 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.

  1. Press Ctrl + F to open the Find Handle or DLL dialog.
  2. Type your drive letter (like E:) and hit Search.
  3. Process Explorer will show every process with an open handle to that drive. Common culprits: explorer.exe, searchindexer.exe, or some media player.
  4. Double-click the process to jump to it, then right-click it and select Kill Process.
  5. 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\USBSTOR

If 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 ForceDismount back to 0. 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.

  1. Open Command Prompt as Administrator.
  2. Type chkdsk E: /f (replace E: with your drive letter).
  3. Let it scan and fix errors. This can take a few minutes.
  4. 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.

Related Errors in Windows Errors
0x0000001A Memory Management BSOD on Windows 10/11 – Real Fixes 0X00002034 Fix ERROR_DS_ALIAS_DEREF_PROBLEM (0X00002034) 0XC026232C 0XC026232C: Monitor descriptor not in set fix 0X800F0240 Fix SPAPI_E_AUTHENTICODE_DISALLOWED (0X800F0240) Driver Install Error

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.