On Tue, 2003-03-18 at 07:17, Michael Halcrow wrote:
> 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
ok--I did that, the /etc/modules.conf file now has "options ide-cd
dma=1" typed in at the end.
> 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.
I tried to run the hdparm function from the terminal window and it told
me that it wasn't found--it gave me this error:

bash: hdparm: command not found

So, I used apt-get install hdparm and I was told I already had the
program installed.

 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

I looked in the /dev directory and there are a ton of hd* files/programs
in it...suggestions?

> 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



______________________________________
Inflex Virus Scanner - installed on mailserver for domain @et.byu.edu
Queries to: [EMAIL PROTECTED]

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to