I had always guessed that hitting the eject button in a file manager would be the equivalent of the Windows "safely remove hardware" function for drives. However I notice that hitting eject for drives in Ubuntu does not actually stop the hard drives from spinning, but in Windows the function causes the drive to come to a complete stop. Is there something else I should be doing before removing drives in Ubuntu? Or is the eject function the correct method for Ubuntu?
Ubuntu – Equivalent to “safely remove hardware” in Windows
driveeject
Best Answer
In MATE at least it seems clicking the eject button just unmounts the device. To unmount and power off the drive on the command line, you can use
udisksctl
First list the drives with
lsblk
I want to remove the drive
/dev/sdb
so I would do