TechBuzzPro

Can't Eject External Hard Drive? Quick Fix Guide

· 5 min read · Windows & PC

In this article
  1. What You’ll Need
  2. Step‑by‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can’t eject an external hard drive because the system thinks it’s still in use; close any open files and safely remove it via the taskbar or Finder.

What You’ll Need

  • A computer running Windows 10/11 or macOS 10.14 or later
  • The external hard drive you want to disconnect
  • Administrative rights on the computer (optional but helpful)
  • A basic understanding of where open files and background processes appear

Step‑by‑Step

  1. Identify which operating system you are using. The removal method differs between Windows and macOS, so choose the appropriate set of instructions below.
  2. Close any visible programs that might be using the drive. This includes file‑explorer windows, media players, backup software, photo editors, and virtual‑machine programs. Even a folder opened in Explorer or Finder can lock the drive.
  3. Check for hidden file usage. On Windows, open Task Manager (Ctrl + Shift + Esc), go to the Processes tab, and look for any program that lists the drive letter in its description. On macOS, open Activity Monitor (Applications > Utilities) and look for processes that might be reading or writing to the external volume.
  4. Use the built‑in safe‑eject feature.
    • Windows: Click the upward‑pointing arrow on the right side of the taskbar to show hidden icons, then click the Safely Remove Hardware and Eject Media icon. In the list that appears, select the external drive and wait for the confirmation message that it is safe to remove.
    • macOS: Locate the drive’s icon on the desktop or in the Finder sidebar. Either drag the icon to the Trash (which turns into an eject symbol) or right‑click the icon and choose Eject "Drive Name". You can also click the eject button next to the drive in Finder’s sidebar.
  5. If the drive refuses to eject, use the operating system’s forced‑eject tools.
    • Windows: Open Device Manager (right‑click the Start button > Device Manager). Expand the Disk drives section, right‑click the external drive, and choose Disable device. After the device is disabled, you can physically unplug it. Re‑enable it later if you need to use it again.
    • macOS: Open Disk Utility (Applications > Utilities). Select the external drive in the left sidebar, then click the Eject button in the toolbar. If Disk Utility reports that the disk is in use, click Force Eject after confirming that no data loss will occur.
  6. Verify that the drive is no longer listed. On Windows, open File Explorer and confirm the drive letter is gone. On macOS, ensure the drive no longer appears on the desktop or in Finder.
  7. Physically disconnect the drive. Gently pull the USB‑C, USB‑A, or Thunderbolt cable from the computer. Avoid yanking the cable; a slow pull reduces wear on the connector.

Common Mistakes

  • Attempting to eject while a file is still being copied or backed up. The system will block removal to prevent corruption.
  • Closing only the visible window but leaving the underlying process running (e.g., a media player that continues to index files).
  • Using the power button on the external drive’s enclosure to turn it off before ejecting; this can interrupt write operations.
  • Assuming the “Eject” icon will work on a network‑mounted drive; network shares require a different disconnect method.

Tips

  • Enable the “Show hidden icons” setting on Windows so the safe‑remove icon is always accessible.
  • On macOS, hold the Option key while clicking the Finder Eject button to reveal the Force Eject option.
  • Keep your operating system updated; driver bugs that lock external drives are often fixed in patches.
  • If you frequently move the drive between computers, consider formatting it with exFAT for cross‑platform compatibility.
  • Use a dedicated power‑off switch on the drive enclosure only after a successful safe‑eject.

Troubleshooting

If the drive still won’t eject after following the steps above, work through the following checklist.

  1. Restart the computer. A reboot clears lingering file handles and often resolves the lock without further action.
  2. Run a disk check. On Windows, open a Command Prompt as administrator and run chkdsk X: /f (replace X with the drive letter). On macOS, use Disk Utility’s First Aid on the external volume.
  3. Identify the locking process.
    • Windows: Open Resource Monitor (search in the Start menu). Go to the CPU tab, type the drive letter in the search box, and note the process using the drive. End the task if it is safe to do so.
    • macOS: Open Terminal and run sudo lsof | grep /Volumes/YourDriveName. This lists the files and processes that are still open. Quit the offending app or kill the process with kill -9 PID (replace PID with the number shown).
  4. Disable write caching. In Windows, right‑click the drive in Device Manager, choose Properties, go to the Policies tab, and select Quick removal (default). This reduces the chance of a cached write preventing ejection.
  5. Use third‑party utilities as a last resort. Tools such as Unlocker (Windows) or CleanMyMac (macOS) can force‑close handles, but only use them if you understand the risk of data loss.
  6. Check the cable and port. A faulty USB cable can cause intermittent communication, making the OS think the drive is still active. Swap cables or try a different USB port.
  7. Backup important data. If the drive consistently refuses to eject, copy critical files to another location before attempting more aggressive fixes.

Frequently Asked Questions

Why does Windows say “Device is in use” even after I close all programs?

Background services such as Windows Search indexing, antivirus scans, or the System Volume Information folder can keep a handle on the drive. Stopping the indexing service or pausing the antivirus scan usually releases the lock.

Can I unplug the drive without ejecting if I’m in a hurry?

Physically unplugging a drive without ejecting can corrupt files that are still being written. If you must disconnect quickly, power the drive off (if it has a switch) and then unplug, but be aware of the risk.

My Mac shows the drive but the eject button is grayed out. What now?

The drive is likely being accessed by a background process. Use Activity Monitor or Terminal with lsof to find the process, quit it, then try ejecting again.

Does disabling write caching affect performance?

Yes, disabling write caching can make large file transfers slower because data is written directly to the disk instead of being buffered. The trade‑off is increased safety when removing the drive.

Will formatting the drive to NTFS prevent ejection problems on Windows?

NTFS is fully supported on Windows, but ejection issues are usually caused by open handles, not the file system. Formatting alone won’t eliminate the problem.

Is there a way to automate safe removal for multiple drives?

Windows PowerShell scripts can call the Remove-Item cmdlet on the drive’s volume, but they still rely on the OS confirming that no handles are open. Automation is only safe when you are certain the drives are idle.