Does "Stopping" USB drives actually affect the drive?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping
--
Chapters
00:00 Does &Quot;Stopping&Quot; Usb Drives Actually Affect The Drive?
00:31 Answer 1 Score 3
00:46 Accepted Answer Score 74
01:21 Answer 3 Score 8
01:59 Thank you
--
Full question
https://superuser.com/questions/357815/d...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #usbflashdrive #datatransfer
#avk47
ACCEPTED ANSWER
Score 74
This depends on what settings you have set for the drive. For instance, if you look in the device manager for the disk drive itself, you'll see something like this:
If you have the first option (quick removal) selected, then ejecting the drive merely unmounts the partition, and no longer allows programs to access the drive.
If you choose the second option (better performance), then ejecting the drive flushes any caches the OS has in memory, unmounts the filesystem (which may also flush a few buffers), and flushes on-device buffers.
ANSWER 2
Score 8
The new data is not instantly saved to USB drive, it's stored in RAM for some time. The primary motivation of that appoarch is to gain some performance on pages repeatedly rewritten in place.
So, by unplugging unsafely you have some risk that recently written pages temporarily kept in RAM will never reach the disk.
This may affect not only data, but metadata too - entire directories may disappear, show garbage etc. It's less likely to happen on NTFS, as NTFS has transaction log for the metadata. So on NTFS you just corrupt user data in files and have metadata changes rolled back if you're unlucky on unsafe unplug.
ANSWER 3
Score 3
Exactly, this is all this does. It flushes all buffers and ensures nothing can access the USB drive anymore by disconnecting it from the system.