Put the drive into idle (low-power) mode, also setting its standby timeout

hdparm

sudo hdparm -S {{standby_timeout}} {{device}}

click the source code to copy install hdparm on any operating system with command-not-found.com