Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] HDD with too aggressive power management
Date: Mon, 31 Jan 2011 22:13:50
Message-Id: AANLkTinH9d-cD49vjfm-g38tYNJigxjz9KtibQCgabZV@mail.gmail.com
In Reply to: [gentoo-user] HDD with too aggressive power management by Nils Holland
1 On Mon, Jan 31, 2011 at 3:09 PM, Nils Holland <nhg@×××××.org> wrote:
2 > Of course, manually executing "hdparm -B 254 -S 0 /dev/sda" after
3 > unplugging the machine fixes the issue again. However, something more
4 > "automated" would be prefered.
5
6 I had the same problem. My solution was to edit /etc/conf.d/local and
7 add the command into the local_start() function (before the return):
8
9 local_start() {
10 # This is a good place to load any misc programs
11 # on startup (use &>/dev/null to hide output)
12
13 hdparm -B 254 /dev/sd[abcdef]
14
15 # We should always return 0
16 return 0
17 }
18
19
20 and it automatically "fixes" my drives when I reboot.