You are not logged in.

#1 2012-08-27 16:02:50

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

[Solved] hdparm.conf doesn't exist

So this is not really a huge issue, but I own a Momentus XT which I use for /home.  If you have ever read the issues faced with this drive, there are often complaints about the drives dying too fast due to spin down problems.  So I use hdparm to increase the advanced power management value (its 240 on my machine right now). 

I would like to make these settings persistent, but it seems that the typical hdparm package of other distros includes a /etc/hdparm.conf or /etc/conf.d/hdparm or something of that nature.  The arch hdarm man page indicates a quick reference to hdparm.conf, but it is not there.  I created it, but it does not seem to source it at all.  Is this normal for the Arch hdparm package?

If this is not the way to make persistent hdparm settings, then should I create a service file for it (btw I am using systemd if you didn't pick that up from teh last sentence)?  Any help would be appreciated, for I would like to do it in a sane/correct way (ie without reenabling the stoopid rc-local.service file I made).  Thanks community, you rock!

Last edited by WonderWoofy (2012-09-03 02:57:38)

Offline

#2 2012-09-03 02:57:20

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] hdparm.conf doesn't exist

I found this mailing list archive where Lennart Poettering reccomends using a udev rule to apply hdparm settings, only if necessary.  So I read up a little on udev rules and it seemed pretty easy... just use enough rules to ensure that my desired disk is present, and have it actually just run hdparm... seems easy enough.  Also, in order to make it persistent between suspends, I simple thre together a tiny script in ../systemd/system-sleep to reapply those settings.

http://www.mail-archive.com/systemd-dev … 05452.html

So this is solved enough that it is working...

Offline

Board footer

Powered by FluxBB