How to eject usb

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 4, 2026

Quick Answer: To safely eject a USB drive, right-click its icon on your taskbar or desktop and select 'Eject' or 'Safely Remove Hardware'. On macOS, drag the USB icon from the desktop to the Trash or right-click and select 'Eject'. This process ensures all data transfers are complete, preventing data loss or corruption.

Key Facts

Overview

Removing a USB (Universal Serial Bus) drive, whether it's a flash drive, external hard drive, or other peripheral, requires a proper 'ejection' process to ensure data integrity and prevent potential damage to the drive or the data it contains. Simply pulling the drive out without following the correct procedure can interrupt ongoing read or write operations, leading to data corruption or loss. This guide explains why safe ejection is important and how to do it on different operating systems.

Why Safe Ejection is Crucial

Operating systems manage data transfer to and from storage devices. When you save a file to a USB drive, the OS might not write all the data immediately. It often uses a cache, a temporary storage area, to speed up operations. Data is written to the cache first and then transferred to the USB drive in the background. If you remove the USB drive before this background transfer is complete, the data that was only in the cache will be lost, potentially corrupting the file you were working on or even the entire file system of the drive. The 'Eject' or 'Safely Remove Hardware' function tells the operating system to flush all cached data to the USB drive and ensure that no operations are pending before allowing you to physically disconnect the device.

How to Safely Eject a USB Drive

On Windows:

Windows provides a straightforward method through the taskbar notification area, often referred to as the 'system tray'.

  1. Locate the Icon: Look for a small USB icon (it might look like a USB plug or a device with a checkmark) in the notification area on the right side of your taskbar, near the clock. If you don't see it, you may need to click the small upward-pointing arrow (^) to reveal hidden icons.
  2. Click the Icon: Left-click the USB icon. A menu will appear listing the devices that are currently connected and can be safely ejected.
  3. Select the Device: Click on the name of the USB drive you wish to remove. It might be identified by its drive letter (e.g., 'Eject USB Drive (E:)') or a specific device name.
  4. Confirmation: Windows will display a notification saying, 'Safe To Remove Hardware'. Once you see this message, you can physically unplug the USB drive from your computer's port.

Alternative Method (File Explorer):

  1. Open File Explorer (you can press Windows Key + E).
  2. Navigate to 'This PC' or 'Computer' in the left-hand pane.
  3. Locate your USB drive under 'Devices and drives'.
  4. Right-click on the USB drive icon.
  5. Select 'Eject' from the context menu.
  6. Wait for the drive to disappear from the list or for a confirmation message, then remove the drive.

On macOS:

macOS offers a couple of intuitive ways to eject USB drives.

  1. Drag to Trash: The most common method is to click and drag the USB drive's icon from your desktop into the Trash icon in the Dock. The Trash icon will change to an Eject symbol. Releasing the icon over the Eject symbol will safely eject the drive.
  2. Finder Menu: Open a Finder window. In the sidebar under 'Locations', you will see your connected USB drive. Click the small Eject icon (^) next to the drive's name.
  3. Right-Click (Control-Click): If the USB drive's icon is on your desktop, you can also Control-click (or right-click) the icon and select 'Eject [Drive Name]' from the menu that appears.

Once ejected, the drive's icon will disappear from your desktop or Finder, and it is safe to physically remove.

On Linux:

The process on Linux distributions can vary slightly depending on the desktop environment (e.g., GNOME, KDE, XFCE), but the general principles are similar.

  1. File Manager: Open your file manager (e.g., Nautilus for GNOME, Dolphin for KDE).
  2. Locate the Drive: Your USB drive will typically appear in the sidebar.
  3. Eject Icon: Look for an Eject icon (often a small triangle or upward arrow) next to the drive's name. Click it.
  4. Command Line (Advanced): For advanced users, you can use the command line. First, identify the device name (e.g., `/dev/sdb1`) using commands like `lsblk` or `sudo fdisk -l`. Then, unmount the partition using `sudo umount /dev/sdb1` (replace `/dev/sdb1` with your actual device partition). After unmounting, it's generally safe to remove, but ensure no processes are using the device.

Troubleshooting: 'Device is Currently in Use'

Sometimes, when you try to eject a USB drive, you might get a message stating that the 'device is currently in use'. This means that a file, application, or background process is still accessing the drive. To resolve this:

Quick Removal vs. Better Performance Policies

Windows offers a choice between two removal policies for USB devices: 'Quick removal' and 'Better performance'.

You can check and change this setting by going to Device Manager, finding your USB drive, right-clicking it, selecting Properties, going to the 'Policies' tab, and choosing your preferred option.

Conclusion

Safely ejecting your USB drive is a simple yet vital step in digital hygiene. By taking a few extra seconds to follow the correct ejection procedure, you protect your valuable data from corruption and ensure the longevity of your USB storage devices. Always remember to look for the 'Safe To Remove Hardware' notification or see the drive icon disappear before unplugging.

Sources

  1. Safely remove hardware and eject media - Microsoft Supportfair-use
  2. Transfer files between your Mac and iPhone or iPad - Apple Supportfair-use
  3. USB flash drive - WikipediaCC-BY-SA-4.0

Missing an answer?

Suggest a question and we'll generate an answer for it.