After basic installation of Arch Linux, when you unmount external drives (an hard disk or a USB key), they don’t shutdown completely, but they simple stop working, while disks continue to run.
If you are particularly finicky, and you would like to power off the device before to unplug it, you need to put in low-power your device. To do this, you have to install the
This CLI tool is very simple to use (
/dev/sdb1 is the path of my device):
to check the current IDE power mode status.
to put the drive into idle (low-power) mode, and also set the standby (spindown) timeout for the drive.
to force an IDE drive to immediately enter the low-power consumption standby.
However, write root password every time to run
hdparm command might be uncomfortable. Thus, you have to digit in a terminal:
and add the command
hdparm to the following line of script (at the end of the file):
I use this trick with a lot of command as
But, if you are very very lazy, you might want to write less code as possible. So you can avoid to write
sudo, creating the
.bash_aliases file in your home. Following, I show you my
To enable this configuration you have to load the changes to the
.bash_aliases file as following:
To enable your aliases at start up, put the previous command in your