PDA

View Full Version : hdparm getting the setting to apply on re-boot


marks_linux
2004-07-04, 11:30 PM CDT
how do I get the follwing parameters to be applied each time I start my system?

hdparm -c 1 -d 1 -k 1 /dev/hda
hdparm -c 1 -d 1 -k 1 /dev/hdg

I've been running with these setting for a day or two with no probs so want to make them part of my startup

I looked in /etc/rc.d/rc-sysinit and theress a section mentioning hard disks and modifying the file /etc/sysconfig/harddisks
somehow I don't understand how to set the settings so to speak in this file.

Mark

marks_linux
2004-07-05, 06:33 PM CDT
anyone?

thanks
Mark

Viro
2004-07-05, 06:52 PM CDT
-d1 is equivalent to setting DMA to ON, so you should uncomment USE_DMA=1. Don't know about the other options so I guess they would go in the EXTRA_PARAMS section.

ghaefb
2004-07-05, 06:55 PM CDT
Append this two lines to /etc/rc.d/rc.local file.