Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: sits on October 13, 2005, 05:17:50 AM

Title: Ide Bus speed
Post by: sits 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
Title: Ide Bus speed
Post by: boss_hog 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
Title: Ide Bus speed
Post by: sits 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
Title: Ide Bus speed
Post by: boss_hog 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
Title: Ide Bus speed
Post by: sits 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
Title: Ide Bus speed
Post by: CharlieBrady 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
Title: Ide Bus speed
Post by: brianr 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
Title: Ide Bus speed
Post by: CharlieBrady 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.]