Can't Eject External Drives on Mac? Fixed
In this article
If you can't eject an external drive on your Mac, the cause is almost always an app or process that is still using a file on the drive. The fastest fix is to quit the app, then try the eject button again; if that fails, use the Force Eject command in Finder, and as a last resort, restart your Mac. Below is the full background, step-by-step fixes, and answers to common questions so you can safely remove your drive without risking data loss.
Why Macs Refuse to Eject Drives
macOS locks an external drive when any file on it is open. This includes obvious cases like a movie you're watching from the drive, but also less obvious ones like a text editor holding a temporary file, a backup app scanning the drive, or Spotlight indexing it. When you click the eject icon, the system checks for open file handles; if it finds any, it denies the eject and shows the message “The disk wasn't ejected because one or more programs may be using it.”
This is a safety feature. Abruptly pulling the drive while data is being written can corrupt the file system, leading to lost files or a drive that won't mount. So the fix is to find and close whatever is holding the drive, not to yank the cable.
Quick Fixes to Try First
Start with these low-effort methods. They solve the majority of cases.
- Quit visible apps: Close any app that might be reading from the drive (e.g., Photos, Music, Finder windows showing the drive's contents). Then try ejecting again.
- Use the Finder's eject button: In a Finder window, click the small eject icon next to the drive's name in the sidebar. Or drag the drive icon from the Desktop to the Trash (which turns into an eject icon).
- Try the keyboard shortcut: Select the drive on the Desktop and press Command+E.
- Use the menu bar: If you have a third-party menu bar app for managing drives, use its eject option. Some drives also have their own eject software.
If none of these work, move on to the more targeted methods below.
Force Eject Through Finder
Finder has a built-in Force Eject feature that bypasses the normal checks. It's safe to use because it tells macOS to unmount the drive without waiting for apps to release their handles. However, if an app is actively writing data, you could lose that data. Use this only after you've quit all apps you know are using the drive.
- Open a Finder window.
- In the sidebar, right-click (or Control-click) on the external drive's name.
- Select Eject from the context menu. If that doesn't work, hold the Option key and right-click again; the menu will now show Force Eject.
- Confirm the action in the dialog that appears.
If the drive still doesn't eject, try the same from the Desktop: right-click the drive icon and choose Eject or Force Eject.
Find and Quit the Culprit App
Force eject is a workaround, but it doesn't solve the underlying problem. To avoid repeated eject failures, you need to identify which app is holding the drive. macOS doesn't show this directly, but you can use the Activity Monitor (in Applications > Utilities) to look for processes that are using a lot of disk I/O. Sort by the “Disk” column and look for apps that are reading or writing while you're trying to eject. Quit those apps.
Another common culprit is Spotlight. When you plug in a new drive, Spotlight indexes its contents. This can take a few minutes and will prevent ejection. You can check if Spotlight is indexing by looking for a magnifying glass icon in the menu bar or by opening System Settings > Spotlight and seeing if the drive is listed under “Search Privacy.” If you don't need Spotlight to search the drive, you can add the drive to the privacy list to stop indexing, which will also make ejection faster.
When All Else Fails: Restart or Shut Down
If you've quit every app and force eject still fails, the safest remaining option is to restart your Mac. When you restart, macOS will close all processes and unmount the drive cleanly (as long as it's not in the middle of a write). After the restart, you can safely unplug the drive.
If you can't restart because the system is frozen, you can try a safe boot (hold the power button until the startup options appear, then select the drive and hold Shift) or simply shut down. Shutting down is a last resort because it will force-quit any unsaved work, but it's better than yanking the cable and risking file system corruption.
Preventing Future Eject Problems
Once you've successfully ejected, you can reduce the chances of this happening again:
- Always eject before unplugging: Make it a habit to eject the drive from Finder or the Desktop before removing the cable or turning off the drive.
- Close apps that use the drive: If you're done editing files on the drive, quit the editor before you try to eject.
- Disable Spotlight indexing for the drive: As mentioned, this prevents background indexing from locking the drive. Go to System Settings > Spotlight > Search Privacy, and add the drive.
- Use a powered hub or cable: Some external drives have power management issues that cause them to disappear or become unresponsive. A powered USB hub or a better cable can help.
- Keep macOS updated: Apple has fixed several bugs related to external drive ejection in macOS updates, so make sure you're running the latest version.
Frequently Asked Questions
Is it safe to force eject a drive?
Force eject is safe if no app is actively writing data. It's essentially the same as telling the system to unmount the drive immediately. The risk is data loss if a file is being written at that moment. So, always try to quit apps first, and only force eject when you're confident no writes are happening.
Why does my drive eject but then immediately remount?
This usually happens when a background process, like a backup app or Spotlight, re-opens the drive right after ejection. Check your backup settings and Spotlight privacy list. Also, some drives have a sleep/wake feature that causes them to reconnect.
Can I unplug the drive without ejecting if I'm in a hurry?
You can, but you risk corrupting the file system. If the drive is only being read (no writing), the risk is low, but it's still not recommended. If you regularly pull drives without ejecting, you'll eventually lose files.
My drive won't eject and shows “Disk Not Ejected Properly” later. What does that mean?
That message appears after you've unplugged a drive without ejecting, or after a failed eject. It's a warning that the drive may have been disconnected while in use. If you see it, check the drive's health and consider running First Aid in Disk Utility.
Does this happen with all external drives or just some?
It can happen with any external drive—USB, Thunderbolt, SD cards, and even network drives. The behavior is the same because it's controlled by macOS, not the drive itself. However, drives with their own management software (like some SSDs) might behave differently.
What if the drive is not showing up at all?
If the drive isn't in Finder or on the Desktop, it may not be mounted. Check Disk Utility (Applications > Utilities) to see if it appears there. If it does, select it and click Mount. If it doesn't, try a different cable, port, or computer. If it still doesn't appear, the drive may have failed.