Black Friday 76% off Levers, until 5 December
More apps from us

Guide

How to eject all disks at once on a Mac

Atta 🐬

Maker of Levers

Updated

Quick answer

To eject one disk, click the Eject button next to its name in the Finder sidebar, or select it and press Command-E. To eject several at once, select their icons on the desktop and press Command-E, or drag them to the Trash. If a disk can’t be ejected because it’s in use, quit the apps using files on it and try again.

Levers ejects every external drive, disk image and memory card with one click from the menu bar.

How to eject every disk at once

  1. 1

    In Finder, choose Finder › Settings, click General, and under Show these items on the desktop select External disks, and CDs, DVDs, and iOS Devices if you use them.

  2. 2

    Click the desktop, then hold Command and click each disk’s icon to select them all.

  3. 3

    Press Command-E, or choose File › Eject. Or drag the selected disks to the Trash.

  4. 4

    When the icons have gone from the desktop, it’s safe to unplug the disks.

When one drive holds several volumes, Finder asks whether to eject just one or all of them. Click Eject All, or hold Option while you eject to skip the question.

Ejecting tells macOS to finish writing to a disk and let go of it, so nothing is lost when you unplug it. Finder ejects one disk at a time from the sidebar, and several at once from the desktop once their icons are shown there. The trouble usually starts when a disk is in use and won’t let go.

Ways to eject disks on a Mac

WayWhereEjects several at onceNo Terminal needed
The Eject button Next to the disk in the Finder sidebar No Yes
Command-E or File › Eject Finder, with the disk selected Select several on the desktop first Yes
Drag to the Trash The desktop Select several on the desktop first Yes
diskutil Terminal No No
Levers The menu bar Yes Yes

Yes Partly No

How to eject one disk on a Mac

Use whichever is closest:

  • In the Finder sidebar, click the Eject button next to the disk’s name.
  • Select the disk, then choose File › Eject or press Command-E.
  • On the desktop, drag the disk’s icon to the Trash.

What to do when a disk can’t be ejected because it’s in use

When Finder says You can’t eject “My Disk” because it’s in use, an app still has a file on the disk open. Sometimes the message names the app. Work through these, trying to eject again after each one:

  1. Quit the apps that are using files on the disk. Press Command-Tab to see which apps are open.
  2. If an app won’t quit, close the documents it has open from the disk.
  3. Choose Apple menu › Log Out, log in again, and eject.
  4. If it still won’t eject, choose Apple menu › Shut Down, unplug the disk, and start the Mac again.

How to see which app is using a disk

When the message doesn’t name the app, Terminal can. This command lists the files open on the disk, with the app that has each one open in the first column. Put the disk’s name, as Finder shows it, in place of My Disk.

lsof "/Volumes/My Disk"

It lists the apps you run. If it finds nothing and the disk still won’t eject, log out and back in, as above.

How to eject a disk with Terminal

The first command lists the disks plugged into your Mac, each with an identifier such as disk4. The second ejects that disk, with every volume on it.

diskutil list external
diskutil eject disk4

diskutil can also force out a disk that’s in use, with the word force after eject. Use it only when nothing else works: apps with files open on the disk can lose what they hadn’t saved.

Or eject them all with one click in Levers

We make Levers.

Levers sits in your menu bar. Eject All Disks ejects every external drive, disk image and memory card in one click; network servers you’re connected to stay. If a disk is in use, Levers ejects the rest and names the one that stayed.

  • Eject All Disks
  • Every disk ejected in one click, no desktop icons needed
  • Ejects the rest when one is in use, and says which
  • Next to Restart Finder, Show Hidden Files and the other Finder switches

Good to know

  • It doesn’t force a disk that’s in use, or say which app is using it. Quit that app and click again.
  • Needs macOS 15 Sequoia or later.
  • One payment, no subscription, with a 14-day refund.

Questions people ask

How do I eject all disks at once on a Mac?

Show external disks on the desktop in Finder › Settings › General, select all their icons, and press Command-E or drag them to the Trash.

Why can’t I eject my disk on a Mac?

An app still has a file on it open. Quit the apps using the disk, or close the documents they have open from it, and try again. If it still won’t eject, log out and back in.

How do I find what’s using a disk on a Mac?

Sometimes Finder’s message names the app. If it doesn’t, the lsof command in Terminal lists each file open on the disk with the app that has it open.

What’s the shortcut to eject a disk on a Mac?

Select the disk in Finder and press Command-E.

Is there an app that ejects all disks at once?

Yes. Levers has Eject All Disks in your menu bar: one click ejects every external drive, disk image and memory card, and tells you if one is in use. It costs from $6.99, paid once.

More guides