Skip to content Black FridayUp to 76% off Vitals, Levers and SoundBar, until 5 December
Vitals · Open files

Find what is stopping a disk from ejecting on your Mac

macOS says a disk was not ejected because one or more programs may be using it, and often does not say which. Open Files lists every disk with the apps and programs holding files on it, by name, and Quit Them and Eject does the rest once you agree.

The Open Files section: an external disk named Backup in use with an Eject button, the startup disk, and the apps holding files on each, including Photos, Terminal and Spotlight

Every disk, and whether it can be ejected

Open Files is a section of the Developer tab. Each connected disk is a card with its name, whether it is internal, external or on the network, how many files are open on it, and In Use or Ready to Eject. The startup disk is listed too. Vitals picks the first external disk for you.

Without this, the answer is in Terminal: lsof with the disk’s path, a list of process names and numbers, then a hunt for the app each belongs to. Vitals reads what lsof reads and groups it by disk and by app, with helpers counted under their app.

Who holds the disk, and which files

Under a disk is every app and program with something open on it: the folder it is working in, how many files it has open, how many of those for writing, and whether it runs from that disk. A Terminal tab sitting in a folder on the disk is listed.

Spotlight and Time Machine are named for what they are doing, indexing the disk or backing up to it. You can show a file in Finder, or its app in Vitals.

The apps holding the Backup disk: Photos with 9 files, 2 for writing, a Terminal tab working in a folder on it, and Spotlight indexing it

Quit Them and Eject

Click Eject on a disk that is in use and Vitals names the apps it will quit and asks. It quits them the way ⌘Q does, so an app can still ask you to save, then ejects the disk as Finder does and tells you when it is safe to unplug.

Vitals does not force eject. If something will not let go, it says what. macOS’s own processes usually let go within a few seconds, and Vitals tries again while they do.

The Backup Is in Use dialog: Quit Them and Eject will quit Photos and Terminal, then eject the disk, with a note below that Backup was ejected and can be unplugged

Find which app has a file open

The filter searches every open file on every disk. Press ⌘F and type part of a name or a path, and the apps holding a match are listed, with the process inside each. It is also how to find what has a file open when the Trash says an item is in use.

Without Full System Metrics, Vitals cannot read the files of the processes macOS runs itself, such as Spotlight’s, and says how many it left out. An assistant can ask the same over MCP, and vitals files answers in Terminal.

How to use it

  1. 1

    Open Open Files

    Go to the Developer tab and choose Open Files. Every disk is listed with how many files are open on it.

  2. 2

    See who holds a disk

    The apps and programs with something open are under the disk. Open one to see its files.

  3. 3

    Quit them and eject

    Click Eject on a disk that is in use. Vitals names what it will quit, and after your yes it quits them and ejects the disk.

  4. 4

    Find one file

    Press ⌘F and type part of the file’s name or path.

The details

Where
Developer tab → Open Files
Disks
Internal, external and network, the startup disk included
Per app
Working folder, open files, files open for writing
Ejecting
Quit Them and Eject, after a confirmation; never a force eject
Search
⌘F, by file name or path, across every disk
In Terminal
vitals files

Questions

Why can’t I eject my external drive?

Something still has a file or folder open on it: an app with a document, a Terminal tab working in one of its folders, or macOS indexing it or backing up to it. Open Files names each one.

How do I see which app is using a file?

Open the Developer tab, choose Open Files, press ⌘F and type part of the file’s name or path. Every app holding a matching file is listed.

Does Vitals force eject a disk?

No. It quits the apps you agree to quit, the way ⌘Q does, then ejects the disk as Finder does. If something will not let go, it says what.

What about Spotlight and Time Machine?

They are named for what they are doing. macOS’s own processes usually let go within a few seconds, and Vitals tries again while they do.

Is it the same as lsof?

It reads what lsof reads, every process’s open files, and groups them by disk and by app.

The same feature on the app's own site: vitalsmac.com/features/open-files

Find the app behind every number.