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
/etc/rc.boot

# 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
#!/bin/sh

# 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"


pete


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!"               [EMAIL PROTECTED]
       -- Kathryn Janeway on the virtues of coffee           www.dirac.org/p

Reply via email to