To enable a hidden disc eject menu in OS X, open Terminal and run a single command that adds an “Eject” option to the menu bar. This menu lets you eject all mounted discs, including CDs, DVDs, and mounted disk images, without opening Finder or dragging icons to the Trash.
What the Hidden Eject Menu Does
Starting with Mac OS X 10.4 Tiger, Apple included a hidden menu bar extra that shows a small eject icon. When you click it, a dropdown lists every mounted volume that can be ejected, along with an “Eject All” option. The menu is not visible by default, so most users never know it exists. It is especially handy if you regularly swap discs, work with multiple external drives, or need to eject a stubborn disc that won’t let go through the normal method.
Why Apple Hides It
Apple has a history of shipping hidden preferences and menu extras for power users. The eject menu is one of several “Menu Extras” that live in the system’s menu bar area. Others include the volume, Wi-Fi, and battery icons, which are visible by default. The eject menu was likely hidden because most users eject discs by dragging them to the Trash or pressing the Eject key on the keyboard, and a permanent menu bar icon would add clutter for the majority who never use optical media. It remains in the system for compatibility and for those who want it.
How to Enable It with Terminal
You need to use the Terminal application, located in Applications → Utilities, to run a command that loads the menu extra. The command is:
open /System/Library/CoreServices/Menu\ Extras/Eject.menu
After you press Return, the eject icon appears immediately in the menu bar, typically on the right side near the clock. To remove it, hold the Command key and drag the icon off the menu bar, just like removing any other menu extra.
If you prefer a more permanent approach, you can add the command to your startup items so the menu appears every time you log in. To do that:
- Open System Preferences → Users & Groups (or Accounts on older systems).
- Select your user account and click the Login Items tab.
- Click the + button and navigate to /System/Library/CoreServices/Menu Extras/.
- Select Eject.menu and click Add.
Now the eject menu will load automatically each time you log in.
What the Menu Shows and How to Use It
Once enabled, the menu lists every mounted volume that can be ejected. This includes:
- Optical discs (CDs, DVDs, Blu-ray discs if your Mac has a compatible drive)
- External hard drives and SSDs
- USB flash drives
- Mounted disk images (.dmg files)
- Memory card readers and SD cards
Clicking a specific volume ejects it. Clicking Eject All ejects every volume listed, which is useful when you want to quickly disconnect multiple drives. The menu also shows a small eject icon next to each volume, and you can use it to eject without closing open files first, though macOS will prompt you if a file is in use.
Common Problems and Fixes
Sometimes the menu doesn’t appear even after running the command. This usually happens because the path is slightly different on newer macOS versions, or because you mistyped the command. Check that you are running the exact command with the backslash before the space in “Menu Extras”. If you see an error like “The file doesn’t exist,” the menu extra may have been removed or relocated. On macOS Catalina and later, the path remains the same, but you may need to use open -a Terminal first to ensure Terminal has permission to access the system folder.
If the menu appears but doesn’t list a drive you expect, the drive may not be ejectable (for example, an internal hard drive that is the boot volume). The menu only shows volumes that can be safely ejected. Also, if you have a drive that is stuck, the menu may not help; you might need to force eject via Finder or the drutil eject command in Terminal.
Alternatives to the Hidden Menu
If you don’t want to use Terminal, there are other ways to eject discs and drives:
- Drag the volume icon to the Trash (the Trash icon changes to an Eject symbol).
- Press the Eject key on your keyboard (if available) or use Command+E in Finder with the volume selected.
- Right-click the volume on the desktop and choose Eject.
- Use the Disk Utility app to unmount a volume.
For power users, third-party menu bar apps offer more advanced eject controls, but the built-in hidden menu is free and requires no extra software.
Frequently Asked Questions
Does the eject menu work on macOS Big Sur or Monterey?
Yes, the hidden eject menu still exists in current macOS versions, and the same Terminal command works. However, Apple has removed optical drive support from most Macs, so the menu is mainly useful for external drives and disk images.
Can I enable the eject menu without Terminal?
No, there is no graphical toggle in System Preferences. The only built-in method is the Terminal command or adding the menu extra via Login Items, which still requires navigating to the system folder.
Why doesn’t the eject menu show my internal hard drive?
The menu only shows volumes that are safe to eject. Your internal boot drive cannot be ejected while the Mac is running, so it is intentionally hidden. External drives and discs are shown because they can be removed.
How do I remove the eject menu once I enable it?
Hold the Command key and drag the eject icon off the menu bar. It will disappear with a poof animation. If you added it to Login Items, remove it from there as well.
Is there a way to eject all discs with a keyboard shortcut?
Not with the hidden menu alone. You can use Command+Option+Eject to put the Mac to sleep, but to eject all volumes you need to click “Eject All” in the menu. Some third-party apps let you assign a shortcut.