Besides putting hdparm options in /etc/rc.local, is there a configuration file in which I can put the options I want to apply for each of my drives? There used to be a way with /etc/sysconfig/harddiskshdn, but the code needed to read these files has been removed from /etc/rc.d/rc.sysinit in
initscripts-8.11.1-1. Why is that?<br><br>Here's the code missing from /etc/rc.d/rc.sysinit. I found it in my /etc/rc.d/rc.sysinit.rpmsave.<br><br># Turn on harddisk optimization<br># There is only one file /etc/sysconfig/harddisks for all disks
<br># after installing the hdparm-RPM. If you need different hdparm parameters<br># for each of your disks, copy /etc/sysconfig/harddisks to<br># /etc/sysconfig/harddiskhda (hdb, hdc...) and modify it.<br># Each disk which has no special parameters will use the defaults.
<br># Each non-disk which has no special parameters will be ignored.<br># <br> <br>disk[0]=s;<br>disk[1]=hda; disk[2]=hdb; disk[3]=hdc; disk[4]=hdd;<br>disk[5]=hde; disk[6]=hdf; disk[7]=hdg; disk[8]=hdh;<br>disk[9]=hdi; disk[10]=hdj; disk[11]=hdk; disk[12]=hdl;
<br>disk[13]=hdm; disk[14]=hdn; disk[15]=hdo; disk[16]=hdp;<br>disk[17]=hdq; disk[18]=hdr; disk[19]=hds; disk[20]=hdt;<br> <br> <br>if [ -x /sbin/hdparm ]; then<br> for device in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
<br> unset MULTIPLE_IO USE_DMA EIDE_32BIT LOOKAHEAD EXTRA_PARAMS<br> if [ -f /etc/sysconfig/harddisk${disk[$device]} ]; then<br> . /etc/sysconfig/harddisk${disk[$device]}<br> HDFLAGS[$device]=
<br> if [ -n "$MULTIPLE_IO" ]; then<br> HDFLAGS[$device]="-q -m$MULTIPLE_IO"<br> fi<br> if [ -n "$USE_DMA" ]; then<br> HDFLAGS[$device]="${HDFLAGS[$device]} -q -d$USE_DMA"
<br> fi<br> if [ -n "$EIDE_32BIT" ]; then<br> HDFLAGS[$device]="${HDFLAGS[$device]} -q -c$EIDE_32BIT"<br> fi<br> if [ -n "$LOOKAHEAD" ]; then
<br> HDFLAGS[$device]="${HDFLAGS[$device]} -q -A$LOOKAHEAD"<br> fi<br> if [ -n "$EXTRA_PARAMS" ]; then<br> HDFLAGS[$device]="${HDFLAGS[$device]} $EXTRA_PARAMS"
<br> fi<br> else<br> HDFLAGS[$device]="${HDFLAGS[0]}"<br> fi<br> if [ -e "/proc/ide/${disk[$device]}/media" ]; then<br> hdmedia=`cat /proc/ide/${disk[$device]}/media`
<br> if [ "$hdmedia" = "disk" -o -f "/etc/sysconfig/harddisk${disk[$device]}" ]; then<br> if [ -n "${HDFLAGS[$device]}" ]; then<br> action $"Setting hard drive parameters for ${disk[$device]}: " /sbin/hdparm ${HDFLAGS[$device]} /dev/${disk[$device]}
<br> fi<br> fi<br> fi<br> done<br>fi<br><br>