Skip to content

How-ToOS

Can't Eject a USB Drive in Windows 11? How to Fix It

If Windows 11 says your USB drive is still in use or the eject icon is missing, don't just pull it out. Here's why safe removal matters, how to close what's using the drive, bring back the eject icon, find the program holding it with Sysinternals tools and remove it safely.

By , Systems & Technical Editor

3 min read

Can't Eject a USB Drive in Windows 11? How to Fix It

Windows sometimes refuses to eject a USB flash drive or external hard drive, saying the device is still in use, or the eject icon simply isn't there. Pulling the drive out anyway can cost you data, so it's worth finding out what's holding on to it. The settings, policies and tools below come from Microsoft's documentation, credited at the end, and the order of the steps is our advice.

Why ejecting matters

Microsoft's advice is: "To avoid losing data, always safely remove hardware devices like USB flash drives or external hard drives before disconnecting them." How much risk you take by skipping this depends on the drive's removal policy. Microsoft explains that since Windows 10 version 1809 the default policy is "Quick removal", which keeps the device "ready to remove at any time" because Windows doesn't cache writes to it. If a drive is set to "Better performance", Windows can cache writes, and Microsoft warns that if you disconnect it without safe removal, "you risk losing data". Our guide to changing the USB drive removal policy explains how to check and switch the setting.

Step 1: Close everything that might be using the drive

The usual reason Windows says a drive is still in use is an open file. Save and close any documents, photos or videos opened from the drive, close File Explorer windows showing it, and wait for any copy or move to finish. Then try ejecting again from the Safely Remove Hardware and Eject Media icon in the system tray, or from File Explorer by right-clicking the drive and selecting Eject.

Background apps can also keep a drive busy, including antivirus scans, backup and sync tools, photo importers and media players that index the drive. Pause or close them and try again.

Step 2: Find the eject icon if it's missing

Microsoft's steps are to right-click the Safely Remove Hardware and Eject Media icon in the system tray, selecting Show hidden icons first if it isn't visible, and then choose Eject for your device. If the icon still isn't there, right-click the taskbar, select Taskbar settings, expand Other system tray icons and make sure Safely Remove Hardware and Eject Media is turned on.

Microsoft notes the icon might not appear if a removable device isn't connected or Windows doesn't recognise the device. If the drive doesn't show up at all, see our guide to fixing USB devices not recognised.

You can also remove the device in Settings: select Start > Settings > Bluetooth & devices > Devices, find the drive under Other devices, expand it and select Remove next to Remove this device.

Step 3: Find which program has the drive open

If you've closed everything you can think of and Windows still says the drive is in use, Microsoft's free Sysinternals tools can show you the culprit.

Process Explorer is a free download from the Microsoft Sysinternals page credited below. Microsoft says it "shows you information about which handles and DLLs processes have opened or loaded". Run it, open Find > Find Handle or DLL, search for your drive letter (for example E:) and it will list the processes holding files on that drive. Close that program normally, then eject.

If you prefer the command line, Sysinternals Handle does the same job. Microsoft describes it as "a utility that displays information about open handles for any process in the system", and says "You must have administrative privilege to run Handle". In an administrator Command Prompt, run handle E: (using your drive letter) to see which process names have files open on it. Handle can also force handles closed, but Microsoft warns that "Closing handles can cause application or system instability", so we'd close the program itself instead.

Step 4: Sign out or shut down if nothing else works

If you can't identify or close the program, sign out of Windows or shut the PC down fully, which closes every app holding the drive, and remove the drive once the PC is off. That is safer than pulling it out while Windows says it's in use, especially if the drive uses the Better performance policy.

The bottom line

If Windows 11 won't eject a USB drive, close every file, File Explorer window, copy job and background app using it, then eject from the Safely Remove Hardware and Eject Media icon, File Explorer or Settings > Bluetooth & devices > Devices. Turn the tray icon back on in Taskbar settings if it's missing. If the drive is still in use, Microsoft's Sysinternals Process Explorer or Handle will show which program has it open. As a last resort, shut down before unplugging, and check the drive's removal policy so you know how much risk an unplanned removal carries.

Sources

  1. 01Safely remove hardware in Windows (Microsoft Support)
  2. 02Manage default media removal policy (Microsoft Learn)

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best Free Android Screen Mirroring Apps for PC (2026)

Best Picks

Best Free Android Screen Mirroring Apps for PC (2026)

The best free apps to mirror and control your Android phone on a PC in 2026: scrcpy for almost any phone, Phone Link on supported models, Escrcpy and QtScrcpy for a graphical interface, and Vysor for browser and iPhone support.

Hannah Vance6 min

scrcpy vs Phone Link: Best Way to Use Android Apps on a PC?

Versus

scrcpy vs Phone Link: Best Way to Use Android Apps on a PC?

scrcpy and Microsoft Phone Link both put your Android phone's apps on a Windows PC for free. We compare phone support, setup, how each shows your apps, extra features and privacy to help you pick the right one.

Callum Reid5 min

How to Mirror and Control Your Android Phone on a PC with scrcpy

How-To

How to Mirror and Control Your Android Phone on a PC with scrcpy

scrcpy is a free, open-source app that mirrors your Android phone's screen and sound on a Windows PC and lets you control it with your mouse and keyboard. We show how to enable USB debugging, install it, connect over USB or Wi-Fi, use the best shortcuts and options, and fix common errors.

Marcus Thorne7 min