l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:02

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] hdparm
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] hdparm

On Fri 16 Mar 01,  5:10 PM, Stephen M. Helms said: 
> Where do I setup the boot options for a hard disk?  I have checked the
> kernel HOW-TO and man bootparam.  I have been using the following values
> with hdparm successfully:
> hdparm -c1m16u1X34W1 /dev/hda
be careful if this is a pentium I system.

> Everytime I reboot I have to reset the setting.
perfect application for a startup boot script.  i use debian exclusively.
in /etc/rc.boot, you can put your localized startup scripts and not have to
bother making them fullblown scripts usable by start-stop-daemon function.

# pwd

# ls
hdparm*  runme*

# cat hdparm
#! /bin/bash

echo -n "Enabling High Speed Disk I/O..."
  exec &> /dev/null   # send out all stdout for this process to /dev/null.
  /sbin/hdparm -c 1 -u 1 -d 1 -m 16 /dev/hda
  /sbin/hdparm -c 1 -u 1 -d 1 -m 16 /dev/hdb
  /sbin/hdparm -c 1 -u 1 -d 1 -m 16 /dev/hdc
  /sbin/hdparm -c 1 -u 1 -d 1 -m 16 /dev/hdd
echo " done"

if you're interested, i set up my MTRR's with the very aptly named "readme"
script for my quake3 playing pleasure:

# cat runme

# old:
# reg00: base=0x00000000 (   0MB), size= 128MB: write-back, count=1
# reg01: base=0xe8000000 (3712MB), size=  16MB: write-combining, count=1
# new:
# reg00: base=0x00000000 (   0MB), size= 128MB: write-back, count=1
# reg01: base=0xe8000000 (3712MB), size=  64MB: write-combining, count=1
# 3Dfx Voodoo5 rev 1, Mem @ 0xe0000000/26, 0xe8000000/27, I/O @ 0x9000/8
# 3Dfx Voodoo5 rev 1, Mem @ 0xf8000000/27, 0xf8000000/27, I/O @ 0xfffffe00/8
echo -n "Setting up the MTRR..."
echo "base=0xe8000000 size=0x4000000 type=write-combining" >| /proc/mtrr
echo "  done"


ps- just got ibm's commercial viavoice product.  don't be surprised if you
see me start to post emails with capitalization enabled...  ;)

"Coffee... I've conquered the Borg on coffee!"               p@dirac.org
       -- Kathryn Janeway on the virtues of coffee           www.dirac.org/p

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.