Before you eject a USB drive, let us know the technical reason behind ejecting it
Need to eject a USB or flash drive or a Pen drive before removing it as everyone knows? Is one of the problems we all have.
If you ask a few people this question, most of the time someone wants an answer like. “No problem, I will never eject”. But then why is there such an option in the operating system? This is what we are going to talk about today.
We all know that the Eject (mass storage device) option that we see in the computer operating system does not actually disconnect the device physically.
So what really happens through this option is that we simply tell the operating system to finish all the work with this device. Stop the connection and bring it back to a state where it can actually be physically disconnected (unplugged).
However, if you ask a technical advisor about this, they will say, “If we copy something to a drive, that data can be corrupted,” but the main question that comes to our mind at the time is, “If we do not copy anything, would it be okay to save it?” I do not know what to say.
To understand this exactly we need to have a rough idea on. How an operating system works with this type of drive.
Windows computers usually use write caching technology to increase the performance of a flash drive. In this case, if you have several files on the drive open by several programs to speed up the saving of the relevant files, the changes made to these files are stored in RAM, and finally when the time comes to transfer the data to the relevant drive to write.
Imagine you are opening a PowerPoint presentation and a Word document at the same time. So if you save both these files at the same time. The operating system will have to save the two files separately at the same time.
Since RAM is much faster than a flash drive. You can see that copying and pasting these two files from drive to RAM can greatly improve the time it takes to save.
So that’s what happens with this write caching technology. However, in Windows, this option is disabled in the default settings. Therefore, if you try to remove a flash drive on a Windows computer, there is a low probability of data corruption.
But this is a little different on one like Linux or macOS. Because this technology called Write Caching is enabled by default in these operating systems.
Sometimes if you are using Linux, you know from experience that a file has been copied by the operating system. But if we try to remove the drive immediately, the file will be corrupted.
Also, if you look closely, you will see that even after the file copy dialog is closed, the LED light on the flash drive will blink. Blinking of this light means that the drive is still being used by the operating system.
Now, if we talk about our main problem. The option called eject, as soon as we click on the option called eject, all the data stored in the RAM I mentioned earlier will be written to the relevant drive and the operating system will terminate the connection with the relevant drive.
It is only after all that is over that the operating system works to show us this message that we often see.
So whether you are a Windows user or a Linux or macOS user, it is important to know that if your data is really valuable, it is important to use this eject option with a few extra clicks and a few seconds.
Also, if you pay attention to the LED light in the relevant drive, you can get a rough idea of whether the device is being used by the system at the moment.
Now I hope you have a simple idea about this eject option and why it is important.
Maybe you know more about this. So if you have any questions or concerns, please feel free to contact our Community.
To get to know about the Apple event “Time Flies” – Greatest 9 announcements
To get to know about Annual Apple Event “Time Flies” !!! 2020
get updates on more technology click here to visit our site..