Why Your Mac Says a USB Drive Cannot Be Ejected Because It Is in Use (And How to Fix It)

You finish copying your holiday photos or work documents onto a USB memory stick or external hard drive, click the little eject triangle in Finder, and immediately get hit with a stubborn pop-up: The disk wasn’t ejected because one or more programs may be using it. Because pulling the cable out while macOS is still holding onto a file can corrupt your data, it pays to free the drive properly rather than yanking the plug.

Almost every time, you do not have an app visibly editing anything on that drive—either a recently previewed document, Spotlight indexing, or a tiny Finder helper is quietly holding the door open in the background.

1. Close Hidden Open Documents, Previews, and Trash First

On a Mac, closing the red X button on a window leaves the app running in the background with a link to whatever file you opened from the USB drive—even if no window appears on your desktop.

  1. Look across your Dock for apps with a small black dot underneath their icon—especially Preview, Microsoft Word, Excel, QuickTime Player, or Photos.
  2. Click each app you used with that drive, then press Cmd + Q (or click the app’s name in the top menu bar and choose Quit).
  3. Empty your Mac’s Trash if you deleted any files while the USB stick was plugged in, as deleted external-drive files remain linked until Trash is cleared.
  4. Try clicking the Eject arrow next to the drive name in Finder again.

2. Quit Quick Look or Force-Relaunch Finder

Sometimes Finder itself gets stuck after you pressed the Spacebar to preview a PDF, video, or spreadsheet directly on the memory stick. Relaunching Finder clears the preview handle without closing any of your open browsers or work apps.

  1. Click the Apple menu in the top-left corner and select Force Quit… (or press Cmd + Option + Esc).
  2. Scroll down to Finder and click it.
  3. Click Relaunch in the bottom-right corner.
  4. Wait three seconds for Finder windows to reload, then eject the drive cleanly.

3. Log Out or Put Your Mac to Sleep When Something Still Won’t Let Go

If macOS’s Spotlight search engine is mid-way through scanning a freshly connected hard drive—or an unseen background helper refuses to unlock a folder—you still do not need to risk corrupting your files by unplugging early.

  • Quick Sleep Check: Put your Mac into Sleep for ten seconds and wake it up, or try ejecting again after two minutes once Spotlight finishes scanning the drive’s folder list.
  • Guaranteed Safe Trick (Log Out or Shut Down): Save your open documents, click the Apple menu > Log Out (or Shut Down). As your Mac closes every background service during shut-down, it automatically disconnects and powers down external drives cleanly so you can safely unplug the cable once the screen turns dark.

Avoid Clicking Force Eject Unless You Know Nothing Is Saving

macOS sometimes offers a Force Eject button if an app refuses to respond. Only click Force Eject as a last resort when you are certain you are not actively copying files or saving documents onto the stick—and if an external drive keeps causing permission quirks or mounting weirdly on your Mac, read our guide on why Mac Finder stops showing an external hard drive and how to fix it.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.