Do I really need to safely eject a USB drive?
Yes, and the reason is caching, not superstition. What the eject actually does, why the copy bar finishing is not the same thing, and the real risk if you do not.
- Difficulty
- beginner
- Time
- 10 min
- Read
- 3 min
- Safety
- caution
Short answer
Yes, though the risk is lower than it used to be. The computer buffers writes in memory to keep things fast, so a copy can appear finished while data is still queued. Ejecting flushes that queue and tells the drive it can stop. If the drive has been idle for a minute or two the risk is small — but the failure it prevents is not a lost file, it is a lost drive, so it is worth the two seconds.
The advice has become folklore, and folklore invites scepticism because people pull drives out constantly and nothing happens. It is worth knowing precisely what the risk is so you can judge when to bother.
Safety
Step by step
- Understand write caching.The operating system accepts your copy into memory and writes it out in its own time, which makes everything feel faster. The progress bar reports the copy into the cache, not necessarily onto the drive. This is the entire reason eject exists.
- Know what eject actually does.It flushes any outstanding writes to the drive, closes open files, tells the drive to finish its own internal housekeeping, and marks the volume as cleanly dismounted so the system does not flag it as dirty next time.
- Watch the activity light.If the drive has a light and it is still flickering, something is being written. A dark, steady light on a drive that has been idle is a reasonable proxy for safe — though not a substitute for ejecting.
- Take more care on the drive's file system.The formats used on USB sticks keep a single copy of the index in a well-known place. Interrupt a write to that index and the whole volume can become unreadable even though every file is physically intact. Formats with journalling recover from this much better.
- Close anything using the drive first.If eject fails with "the drive is in use", something has a file open — a media player, a document, a preview pane, an antivirus scan, or a file browser window sitting in a folder on it. Close them rather than forcing the eject.
- Do not just close the lid and walk off.Sleeping a laptop with a drive attached does not eject it, and disconnecting a sleeping machine's drive is no safer than doing it awake.
- Judge the risk sensibly.Removed a stick you last read from an hour ago: essentially no risk. Removed a drive thirty seconds after a large copy finished: real risk. Removed a drive that a backup was running to: high risk. The habit is easier than the judgement.
If it doesn't work
Windows says the drive is in use and will not eject
Cause: An open file handle, often a file browser window, a preview, or an indexing or antivirus scan — Fix: Close file browser windows showing the drive, quit media players and office applications, wait a minute for scanning to finish, then try again. Signing out and back in releases stubborn handles without a full restart.
Drive is now asking to be formatted after being pulled out
Cause: Damaged file system index — Fix: Do not format. Run a file system check first, and if that fails, scan it with recovery software from another machine. The files are usually still there.
Files on the stick have gibberish names or zero size
Cause: Index written partially — Fix: Copy off anything still readable immediately, then check the file system. Reformat afterwards and consider replacing the stick — this often recurs.
Mac reports the disk was not ejected properly every time
Cause: A background process holding the volume, or removing it while the system is still writing — Fix: Eject from the sidebar and wait for the icon to disappear before unplugging. If it persists, look for backup or sync software configured to use that drive.
Questions people ask
Windows has an option for quick removal — does that mean I can just pull it out?
It reduces the risk considerably by disabling write caching for that drive, at some cost in copy speed, and it is the default for removable drives on modern Windows. It still does not protect a drive that is being written to at that moment.
Does this apply to memory cards in a camera?
Yes. Switch the camera off and wait for its light to go out before opening the door. Cards pulled mid-write are one of the commonest causes of a card full of unreadable photographs.
What about an external SSD?
Same answer. The medium is different, the caching and file system are the same.