Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Why Safely Eject USB Drives (and How to Do It)

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You should always safely eject a USB drive before unplugging it because it tells your computer to finish any pending writes and flush the cache. If you just yank it out, you risk corrupting files, losing data, or damaging the drive's file system. The process takes about five seconds and works on Windows, macOS, and most Linux systems.

What You'll Need

  • A USB drive (flash drive, external hard drive, or SSD) connected to your computer.
  • Access to the operating system's file manager or system tray (built into all OSes).
  • No extra software is required—this is a built-in feature.

Step-by-Step

  1. Save and close any files that are open from the USB drive. This includes documents, photos, videos, or any program that might be reading or writing to the drive.
  2. On Windows: Look for the “Safely Remove Hardware” icon in the system tray (bottom-right corner, near the clock). It looks like a small USB plug with a green checkmark. If you don't see it, click the upward arrow (^) to show hidden icons.
  3. On Windows (alternative): Open File Explorer, right-click on the USB drive under “This PC,” and select “Eject.” This works for most drives.
  4. On macOS: Open Finder, find the USB drive under “Locations” in the sidebar. Click the small eject icon (a triangle with a line underneath) next to the drive's name. Alternatively, right-click (or Ctrl-click) the drive icon on the desktop and select “Eject.”
  5. On Linux (most desktop environments): Open your file manager (e.g., Nautilus, Dolphin, Thunar). Right-click the drive in the sidebar or file list and select “Safely Remove Drive” or “Eject.” Some systems show a small eject icon next to the drive.
  6. Wait for the confirmation message. On Windows, you'll see a notification saying “Safe to Remove Hardware.” On macOS, the drive icon disappears from the desktop and sidebar. On Linux, the drive unmounts and disappears from the file manager.
  7. Physically unplug the drive only after you see that confirmation or the drive is no longer listed.

Common Mistakes

  • Pulling the drive out while files are still copying. Even if the copy progress bar looks complete, the system may still be writing cached data. Wait for the eject confirmation.
  • Using the “Eject” option on Windows for a drive that is in use. If a program has the drive open, Windows will show an error. You must close the program first.
  • Ignoring the “Device is in use” warning. This means a background process (like antivirus scanning or indexing) is accessing the drive. Wait a few seconds and try again, or close any open apps.
  • On macOS, dragging the drive to the Trash. This actually ejects the drive, but it's easy to accidentally drop it in the Trash and delete the drive's contents. Use the eject icon instead.
  • Unplugging a drive that is the system drive. If you boot from a USB drive, don't eject it until you shut down the computer.

Tips

  • Use the “Safely Remove” option every time, even if you think the drive is idle. The cost is a few seconds, and the benefit is avoiding data loss.
  • If you have multiple USB drives, make sure you select the correct one in the system tray—the drive letter or name is shown in the tooltip.
  • On Windows, you can also use the “Eject” option in the “This PC” view. Right-click the drive and choose “Eject.” This is often more reliable than the system tray icon for external hard drives.
  • For external hard drives with a power switch, turn off the drive first (if it has one) before unplugging, but still use the OS eject first.
  • If you frequently forget, set a reminder or create a habit: always check for the “Safe to Remove” notification before reaching for the cable.

Troubleshooting

If you get an error saying the device is in use:

  1. Close all open files and programs that might be using the drive (including file explorer windows).
  2. Wait 10–15 seconds and try ejecting again.
  3. If it still fails, restart your computer (or log out and back in) and then eject. This clears any lingering file handles.

If the eject icon is missing on Windows:

  1. Click the upward arrow (^) in the system tray to show hidden icons.
  2. If you still don't see it, open File Explorer, right-click the drive, and choose “Eject.”
  3. If neither works, shut down your computer and then unplug the drive. This is safe because the OS has flushed all writes during shutdown.

If you accidentally unplugged the drive without ejecting:

  1. Plug it back in. Windows will often run a check (chkdsk) automatically. Let it finish—it may repair minor issues.
  2. If the drive shows as “RAW” or asks to format, stop immediately. Do not format. Use data recovery software (like Recuva or TestDisk) to try to recover files. If the data is critical, consider a professional recovery service.

If the drive still doesn't eject after restarting:

  1. Check if any program is set to “always run” from the drive (e.g., portable apps). Close those programs.
  2. On Windows, you can use the “Disk Management” tool (right-click Start > Disk Management) to see if the drive is still active. Right-click the drive's partition and select “Eject.”
  3. If all else fails, shut down the computer, unplug the drive, and restart. This is a safe last resort because the OS flushes all writes during shutdown.

Frequently Asked Questions

Is it really necessary to safely eject every time?

Yes, especially if you've written files to the drive. Modern OSes use write caching, so data may not be physically on the drive until you eject. Skipping it risks corruption.

What happens if I unplug without ejecting?

You might lose the file you were copying, or the drive's file system could become corrupted, making the drive unreadable. It can also cause errors on the drive that require reformatting.

Does safely ejecting wear out the drive?

No. The eject command just flushes the cache and unmounts the drive. It doesn't cause physical wear. The opposite—yanking the drive—can cause wear and tear on the connector and the drive's electronics.

Why does my USB drive sometimes say “This device is currently in use”?

Because a program (like antivirus, file indexing, or a background backup) is accessing the drive. Close all programs that might use it, wait a few seconds, and try again.

Can I safely eject a USB drive that's connected through a hub?

Yes, but eject the drive itself, not the hub. If you eject the hub, it may disconnect all drives at once, increasing the risk of data loss.

Does the same apply to memory cards (SD cards) in a card reader?

Yes. Always eject the card reader or the card itself before removing it. The same write-caching rules apply.