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

506 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

compared to the system memory in your computer, a USB stick is glaciouslly slow by several orders of magnitude. To help the user work faster and provide the appearance of speed, the system will write the data to a buffer in its memory. This is basically a tall tower that data is piled ontop of.

Over time, the system will take the bottom of the stack and write it onto the USB stick in whats called a flush operation. This will happen at various speeds depending on what your doing with the drive. If your constantly reading/writing files off of the drive, the system will try and optimize the workload by keeping it all in memory and only flushing content that stopped being touched. If your just copying files onto the drive, the system may try and flush that buffer as quickly as possible because its expected that your probably going to remove it after your done.

If you remove the USB stick while there is still a buffer of data that needs to be written, it will never make it to the USB drive. This will result in corrupted files like videos that dont play, text files with missing content, files that dont read, etc.

When you tell them system you want to safely eject, it will go through those buffers and flush it out as fast as possible so all the files are actually where you requested them to be.

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