why is there a “safe to eject” option for USB sticks?

518 views

After you’ve transfered all your data on/off, why cant you simply take out the stick? where’s the harm?

In: 252

30 Answers

Anonymous 0 Comments

When you insert the USB drive the operating system connects it as a readable file system so programs can open and close files on the drive. Most programs have separate tasks for opening, reading, writing and closing a file. If you pull the disk out during one of those operations you run the risk of corrupting the data on the drive. Now some operating systems have a buffer for file operations to make programs work faster. So your program is not directly reading or writing to the drive, it’s actually reading and writing to RAM temporarily and then the OS commits any changes to the drive. If you have a delayed write in memory that’s not been committed and you yank the drive you run the risk of corrupting the file on the drive and a very minimal chance at Operating system or application corruption for the failed write. You can change the delayed write settings but the trade off is speed. The risk to damaging your usb drive or computer is pretty low overall. I’ve only ever corrupted one drive this way in the last 20 years

You are viewing 1 out of 30 answers, click here to view all answers.