Koozali.org: home of the SME Server

Ide Bus speed

Offline sits

  • ***
  • 68
  • +0/-0
Ide Bus speed
« on: October 13, 2005, 05:17:50 AM »
How do you change the default IDE Bus Speed from 33Mhz to 66 or 100?

standard install assumes 33 bus speed but most motherboards and drives support more

What commands are available to do this

there is a append statment for lilo.conf but i don't know where in the file to place it

any help would be great
...

boss_hog

Ide Bus speed
« Reply #1 on: October 13, 2005, 03:21:44 PM »
Hey sits,
if your system boots from lilo:
append="idebus=66"
can be added.
If you boot from grub.conf you need to add:
idebus=66
to the kernel line.
Do a search and you can add a custom template to do this.
Good luck
Joe

Offline sits

  • ***
  • 68
  • +0/-0
Ide Bus speed
« Reply #2 on: October 13, 2005, 05:58:07 PM »
Hi boss

I tried that but dmesg still said that assuming 33 Mhz as default

I found a link on contribs about Maximize your HD with HDPARM by Kruhm. this seems to do the job,

dmesg now reports it using UDMA 100
but will still need to do some file transfers to test it. I will report back after testing

Thanks
...

boss_hog

Ide Bus speed
« Reply #3 on: October 13, 2005, 06:40:40 PM »
Hey sits,
if your system is using lilo,
 then you need to run "lilo" from
the command line for the changes to stick.
Good luck
Joe

Offline sits

  • ***
  • 68
  • +0/-0
Ide Bus speed
« Reply #4 on: October 14, 2005, 12:51:44 AM »
#KEEP SETTINGS
You can test your settings but during reboot the settings don't keep.
We have to put them in /etc/sysconfig/harddisks in the 'EXTRA_PARAMS' line
EXTRA_PARAMS="-m16 -c3 -u1 -d1 -X69 -W1"

#REBOOT
/sbin/e-smith/signal-event reboot

#FINAL TEST
Test to see if settings kept
hdparm /dev/hdX

Doing this has kept the settings
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Ide Bus speed
« Reply #5 on: October 14, 2005, 08:48:20 PM »
Quote from: "sits"
#KEEP SETTINGS
You can test your settings but during reboot the settings don't keep.
We have to put them in /etc/sysconfig/harddisks in the 'EXTRA_PARAMS' line
EXTRA_PARAMS="-m16 -c3 -u1 -d1 -X69 -W1"

...


You can put specific settings for different hard drives in

/etc/sysconfig/harddiskhda
/etc/sysconfig/harddiskhdb
...
/etc/sysconfig/harddiskhdg

Offline brianr

  • *
  • 990
  • +2/-0
Ide Bus speed
« Reply #6 on: October 20, 2005, 12:22:14 PM »
I generall just put:

hdparm /d1 /dev/hda
and
hdparm /d1 /dev/hdc

in /etc/rc.d/rc.local
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Ide Bus speed
« Reply #7 on: October 20, 2005, 06:27:19 PM »
Quote from: "brianr"
I generall just put:

hdparm /d1 /dev/hda
and
hdparm /d1 /dev/hdc

in /etc/rc.d/rc.local


It would be better if you didn't edit rc.local. Instead, you could just do:

cat > /etc/e-smith/events/local/S10hdparm <<EOF
#! /bin/sh

hdparm /d1 /dev/hda
hdparm /d1 /dev/hdc
EOF
chmod +x /etc/e-smith/events/local/S10hdparm

[although I don't know why that would be any better than creating /etc/sysconfig/harddiskhda and /etc/sysconfig/harddiskhdc.]