# Fix Mac Disk Not Ejected: Programs May Be Using It

> What the eject error means, how to find the process that holds the disk, and how to let it go without pulling the cable.

- Canonical URL: https://getedith.pro/guides/disk-cannot-be-ejected-mac
- Published: 2026-12-03
- Updated: 2026-12-03

## The short answer

Some process still has a file, a folder or the whole disk open. Find it, quit it, and eject again. In Terminal, `lsof /Volumes/NAME` lists the processes holding a mounted disk. If you prefer a window, the free Sloth app or Edith's [What's Using This](https://getedith.pro/extensions/whats-using) shows the same thing grouped by app, with buttons to quit the holder and eject.

## What the message means

macOS refuses to unmount a disk while any process has something on it open: a document in Preview, a video in a player, a Terminal tab whose current folder is on the disk, a backup app, or Spotlight indexing it. Pulling the cable anyway can corrupt files that were being written, so the error is protecting you. The trick is that the message rarely says which program it means.

## Method 1: quit the obvious apps and try again

Built into macOS

### Close files, then eject from Finder

Save and close any document from the disk, quit the app that opened it, and close Terminal windows that are sitting in a folder on the disk. Then eject from the Finder sidebar. If macOS offers Force Eject, use it only when you are sure nothing is writing to the disk. Logging out, or restarting, closes every holder at once when nothing else works.

## Method 2: find the holder with lsof

Built into macOS

### List open files on the disk

`lsof` lists open files. Pointing it at the mount point shows every process with something open on that disk, with the process name, its id and the path. Then quit that app normally, or end a stuck process with `kill` and its id.

Terminal

Shell

```
lsof /Volumes/Backup
kill 4242
diskutil eject /Volumes/Backup
```

Without `sudo`, `lsof` only sees your own processes. System services such as Spotlight run as other users, so they only show up with `sudo lsof /Volumes/Backup`.

## Method 3: a free app that wraps lsof

[Sloth](https://github.com/sveinbjornt/Sloth) is a free, BSD-licensed app that shows the open files, folders and sockets of every process in a searchable window. Version 3.6 came out on April 22, 2026. Filter for the disk name to see who holds it.

## Where these fall short

- **Raw output.** `lsof` lists processes by their command name, so a helper process with a cryptic name is hard to tie to the app you need to quit.
- **Quitting is a separate step.** You copy a process id into another command, then try the eject again by hand.
- **The error does not come back with answers.** When an eject fails again you start over.

## The Edith way: What's Using This

What's Using This shows every process holding a disk, a folder or a file open, grouped by app, with the exact paths and how each one is used: reading, writing, or a shell sitting in a folder on the disk. Quit the app or force quit a stuck process from the same window, then eject. When an eject fails, it checks the disk again and tells you what blocks it.

1. **Install What's Using This**
   Open Library in the Edith sidebar, find What's Using This and press Install, then open its page.
2. **Pick the disk**
   Drag the disk, a folder or a file onto the area that says Drop a file, folder or disk here, press Choose to pick one, or click the disk under External disks. A disk image or a memory card shows up there as soon as it is connected.
3. **See who holds it**
   Apps come first, then other processes of your account, then processes of other users, each with the files it has open. A file that was deleted while still open is marked as Deleted, and Show in Finder reveals any path.
4. **Quit, then eject**
   Press Quit next to an app to ask it to quit, the same as choosing Quit in it, so it can still ask you to save. Force Quit ends a stuck process at once after you confirm. Then press Eject. If the disk is still busy, the page lists what holds it, and Retry Eject tries again once you have dealt with it.

What it cannot see

Like `lsof` without `sudo`, a check without administrator rights sees only your own processes. If a system service still holds the disk, What's Using This says so after a failed eject, but it never quits processes that belong to other users. The startup disk cannot be checked, because it is always in use.

## Common causes worth checking first

- A Terminal or editor tab whose current folder is on the disk.
- Preview, QuickTime or a media player with a file from the disk.
- A backup or sync app copying to or from the disk.
- Spotlight indexing a disk you just connected.

## Common questions

### Is it safe to force eject?

It is safe when nothing is writing. If an app is in the middle of saving or copying, a force eject can leave a damaged file. Find and quit the holder first when you can.

### Why does the disk show as in use when every app is closed?

Background processes count too: a shell in a folder on the disk, a helper of an app you closed, or a system service such as Spotlight. That is why listing the holders beats guessing.

### Does What's Using This work with network drives?

It lists mounted network volumes along with external and removable ones, and checks them the same way.

### Is it free?

No. What's Using This comes with every Edith extension in one license; see the [pricing page](https://getedith.pro/pricing). `lsof` and Sloth are free if you are happy with them.

## Keep going

If the disk is full rather than busy, read [how to free disk space on a Mac](https://getedith.pro/guides/free-disk-space-mac-developers) or see [Edith vs CleanMyMac](https://getedith.pro/compare/edith-vs-cleanmymac). [Cleaner](https://getedith.pro/extensions/cleaner) finds caches and build output you can remove. When you are ready, [get Edith](https://getedith.pro/pricing); Edith needs macOS 14 or later on Apple silicon.

## Edith extensions used

- What's Using This: Find out what keeps a disk from ejecting, then let it go.
- [Cleaner: Disk Maps and File Cleanup for Mac](https://getedith.pro/extensions/cleaner): Understand your storage. Choose what goes.

## Related guides

- [How to Free Disk Space on a Mac for Developers](https://getedith.pro/guides/free-disk-space-mac-developers): Free disk space on a developer Mac: clear Xcode DerivedData, old simulators and package caches with built-in commands, or review and trash them safely.
- [How to Kill a Process on a Port on Mac](https://getedith.pro/guides/kill-process-on-port-mac): Kill the process using a port on your Mac with lsof and kill, from Activity Monitor, with a free menu bar app, or see every local server by project first.

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
