Shutdown external drive
- Shutdown my (backup) hard disk on Linux when I don’t use it - Unix & Linux Stack Exchange
- after 5 seconds of idling, shutdown the drive (no more noise!)
hdparm -S 1 /dev/sdb
hd-idle
sudo apt install hd-idle
sudo nano /etc/default/hd-idle # Config: Set -i to e.g. 60 seconds
sudo systemctl enable hd-idle
sudo systemctl start hd-idle