Is there a way to actually send an eject to a USB device in Raspbian? As in:
sudo udisks --eject /dev/sda
In other Debian systems, this works fine. But on the Pi there seems to be complications.
I have specific hardware that requires eject. So unfortunately unmount and "safely remove" type answers are not helpful for me in this case.
Also, I noticed that the Raspbian file manager has an eject icon next to USB devices. While this works fine on Ubuntu, even this built in service is not performing the eject service and gives error messages.
Is anyone else able to perform an eject without an error message?
sda1
is a partition,sda
is a device. You can unmount a partition, but you cannot eject a partition. – Seamus Mar 24 '19 at 19:24udisks
isn't available on buster. Can someone add an answer withsudo apt install eject -y && sudo eject /dev/sda
for buster users? – Kyle Mar 27 '20 at 12:35