How to Safely Eject a USB Drive
In this article
Yes, you should safely eject a USB drive before removing it to prevent data loss or corruption. This process tells your operating system to finish any ongoing file transfers and disconnect the drive properly. Skipping it can result in lost files, damaged folders, or a corrupted drive. Before starting, ensure no programs are actively using files on the USB drive.
What You'll Need
- A computer with a USB port
- A connected USB flash drive or external storage device
- Operating system: Windows, macOS, or Linux (steps vary slightly by system)
Step-by-Step
- Save and close all files opened from the USB drive. Check any document, photo, video, or application that might be reading or writing data from the device.
- Close any programs that may be accessing the drive, such as media players, file managers, or backup tools.
- Locate the eject icon in your system’s interface:
- Windows: Look for the notification area (near the clock). Find the USB icon (often a plug or storage symbol). Right-click it and choose Eject or Safely Remove Hardware.
- macOS: Open Finder. Find the USB drive on the desktop or in the sidebar. Right-click the drive name and select Eject, or drag the drive icon to the Trash (which changes to an Eject symbol).
- Linux (GNOME): Open your file manager. Right-click the USB drive and choose Eject or Safely Remove.
- Wait for confirmation. On Windows, a message will say “Safe to Remove Hardware.” On macOS, the drive icon will disappear from the desktop. On Linux, the drive will unmount from the file manager.
- Physically remove the USB drive only after the confirmation appears. Gently pull it straight out of the port to avoid damaging the connector.
Common Mistakes
- Yanking the drive out without ejecting: This is the most common error. Even if no file is visibly open, background processes may still be writing data.
- Ignoring the “in use” warning: If the system says the device is busy, forcing removal risks corruption.
- Ejecting but not removing immediately: Once ejected, the drive is disconnected. Reinserting it without re-plugging may not work properly.
- Using the wrong eject option: On Windows, clicking “Eject” for a non-removable drive (like an internal SSD) does nothing or causes confusion.
- Assuming auto-eject on sleep or shutdown: While most systems handle removal during shutdown, manually ejecting is still best practice when actively using the computer.
Tips
- Always eject before unplugging, even if you only copied one file.
- Use the keyboard shortcut on macOS: Select the drive in Finder and press Command+E to eject quickly.
- On Windows, pin the Safely Remove icon to the taskbar for easier access if you use USB drives often.
- Wait a few seconds after ejecting before removing the drive—some systems take a moment to fully dismount.
- Check for LED activity: If the drive has a light, wait until it stops flashing before removing.
- Use Write Caching settings wisely: In Windows, enabling write caching can speed up transfers but increases risk if you forget to eject. Disable it if you frequently remove drives without ejecting (though this is not recommended).
- Check for open files: Make sure no documents, photos, or media from the drive are open. Close all applications that might be accessing it, including antivirus software or backup tools.
- Restart File Explorer (Windows): Press Ctrl+Shift+Esc to open Task Manager. Find “Windows Explorer,” right-click it, and select “Restart.” Try ejecting again.
- Use the command line (Windows): Press Win+R, type
cmd, and rundiskmgmt.msc. In Disk Management, right-click the USB drive and choose “Eject” if available. - Force eject on macOS: Open Disk Utility, select the drive, and click the Eject button. If that fails, open Terminal and type
diskutil listto find the identifier, then rundiskutil unmountDisk /dev/diskX(replace X with the correct number). - Reboot the computer: If nothing works, restart your system with the drive still plugged in. After reboot, do not open any files from it—eject immediately.
- Check for malware: Rarely, malicious software may lock the drive. Run a full system scan if the drive consistently fails to eject.
Troubleshooting
If the system won’t let you eject the USB drive, follow these steps in order:
Frequently Asked Questions
What happens if I don’t eject my USB drive?
You risk data loss or file corruption, especially if the system is still writing data. The drive may become unreadable or require formatting.
Can I just pull out the USB after copying files?
No. Even after a copy appears complete, background processes may still be finalizing the transfer. Always eject first.
Why does my computer say the device is in use?
Some program—like a document editor, media player, or system process—is accessing the drive. Close all apps and try again.
Does ejecting a USB drive delete files?
No. Ejecting only disconnects the drive safely. Your files remain intact.
Can I eject a USB drive on a phone or tablet?
Most Android and iOS devices do not support traditional USB drive ejection. Unplug only after closing all file manager apps. Use “Unmount” in Android’s storage settings if available.
Is it safe to leave a USB drive plugged in all the time?
It’s physically safe, but increases wear and risk of corruption during power surges or system crashes. Eject when not in use for extended periods.