Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: mbachmann on October 04, 2004, 09:33:17 AM

Title: hdparm -keepsettings over reboot
Post by: mbachmann on October 04, 2004, 09:33:17 AM
Raid 1 running, want to make hdparm 32 bit access mode permanent.

Issued:
Code: [Select]
hdparm -k 1 -K 1 /dev/hda
hdparm -k 1 -K 1 /dev/hdc
hdparm -c 1 /dev/hda
hdparm -c 1 /dev/hdc

Result:
Code: [Select]
hdparm /dev/hda
hdparm /dev/hdc

I/O support  =  1 (32-bit)
...
using_dma    =  1 (on)
keepsettings =  1 (on)
...
After reboot it does not keep settings:
Code: [Select]
hdparm /dev/hda
hdparm /dev/hdc

I/O support  =  0 (16-bit)

Howto keep 32 bit access mode over reboot?
Title: hdparm -keepsettings over reboot
Post by: byte on October 04, 2004, 01:39:27 PM
Not really a SME question  8-)  but anyhow...The drives get reinitialised by the BIOS and by Linux on each boot so you will need to set hdparm each time...

Maybe a script is the way to go :-) or just place in the rc.local
Title: hdparm -keepsettings over reboot
Post by: duncan on October 04, 2004, 01:48:39 PM
Or /etc/sysconfig/harddisks
Title: hdparm -keepsettings over reboot
Post by: mbachmann on October 04, 2004, 03:58:59 PM
Thx to both, good old script solved it. Was just so square-headed that i thought keepsettings must keep the settings.
Title: hdparm -keepsettings over reboot
Post by: jcoleman on October 04, 2004, 11:21:57 PM
Take a look at this....

http://mirror.contribs.org/smeserver/contribs/dmay/mitel/howto/hdparm-howto.html

-jeff
Title: hdparm -keepsettings over reboot
Post by: mbachmann on October 05, 2004, 10:39:39 AM
Right, jcoleman - 32 bit access mode was already enabled, it just did not kept the settings over reboot.
Title: hdparm -keepsettings over reboot
Post by: CharlieBrady on October 05, 2004, 08:17:45 PM
Quote from: "jcoleman"
Take a look at this....

http://mirror.contribs.org/smeserver/contribs/dmay/mitel/howto/hdparm-howto.html

-jeff


That HOWTO is obsolete. /etc/sysconfig/harddisks or /etc/sysconfig/harddiskhda etc is the way to do it now.
Title: hdparm -keepsettings over reboot
Post by: mbachmann on January 19, 2005, 05:38:08 PM
Just adding in /etc/sysconfig/harddisks

EXTRA_PARAMS=
-c 1

will provide keeping 32 bit I/O access over reboot.
Title: hdparm -keepsettings over reboot
Post by: kruhm on July 05, 2005, 06:54:06 PM
There doesn't seem to be to much documentation on this or maybe i'm looking in the wrong place.
Why would you use:
Quote
EXTRA_PARAMS= -c 1

instead of the line that is already there:
Quote
EIDE_32BIT=3

Or maybe it doesn't matter since it seems like they would both do the same thing.