It’s no secret that USB storage devices are a popular way to store and share photos, music, and other files. But what many people don’t know is that USB storage devices can also be a danger to your computer if you don’t safely eject them when you’re finished using them. When you plug a USB storage device into your computer, the operating system on your computer will usually automatically recognize it and offer to install the device’s drivers. This process can take some time, so if you don’t want to wait, you can usually just click “Yes” to install the drivers right away. However, if you want to remove the device from your computer later on, there are two ways to do it. The first way is to right-click on the device in Windows Explorer or Mac OS X Finder and select “Eject.” The second way is to press and hold down the power button on your device until it powers off (or until you see a message telling you that the device has been ejected). Both methods work fine, but there are some important things to keep in mind when using either of them: If you eject a USB storage device while it’s still connected to your computer, its contents will be lost forever . If you need access to any of those files again someday, be sure to back them up first! . If you need access to any of those files again someday, be sure to back them up first! If you eject a USB storage device while it’s still connected to another piece of hardware (like an external hard drive), its contents will also be lost . Again, make sure that anything important is backed up before doing this! . Again, make sure that anything important is backed up before doing this! If something goes wrong while ejecting a USB storage device (for example, if your computer crashes), all ..


Windows gets so mad when you don’t safely eject USB media, but does it really matter? What’s the worst that could happen if you never safely ejected your USB drive and other flash-based media?

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

The Question

SuperUser reader Simon is really curious what fate might befall him if he never safely ejects his media:

How much of a gamble is Simon taking?

What is the rationale behind right clicking on the safely remove icon and can I really lose information on USB media if this is not carried out ?

Is the [probability] of losing such information greatly increased, if the USB media is still flashing at the time of pulling it out of the computer (as opposed to non-flashing) ?

The Answer

SuperUser contributor Dave Rook explains:

MSalters offers a sobering insight:

When you plug in a USB drive, you give your PC free rein to write and read data from it; some of which is cached.

Caching occurs by not writing information immediately to the USB device, and instead keeping it in your PC’s memory (RAM). If you were to yank the USB drive out of your PC before this information is written, or while its being written, you’ll end up with a corrupted file.

However, Windows automatically disables caching on USB devices, unless you specifically say that you want it enabled. For the most part you don’t have to click the ‘Safely Remove Hardware’ button, if you aren’t writing or reading anything from the device.

Its there simply as an extra level of security preventing you from destroying your own files.

Doing so causes the files to close “gracefully”, preserving data, pointers and file size indicators. When writing to disk the computer doesn’t always “flush” a buffer and only part of the data may have been written. Using the proper procedure will assure that the data and pointers are in good shape.

Source

In other words, it’s not worth gambling with which bit might or might not be corrupted: it might be a temporary file in a portable application’s cache or it might be, as MSalters points out, a critical system file.

If you’re really unlucky, the bit falling over will be in a filesystem table and corrupt e.g. an entire directory.

For more information about safe media ejection, check out: HTG Explains: Do You Really Need to Safely Remove USB Sticks?

Have something to add to the explanation? Sound off in the the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.