The file managers present in Linux Mint Cinnamon and MATE not only allow you to unmount external drives, but give you the option to "Safely remove" the drives as well, something not present in every Linux distribution.
When I unmount my external hard drive (powered via USB), its indicator light remains lit and I can still hear it spinning. When I "Safely remove" the drive, the light turns off and the disc stops spinning.
How can I accomplish this same thing via the terminal? As a side question, is this functionality as simple as unmount drive > kill power
or is there something more complicated or sophisticated going on behind the scenes? Is this safer than only unmounting the drive and pulling the USB plug out?
umount
so I would agree to your assumption that this is nothing more than "unmount drive + kill power"" – Hauke Laging Aug 19 '17 at 10:41window managers
useudisks
or something similar that work withoutroot
? – Arkadiusz Drabczyk Aug 19 '17 at 12:46eject
under the hood, which itself callsumount
. You might see if that replicates the spin-down behavior – Fox Aug 19 '17 at 19:57