As far as I'm aware, it depends on the size of the data, the speed of the drive, and how quickly the USB host can write the data to the disk. If that can happen in milliseconds, it's probably OK to just unplug. However, if you try with a file that's a few hundred MBs, then I think it will be pretty easy to corrupt things when unplugging.How big of a problem is not unmounting in 2025?
After `sync`, does `eject /dev/sda` (or whatever your USB device is named) work? Then I suggest displaying some visual indicator to the user that the drive is safe to unplug.Is there a way to cause an unmount in this process without end user intervention?
Statistics: Posted by JinShil — Sun Mar 23, 2025 7:45 am