Sample Header Ad - 728x90

Command line equivalent to "Safely remove drive"?

12 votes
6 answers
24592 views
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?
Asked by ArdentCertes (345 rep)
Aug 19, 2017, 10:17 AM
Last activity: Apr 3, 2024, 11:48 PM