How to Force Eject a USB Drive on a Mac

Unlike early versions of Windows where you could simply pull a USB flash drive out of the computer, macOS strictly enforces a “safe eject” protocol. When you plug a drive into your Mac, the operating system mounts it and often begins quietly reading or indexing the files in the background. If you physically pull the drive out while a background process is interacting with it, you risk severe data corruption.

Usually, you can safely eject a drive by right-clicking its icon on the desktop and selecting “Eject.” However, occasionally macOS will refuse, throwing an error message stating: “The disk wasn’t ejected because one or more programs may be using it.” If you have already closed all your visible applications, you must forcefully unmount the drive.

Method 1: Using the Force Eject Dialogue

Apple recognizes that this problem happens frequently, so they built a relatively safe “Force Eject” override into the graphical interface.

  1. Attempt to eject the drive normally (Right-click > Eject).
  2. When the warning message appears (“The disk wasn’t ejected…”), look closely at the buttons provided in that warning box.
  3. Click the Force Eject… button.
  4. A secondary, more severe warning will appear, advising you that forcing the ejection may corrupt data.
  5. Ensure you definitely are not currently copying files to the drive, and click Force Eject again to confirm.

The Mac will aggressively terminate any background processes touching the drive and unmount it, allowing you to pull it out safely.

Method 2: Force Ejecting via Disk Utility

If the drive doesn’t even appear on your desktop to right-click, or if the standard menu is completely frozen, you can use the built-in disk management tool.

  1. Press Command (⌘) + Spacebar to open Spotlight Search.
  2. Type Disk Utility and press Enter to open the application.
  3. Look at the left-hand sidebar. Under the “External” heading, find your stubborn USB drive.
  4. Click on the drive to select it.
  5. At the top of the Disk Utility window, click the Unmount button. (If the button says “Eject”, click that instead).

Disk Utility operates at a lower system level and can often successfully unmount a drive that the Finder is struggling with.

Method 3: The Terminal Force Unmount (Advanced)

If the graphical interface has completely failed and the drive refuses to let go, you can use the Terminal to forcibly sever the connection.

  1. Open Terminal (via Spotlight Search).
  2. First, you need to find the specific identifier for your USB drive. Type diskutil list and press Enter.
  3. A list of all connected drives will appear. Look for the name of your USB drive and note its identifier on the far right (it will look something like disk2 or disk3).
  4. Type the following command, replacing diskX with your specific identifier:
diskutil unmountDisk force /dev/diskX
  1. Press Enter.

The terminal will instantly force the system to drop the connection, outputting a “Successful” message, at which point you can physically remove the drive.

Get the best tech tips delivered straight to your inbox.

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