On Thu, 18 Oct 2001, Michael Schwendt wrote:
> On 2001-10-18, Mikkel L. Ellertson wrote:
>
> >you have to be root for. Loading modules has nothing to do with the
> >user running the program, and everythig to do with how things are set up
> >in /etc/modules.conf. You could try adding something like
> >"alias char-major-11 sr_mod" or alias char-major-21 sg". You may also
> >need something like "alias scsi_hostadapter ide-scsi", but I am not
> >sure. I use a SCSI CD-RW, so I have an alias for the SCSI controller.
>
> I have "alias scd0 sr_mod", but it tries to access /dev/pg0,
> which is the first parallel port ATAPI device. Any idea why
> it does that?
>
Not off hand. I would have to see your modules.conf file, and what
symlinks you have set up in /dev. /etc/cdrecord may also provide a clue
to what is going on. I have found that "alias scd0 sr_mod" does not
work as well as "alias char-major-11 sr_mod" for some reasion. You will
also find that cdrecord is using /dev/sga (sg0 is a symlink to sga) if
you have only one SCSI device. This is because writing used the generic
SCSI device, and not the SCSI CDROM device for writing.
One way to make sure it uses the correct device is to pass the device to
cdrecord on the command line. What I have done is creat a few batch
files for burning CD. The set the device and burn speed for me. Here
is an example.
#!/bin/bash
#
# Burn a CD from the file name given on the command line.
SPEED=4
WRITER=/dev/sgb
if [ -z $1 ] ; then
echo Usage $0 cdimage
exit 1
fi
cdrecord -isosize -v dev=$WRITER speed=$SPEED $1
A better example is of the same thing is:
#!/bin/bash
#
# Burn a CD from the file name given on the command line.
#
. /usr/local/etc/cdrecord
if [ -z $1 ] ; then
echo Usage $0 cdimage
exit 1
fi
cdrecord -isosize -v dev=$WRITER speed=$SPEED $1
/usr/local/etc/cdrecord sets WRITER and SPEED, so I only have to change
it one place for all my scripts.
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list