To eject a disk on a Mac, you can drag its icon to the Trash (which turns into an Eject icon), press Command+E with the disk selected, or use the Eject button in Finder. For drives without an eject button, like many external SSDs, you can right-click the disk icon and choose Eject, or use the Finder sidebar’s eject icon next to the drive name.
Why Ejecting Matters
Ejecting a disk before unplugging it isn’t just a formality. macOS caches writes in memory and on the drive itself; ejecting flushes those buffers and tells the drive to finish any pending operations. If you yank a drive without ejecting, you risk corrupting files, losing data, or damaging the drive’s file system structure. For internal disks, ejecting is less about physical removal and more about unmounting the volume, which is necessary before partitioning, erasing, or using Disk Utility for repairs.
Different Types of Disks and How to Eject Them
macOS treats several types of media as disks, and each has its own ejection behavior:
- External hard drives and SSDs: Usually appear on the Desktop and in Finder’s sidebar. Right-click the icon and select Eject, or drag it to the Trash.
- USB flash drives: Same as external drives, but they often have a tiny LED that stops blinking when safe to remove.
- SD cards: If your Mac has an SD slot, the card appears as a disk. Eject it via Finder or the Desktop before pulling it out.
- Optical discs (CD/DVD): Press the Eject key on your keyboard (if available), or use the Eject button in Finder. Some Macs require holding the mouse button during startup to eject a stuck disc.
- Network volumes: Click the disconnect button in Finder’s sidebar, or use Command+E after selecting the volume.
- Disk images (.dmg): These mount as virtual disks. Right-click the mounted image and select Eject, or drag it to the Trash.
Keyboard Shortcuts and Menu Options
The fastest way to eject is often the keyboard. Select the disk icon on the Desktop or in a Finder window, then press Command+E. This works for most mounted volumes. Alternatively, in Finder’s menu bar, go to File > Eject (the menu item changes to show the selected disk’s name).
If you have multiple disks, you can eject them all at once by holding Option and clicking the File menu – the Eject option becomes Eject All. This is handy when you’ve mounted several disk images or connected multiple drives.
When a Disk Won’t Eject
Sometimes a disk refuses to eject because an app is using a file on it. macOS will show a dialog saying “The disk wasn’t ejected because one or more programs may be using it.” Here’s what to try:
- Close all open documents and quit apps that might access the drive (like a media player, photo editor, or terminal session).
- If the dialog lists a specific app, quit it via Force Quit (Command+Option+Esc) if it’s unresponsive.
- Try ejecting again. If it still fails, open Activity Monitor (in /Applications/Utilities), search for processes with the disk’s name, and quit them.
- As a last resort, you can restart your Mac. The disk will usually eject cleanly during shutdown.
For a stuck optical disc, hold down the mouse button or trackpad button while restarting the Mac. This forces the drive to eject the disc during startup.
Ejecting via Terminal
Advanced users can eject disks from the command line. Open Terminal (in /Applications/Utilities) and use the diskutil command. First, list all disks with diskutil list to find the identifier (like disk2). Then unmount it with:
diskutil unmount /dev/disk2
If you want to eject (unmount and power down) the drive, use diskutil eject /dev/disk2. This is useful for drives that don’t appear in Finder or when you’re scripting a backup routine. Be careful to type the correct disk identifier – ejecting your startup disk will cause problems.
Common Misconceptions
A widespread myth is that you must eject a USB drive every time or you’ll definitely lose data. In practice, modern macOS and drives handle sudden removal better than older systems, but the risk is still real, especially if a write operation is in progress. Another misconception is that the Trash icon turning into an Eject icon means the disk is being deleted – it’s just a visual cue that dragging the disk there will unmount it, not erase it.
Some users believe that ejecting a disk from the Desktop is different from ejecting it from Disk Utility. Both perform the same unmount operation. Disk Utility also offers a Mount button for volumes that are unmounted but still connected.
What to Do If Ejecting Fails Completely
If a disk absolutely will not eject, and you’ve closed all apps and restarted, the drive may have a hardware issue. Try a different port or cable. If it’s a network volume, the server might be offline. For external drives with their own power supply, try turning the drive off and on again. If the disk still appears in Finder but won’t eject, you can use Disk Utility’s First Aid to check for file system errors, but that’s a separate process from ejecting.
In rare cases, a disk might be stuck in a read-only state because of a file system error. In that situation, ejecting may fail repeatedly. The safest next step is to shut down the Mac, disconnect the drive, and reconnect it after a fresh boot. If it still misbehaves, the drive’s file system may need repair on another computer.
Frequently Asked Questions
Why does my Mac say “disk not ejected properly”?
This warning appears when you unplug a drive without ejecting it first. It means macOS detected that the drive was disconnected while it was still mounted. The warning is a reminder that data may not have been written completely. It doesn’t always mean data loss, but it’s a sign to be more careful next time.
Can I eject a disk by dragging it to the Trash?
Yes. Dragging a disk icon to the Trash is a standard way to eject it. The Trash icon changes to an Eject symbol, and the disk unmounts. This works for external drives, disk images, and network volumes. It does not delete any files.
What’s the difference between ejecting and unmounting?
On macOS, they’re essentially the same operation. Ejecting unmounts the volume and, for external drives, also tells the drive to power down safely. Unmounting (via Disk Utility) just makes the volume inaccessible but leaves the device connected. Ejecting is the more complete action for physical removal.
How do I eject a disk from the Finder sidebar?
In any Finder window, look at the sidebar under Locations or Devices. Next to each external drive’s name, there is a small eject icon (a triangle over a line). Click that icon to eject the drive. If you don’t see it, hover over the drive name and it will appear.
Is it safe to eject a disk during a file transfer?
No. Never eject a disk while files are being copied to or from it. Wait for the transfer to finish, then eject. If you eject mid-transfer, you’ll likely corrupt the file being copied and possibly the disk’s directory structure. macOS usually blocks ejection during active transfers, but it’s not guaranteed.
What if my external drive doesn’t show up on the Desktop?
By default, external disks appear on the Desktop, but you may have disabled that in Finder’s Preferences (under General, check “External disks”). If it’s not there, open a Finder window and look in the sidebar. If it’s not in either place, the drive may not be mounted; check Disk Utility or try a different cable/port.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Luxury V6 Sports Sedan: Can It Easily Top 100k Miles?
- Puppets in TV Shows: Classic Proof They’re Better
- Best Streaming Remote: Top Picks for Every Setup
- Claude Pro Hidden Features Power Users Try
- Tesla Rental Prices: Why They’re So Low255.00 USD
- Best Family Western Movies to Stream Right Now