How to Safely Eject a USB Drive From a Mac

Every way to eject a USB drive on a Mac, plus what to do when macOS says the disk is in use and won't let it go.

You finish copying files to a USB stick, and now you want to pull it out. On a Mac there is no physical eject button for USB, so you have to tell macOS you are done with the drive first. Do it right and the drive unmounts cleanly. Skip the step and you risk the “Disk Not Ejected Properly” warning, or worse, a corrupted file.

Here are all the ways to eject a USB drive on a Mac, and what to do on the days macOS refuses to let go.

Why you have to eject at all

macOS does not write everything to a drive the instant you drag a file over. It buffers writes in memory and flushes them to the drive a moment later, which makes copying feel faster. Ejecting forces macOS to finish those pending writes and then safely unmount the volume.

Pull the drive before that happens and the last writes may never land. On a drive formatted as exFAT, which is the common format for USB sticks shared between Mac and Windows, there is no journaling to recover from an interrupted write. A single bad disconnection can corrupt more than just the file you were copying. This is why the eject step exists, and why it is worth the two seconds.

The ways to eject a USB drive

Any of these work. Pick whichever is closest to your hands.

  1. Finder sidebar. Open a Finder window. Under Locations in the left sidebar, find your drive and click the small eject icon next to its name.
  2. Desktop icon. If the drive shows on your desktop, drag its icon to the Trash. The Trash turns into an eject icon while you drag.
  3. Keyboard shortcut. Click the drive once in Finder to select it, then press Command-E.
  4. Right-click. Control-click (or right-click) the drive on the desktop or in the sidebar and choose Eject.
  5. File menu. Select the drive in Finder, then choose File, then Eject.

Once the drive disappears from Finder and the desktop, it is safe to unplug. This is the same whether your Mac has USB-C or USB-A ports, and whether the drive is a flash stick, an SD card reader, or a portable SSD.

Don’t see the drive anywhere?

If a connected USB drive does not appear on the desktop or in the sidebar, macOS is probably just hiding it. Open Finder, choose Finder then Settings from the menu bar, and check two things:

  • Under General, turn on “External disks” to show drives on the desktop.
  • Under Sidebar, in the Locations group, turn on “External disks” to show them in Finder windows.

If the drive still does not show up after that, it may be a connection or format issue rather than a display setting. Our guide on an external drive not showing up on Mac walks through that.

When the USB drive won’t eject

Sometimes you click Eject and macOS answers with this:

The disk wasn’t ejected because one or more programs may be using it.

The frustrating part is that macOS never tells you which program. It could be Spotlight indexing the drive in the background, a QuickLook preview you opened and forgot about, a cloud sync client like Dropbox, or an app that still has a file open. You are left closing apps one by one and trying again.

You have a few ways to deal with it.

  • Close the obvious culprits. Quit any app that opened a file from the drive, empty the Trash if you deleted files from it, and try again.
  • Use Terminal. The lsof command lists open files. Running lsof /Volumes/YourDriveName shows processes with a handle on the drive. This works but takes some reading. We cover it in how to eject a drive from Terminal.
  • Force eject, carefully. macOS will offer to force eject. That is usually fine if nothing is actively writing, and risky if something is. We explain the difference in is force eject safe.

If this happens to you often, that is the exact problem Ejecta was built for. It lives in your menu bar, names the process holding the drive, and lets you quit it and eject in one click, without Terminal and without guessing.

The short version

To eject a USB drive on a Mac, select it in Finder and press Command-E, or click the eject icon next to it in the sidebar. Wait for it to disappear, then unplug it. If macOS says the disk is in use, something is holding an open file on it, and the fix is finding that process rather than yanking the cable.

If you'd rather not use Terminal every time, Ejecta shows you exactly which process is blocking your drive — and lets you quit it with one click, right from your menu bar.

Buy Now — $9.99