Guide
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.
Updated by Pulkit
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 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.
lsof /Volumes/Backupkill 4242diskutil eject /Volumes/BackupWithout 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 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.
lsoflists 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.
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. 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 or see Edith vs CleanMyMac. Cleaner finds caches and build output you can remove. When you are ready, get Edith; Edith needs macOS 14 or later on Apple silicon.