On 03/09/2024 00:11, The Wanderer wrote:
On 2024-09-02 at 12:51, Lee wrote:
On Mon, Sep 2, 2024 at 5:25 AM Thomas Schmitt wrote:
MS-Windows can eject a stick ?
[...]
(Sorry i could not refrain from this nonsense :))
but it isn't nonsense. Welcome to the world of Windowz, where one
'ejects' a USB stick and then gets a pop-up saying something about
safe to remove the hardware now.
[...]
My understanding is that when you tell Windows to "eject" removable
media, it does whatever is necessary to prepare that media for clean
removal.
GNOME uses "eject" as well:
<https://help.gnome.org/users/gnome-help/stable/files-removedrive.html.en>
So users should be familiar with the word in this particular context.
I have always treated the *nix equivalent to "eject", for the purpose of
a USB flash drive, as being 'umount /path/to/mount/location' - which, if
I'm not mistaken, does include an implicit sync operation.
Dolphin (KDE) "Safely remove" additionally switches off power on the USB
port. In the case of CLI it is
udisksctl power-off -b /dev/sdb
(or uhubctl, direct writing to /sys/bus/usb/devices/**/power, etc.)
I find it a reasonable measure in the case of a spinning external HDD to
ensure that it is stopped. Another rule is to unplug it from the laptop
USB port at first (without touching HDD) and only then detach the cable
from the HDD case.