hdparm
It is a program used for managing hard disk parameters, like spinning it down https://wiki.archlinux.org/title/hdparm
✅
hdparmParameters (for your notes)
Command Description -B 254Sets APM (Advanced Power Management) to disable head parking (max performance) -S 60Sets spindown timeout to 5 minutes (60 × 5 sec = 300 sec) -I /dev/sdXShows detailed disk info (including current APM level, spindown) -yForces immediate spindown (for testing) -CChecks current power state (active/standby)
🛠️
/etc/hdparm.confExampleini
CopyEdit
/dev/sdb { apm = 254 spindown_time = 60 }
apm = 254→ disables head parking
spindown_time = 60→ spin down after 5 min idleYou can repeat the block for multiple drives (
/dev/sda,/dev/sdc, etc).Recommendation: A Better Way to Spin Down USB Drives
Instead of the low-level
hdparm, you should use the modernudisksctlutility, which works at a higher level and is designed to handle various connection types, including USB.To spin down (power off the spindle of) your drive, use udisksctl:
Link to originaludisksctl power-off -b /dev/sdd