Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

Advanced users • Re: USB unmounting

$
0
0
How big of a problem is not unmounting in 2025?
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.
Is there a way to cause an unmount in this process without end user intervention?
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.

Statistics: Posted by JinShil — Sun Mar 23, 2025 7:45 am



Viewing all articles
Browse latest Browse all 8041

Trending Articles