You are not logged in.

#1 2014-12-26 07:14:04

Degru
Member
Registered: 2013-10-03
Posts: 41

How do I automatically put all spinning disks to sleep on boot time?

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

#2 2014-12-26 07:37:56

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: How do I automatically put all spinning disks to sleep on boot time?

Here's 2 methods to identify the drive.

Offline

Board footer

Powered by FluxBB