The correct way to eject a flash drive from Mac

Do not pull the flash drive out of the USB port. Removing it without ejecting first can corrupt files, damage the drive, or lose data you thought was saved. macOS keeps files in a temporary holding area before writing them to the drive, and yanking it out interrupts that process.

Ejecting tells macOS to finish all pending writes, close the connection safely, and let you know when it is safe to remove the drive. It takes a few seconds and prevents data loss.

There are four ways to eject a flash drive on Mac. The fastest is usually the keyboard shortcut. The most visible is the Finder sidebar. Both work on any recent macOS version.

Key Takeaways

  • Always eject a flash drive before removing it; pulling it out without ejecting can corrupt files or lose data.
  • The fastest method is Command+E after selecting the drive in Finder, or you can right-click the drive name and choose Eject.
  • If you see an "in use" error when ejecting, close any open files from that drive and try again.
  • A flash drive that will not eject may have a file locked by an open process; force eject only as a last resort.

Eject using the Finder sidebar

Open Finder. Look at the left sidebar under "Locations." Your flash drive appears there by its name (often "Untitled," "USB Drive," or whatever you named it). You will see a small eject icon (an arrow pointing up out of a line) to the right of the drive name.

Click that eject icon. The drive name disappears from the sidebar, and the drive is now safe to remove. This is the most straightforward method if you can see the sidebar.

If you do not see your flash drive in the sidebar, it may not be mounted. Reconnect it to the USB port. If it still does not appear, try a different USB port on your Mac.

Eject using the keyboard shortcut

Click the flash drive name in Finder to select it. Then press Command + E. The drive ejects when ready and disappears from the sidebar.

This is the fastest method once you know it. It works on any Mac with a keyboard and works even if the Finder window is not in focus.

Eject by right-clicking the drive

Right-click (or Control-click) the flash drive name in Finder. A menu appears. Select Eject from the list. The drive ejects and the name disappears from the sidebar.

This method works the same way as the eject icon in the sidebar but may feel more natural if you are already browsing files on the drive.

Eject from the desktop

If your flash drive icon appears on the Mac desktop (not in Finder), right-click it and select Eject. The icon disappears from the desktop, and the drive is safe to remove.

Some Macs are set to show external drives on the desktop by default; others do not. Either way, the eject process is the same.

What to do if the drive will not eject

If you try to eject and see an error message saying the drive is "in use" or "busy," a file on the drive is currently open in an process. Close that process or close the file, then try ejecting again.

Common culprits are open documents, running applications installed on the drive, or a Finder window showing the drive's contents. Close the Finder window, quit the process, or save and close the document, then eject.

If you still cannot eject after closing everything, restart your Mac. A restart clears any stuck processes and usually allows the drive to eject normally. After restart, eject the drive before removing it.

Force eject (using Terminal or Disk Utility) is a last resort and should only be used if the normal methods fail repeatedly. If you need to force eject, consult Apple's support site or contact Apple Support, because the process varies by macOS version.

What happens after you eject

After ejecting, the drive name disappears from Finder and the desktop. Wait a few seconds, then remove the drive from the USB port. There is no additional step; ejecting completes the process.

If you need to use the drive again, straightforward plug it back into a USB port. It will mount automatically and appear in Finder within a few seconds.

Frequently Asked Questions

Can I just pull out the flash drive without ejecting?

You can, but you risk losing data or corrupting files. macOS may still be writing to the drive when you remove it. Ejecting takes three seconds and prevents data loss. It is always worth the small amount of time.

Why does my flash drive say it is in use when I try to eject?

An process has a file open on the drive, or a Finder window is browsing the drive's contents. Close the process or the Finder window and try again. If that does not work, restart your Mac.

Do I need to eject before putting the Mac to sleep?

Yes. Put the Mac to sleep only after ejecting the flash drive. Putting the Mac to sleep while the drive is still mounted can cause the same data loss as pulling it out without ejecting.

What if the eject icon does not appear next to my drive name?

The drive may not be fully mounted. Try disconnecting it and reconnecting it to the USB port. If the icon still does not appear, try a different USB port. If the drive still does not mount, it may have a hardware problem.

Is there a difference between ejecting and unmounting?

On Mac, ejecting and unmounting mean the same thing. Both tell macOS to finish all writes and disconnect the drive safely. You will see the words used interchangeably in Apple's documentation.