Operating Systems > Linux and UNIX

/etc/rc.d and hdparm

(1/2) > >>

TheQuirk:
I set my compuper's hard drive thing optimized with the following command:

# hdparm -c3 -m16 -X34 -d1 -u1 /dev/hda

My question is will these settings be there when I reboot? If not, what do I do to make this command run every time I reboot? I know I need to stick it somewhere in /etc/rc.d/*, but that's about it. Help!

KernelPanic:

quote:Originally posted by TheQuirk:
I set my compuper's hard drive thing optimized with the following command:

# hdparm -c3 -m16 -X34 -d1 -u1 /dev/hda

My question is will these settings be there when I reboot? If not, what do I do to make this command run every time I reboot? I know I need to stick it somewhere in /etc/rc.d/*, but that's about it. Help!
--- End quote ---


Somewhere after your filesystem checks

TheQuirk:

quote:Originally posted by Tux:


Somewhere after your filesystem checks
--- End quote ---


Can you be a bit more specific? I know what you mean, but where would I stick it? I don't know anything about rc.d.... This is Red-Hat 7.2, BTW.

KernelPanic:
At the end of /etc/rc.d/rc.sysinit put this:

# Optimise /dev/hda transfers
hdparm -c3 -m16 -X34 -d1 -u1 /dev/hda
echo "/dev/hda optimised!"

That should work, but I am no RedHat buff.
The init scripts are just bash scripts so they're not difficult to look through.

Master of Reality:
just put that line in "/etc/rc.d/rc.local"
(void main's probably gonna tell me to shut the fuck up or somethin..)

[ December 21, 2002: Message edited by: The Master of Reality / B0b ]

Navigation

[0] Message Index

[#] Next page

Go to full version