On Mon, 2003-03-17 at 22:02, Matt Pittard wrote:
> Ok--I've successfully found the /etc/modules.conf file and have opened
> it with gedit under root. I'm just a little curious--do I add both the
> lines to the existing file or just the first and then type the second in
> a terminal window?

/etc/modules.conf contains parameters for loading modules. You do not
place shell commands there. Thus, you might include ``options ide-cd
dma=1'' in modules.conf, since that is a module parameter. On the other
hand, ``hdparm'' is a command that is to be executed from the shell. You
would put that in a startup script. I don't know about RedHat, but a
startup script in Debian can be created in ``/etc/rc.boot''; the
filename should not have a ``.'' in it, or it will not be executed. You
might create a file named ``turnondvddma'' that has executable
permissions in that directory, and include the lines ``#!/bin/sh'' and
``hdparm -d 1 /dev/hdc'', if ``hdc'' is the block device for your
DVD-ROM. Of course, you can always test it by simply running ``hdparm''
from the terminal window beforehand and then playing a DVD to see if it
works, and then you can create the script to make your change permanent.
You can determine which block device is your DVD-ROM by cat'ing 
``/proc/ide/hdc/model'' and ``/proc/ide/hdd/model'' respectively
(querying the kernel), and seeing what the output is. For my system, I
get:

# cat /proc/ide/hdc/model   
CD-W54E
# cat /proc/ide/hdd/model
MATSHITADVD-ROM SR-8586

Which indicates that ``hdc'' is my CD-RW drive and ``hdd'' is my DVD-ROM
drive. Piece of cake, no?

Mike
-- 
---------------------------------------- | ------------------------
Michael Halcrow                          | [EMAIL PROTECTED]    
Research Assistant, Network Security Lab | Dept. of Comp. Science  
                                         | Brigham Young University
Nothing is ever a total loss; it can     |
always serve as a bad example.           |
---------------------------------------- | ------------------------
GnuPG Keyprint:  05B5 08A8 713A 64C1 D35D  2371 2D3C FDDA 3EB6 601D

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to