sodcalculator

10 Tech How-To

Fix Can’t Eject External Hard Drive on Windows 10

Guide 10-44581 · Updated · Step by step

If Windows 10 says “This device is currently in use” or the Safely Remove Hardware icon does nothing, the fix is to close any program holding the drive, then use Disk Management or a forced eject command. Here is the full troubleshooting path, from the simple restart to the command-line method that works when everything else fails.

Why Windows 10 Refuses to Eject

Windows blocks ejection because a process has an open handle to the drive. This is a safety feature to prevent data corruption. Common culprits include:

  • File Explorer windows showing the drive’s contents
  • Antivirus or backup software scanning the drive in the background
  • Media players or photo apps that indexed the drive
  • Command prompts or PowerShell sessions with the drive as the current directory
  • Windows Search indexing the drive

The error message “This device is currently in use” means the system will not release the drive until the holding process closes. The trick is finding which process that is.

First Try: The Obvious Fixes

Start with the least disruptive steps. They resolve most cases without any tools.

  1. Close all File Explorer windows. Press Win + E to open one, then close every window that shows any folder on the external drive.
  2. Close any open documents, videos, or images that were opened from the drive.
  3. Right-click the drive in File Explorer and select Eject. If that fails, try the Safely Remove Hardware icon in the system tray (bottom-right, near the clock).
  4. If the icon is hidden, click the up arrow to show hidden icons, then right-click the USB icon and choose the drive.
  5. Restart Windows. A full restart releases all handles. This is the most reliable fix if you can afford the downtime.

If none of these work, move to the more targeted methods below.

Use Disk Management to Eject

Disk Management can sometimes eject a drive even when the tray icon fails. It is a built-in tool that manages all storage devices.

  1. Press Win + X and select Disk Management.
  2. Find your external drive in the lower list. It is usually labeled Removable and has a drive letter like E: or F:.
  3. Right-click the drive’s partition (the blue bar) and select Eject.
  4. Wait for the status to change to Safe to Remove Hardware, then unplug the drive.

If the Eject option is grayed out, the drive is still in use. Disk Management will not force it. You need the command-line method.

Force Eject with a Command

Windows has a hidden tool called mountvol that can dismount a volume without a GUI. This is the most reliable built-in method when everything else fails.

  1. Open Command Prompt as administrator. Press Win + X and select Command Prompt (Admin) or Windows PowerShell (Admin).
  2. Type mountvol and press Enter. You will see a list of volumes. Find the one with your drive letter, for example \?\\Volume{1234abcd-...}\.
  3. Type mountvol [drive letter]: /p (for example, mountvol E: /p) and press Enter. This dismounts the volume and removes the drive letter.
  4. Wait a few seconds, then unplug the drive.
  5. To reassign the drive letter later, plug the drive back in, open Disk Management, right-click the partition, and choose Change Drive Letter and Paths.

This command forces a dismount even if a process holds a handle. It is safe for external drives, but do not use it on your system drive (C:).

Find the Process Holding the Drive

If you want to know exactly which program is blocking the eject, you can use the built-in Resource Monitor.

  1. Press Win + R, type resmon, and press Enter.
  2. Go to the CPU tab.
  3. In the Associated Handles section at the bottom, type the drive letter (for example, E:) in the search box.
  4. You will see a list of processes with open handles to that drive. Note the process name.
  5. Close that program, or if it is a background service, end it via Task Manager (right-click the process and select End Task).

Common offenders are explorer.exe (File Explorer), SearchIndexer.exe (Windows Search), and OneDrive.exe (if the drive is a synced folder). Ending these is safe; they restart automatically.

Disable Fast Startup to Prevent Future Issues

Windows 10’s Fast Startup feature can leave drives in a state that makes ejection fail. It is a hybrid shutdown that saves system files to disk for faster booting. Disabling it often solves recurring eject problems.

  1. Open Control Panel and go to Power Options.
  2. Click Choose what the power buttons do on the left.
  3. Click Change settings that are currently unavailable.
  4. Uncheck Turn on fast startup (recommended).
  5. Click Save changes and restart your PC.

This change only affects shutdown and startup speed. It does not slow down normal use.

Safe Removal vs. Just Unplugging

Many users wonder if they can skip ejection entirely. On modern Windows 10 systems, the default policy for USB drives is Quick Removal, which disables write caching. This means you can unplug the drive without ejecting, and data loss is unlikely. However, if you changed the policy to Better Performance (which enables write caching), you must eject to flush cached data. To check your policy:

  1. Right-click the Start button and select Device Manager.
  2. Expand Disk drives, right-click your external drive, and select Properties.
  3. Go to the Policies tab. You will see either Quick removal or Better performance.

If it is set to Better Performance, switch to Quick Removal to avoid the ejection requirement. The trade-off is slightly slower write speeds, but for most users the difference is negligible.

Frequently Asked Questions

Why does my external hard drive eject but then immediately reconnect?

This usually happens when the USB port loses power momentarily, or when the drive’s power management settings allow Windows to turn it off. Go to Device Manager, expand Universal Serial Bus controllers, right-click each USB Root Hub, select Properties, go to Power Management, and uncheck Allow the computer to turn off this device to save power. Also try a different USB port, preferably a rear port on a desktop.

Can I force eject a drive that is stuck in “Safely Remove Hardware”?

Yes, the mountvol /p command works even when the tray icon is stuck. If that fails, you can also try diskpart — open Command Prompt as admin, type diskpart, then list volume, find the volume number for your drive, type select volume X (replace X with the number), and then remove all. This removes the drive letter and dismounts the volume.

Is it safe to just unplug the drive if Windows says “device in use”?

If you have Quick Removal enabled (the default), it is generally safe. The warning is a precaution. However, if you have write caching enabled, unplugging without ejecting can corrupt data. Always check the Policies tab in Device Manager to know your setting.

Why does my external drive not show up in the system tray at all?

The Safely Remove Hardware icon only appears for USB devices that report themselves as removable. Some external drives, especially those with SATA-to-USB adapters, do not show the icon. In that case, use Disk Management or the mountvol command to eject.

What if the drive is stuck in “This device is currently in use” even after restart?

If a restart does not fix it, the drive may have a hardware issue or a corrupted file system. Try connecting the drive to another computer. If it ejects fine there, the problem is on your PC. If it fails on all computers, run chkdsk E: /f (replace E: with your drive letter) to check for errors, but back up important data first.

Can I use third-party software to force eject?

Yes, there are free tools like USB Safely Remove or Zentimo that offer more control. However, the built-in methods above are sufficient for most users. Third-party tools are only necessary if you frequently encounter stubborn processes and want a one-click solution.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →