Best place for hdparm tweaks?

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

Best place for hdparm tweaks?

Postby funkster1 on Fri Apr 11, 2008 4:51 pm

Good evening y'all,

I've been wondering where best to put my hdparm.conf file or general hdparm tweaks.
So I have edited the hdparm.conf found in '/etc', but I don't know if I should put it maybe in
'rcx.d or even elsewhere.
Basically I want the following commands to be executed at start time:

  • hdparm -q -u1 -q -c1 -q -d1 -q -k1 /dev/hdb
  • hdparm -q -S0 /dev/sda /dev/sdb
  • hdparm -q -m16 -q -c3 -q -k1 -q -d1 -q -u1 -q -S0 /dev/hda /dev/hdc /dev/hdd
So somebody enlighten me please :D

TIA
Raphael ;)

P.S.: the way it's configured right now in '/etc/hdparm.conf' is as follows (if that is relevant somehow)

Code: Select all
command_line {
       hdparm -q -m16 -q -c3 -q -k1 -q -d1 -q -u1 -q -S0 /dev/hda /dev/hdc /dev/hdd
}

command_line {
   hdparm -q -S0 /dev/sda /dev/sdb
}

command_line {
   hdparm -q -u1 -q -c1 -q -d1 -q -k1 /dev/hdb
}
"A mind is like a parachute -
It doesnt work if it's not open."

|- - - - - - - Frank Zappa - - - - - - -|
User avatar
funkster1
Level 1
Level 1
 
Posts: 8
Joined: Fri Feb 22, 2008 6:27 am
Location: on the funky side of life

Linux Mint is funded by ads and donations.
 

Re: Best place for hdparm tweaks?

Postby ed@Mint on Fri Apr 11, 2008 5:29 pm

According to this
Editing your /etc/hdparm.conf file should be enough.
(this is a Gentoo guide so their /etc/conf.d/hdparm is our /etc/hdparm.conf)

At least this is how i understand it :wink:
In libro veritas

Now switched to : ArchLinux

New users, read the Linux Mint User Guide | Problem ? See the Wiki first | Check out the Software Portal | Join the IRC channel : #linuxmint @ irc.spotchat.org
User avatar
ed@Mint
Level 5
Level 5
 
Posts: 565
Joined: Sun Mar 09, 2008 6:03 pm
Location: Liege, Belgium

Re: Best place for hdparm tweaks?

Postby funkster1 on Sat Apr 12, 2008 12:11 pm

Thanks a lot Ed.
So I had it all set correctly 8)

Raphael ;)
"A mind is like a parachute -
It doesnt work if it's not open."

|- - - - - - - Frank Zappa - - - - - - -|
User avatar
funkster1
Level 1
Level 1
 
Posts: 8
Joined: Fri Feb 22, 2008 6:27 am
Location: on the funky side of life

Re: Best place for hdparm tweaks?

Postby Husse on Sat Apr 12, 2008 6:41 pm

Tinkering with hdparm can cause physical damage to your hard drive!
This is one of the few softwares that can do physical damage so it should be used with utmost care
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19714
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Best place for hdparm tweaks?

Postby ed@Mint on Sat Apr 12, 2008 6:50 pm

You're right to point that out, Husse.
In this case, i assumed funkster1 is aware of this since he came straight with an accurate list of the options he wanted to set up.
But this warning is worth being remembered and it costs nothing to do so.
I'll try not to forget it any more in the following posts concerning 'dangerous' commands :wink:
In libro veritas

Now switched to : ArchLinux

New users, read the Linux Mint User Guide | Problem ? See the Wiki first | Check out the Software Portal | Join the IRC channel : #linuxmint @ irc.spotchat.org
User avatar
ed@Mint
Level 5
Level 5
 
Posts: 565
Joined: Sun Mar 09, 2008 6:03 pm
Location: Liege, Belgium

Re: Best place for hdparm tweaks?

Postby funkster1 on Mon Apr 14, 2008 2:02 pm

Yup, you're both right guys. The fact that it can damage your HDD's should be taken into serious/sincere consideration.
And yes, I am (was) well aware of this fact, as I've spent a considerable amount of time with the man pages of hdparm, researching other options/solutions/cautions to the effect online etc. Also, I've done some considerable testing on my system before goingwith these commands

So note to anybody else, DON'T USE the code I have pasted, since they're only good for MY OWN system.

Cheers
Raphael ;)
"A mind is like a parachute -
It doesnt work if it's not open."

|- - - - - - - Frank Zappa - - - - - - -|
User avatar
funkster1
Level 1
Level 1
 
Posts: 8
Joined: Fri Feb 22, 2008 6:27 am
Location: on the funky side of life


Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 29 guests