You are not logged in.
I have Arch installed on a USB3 flash drive, and use it with various computers. I've found the HDD noise to be quite annoying sometimes. Is there a way to run "hdparm -Y /dev/sdX" on all spinning disks at boot time? I've simply run the command on /dev/sda manually on startup, but this sometimes doesn't work if there is more than one HDD in the computer, or for whatever reason the flash drive gets assigned /dev/sda instead of sdb (and I obviously don't want to turn off my flashdrive). Doing it manually is also a bother.
Is there some way to find all spinning hard drives and turn them off at boot time?
Offline
Here's 2 methods to identify the drive.
Offline