On Tue, 26 Feb 2002, Christoph Kukulies wrote:
> I configured a kernel (RH 6.1) 2.2.17-14 to have
> IDE-SCSI built in and I believe all that's necessary
> for cdrecord (1.8a29).
> 
> Under root I can cdrecord -scanbus and I get 
> # cdrecord -scanbus
> Cdrecord release 1.8a29 Copyright (C) 1995-1999 Jörg Schilling
> Using libscg version 'schily-0.1'
> scsibus0:
>         0,0,0     0) 'LITE-ON ' 'LTR-12101B      ' 'LS38' Removable CD-ROM
>         0,1,0     1) *
>         0,2,0     2) *
>         0,3,0     3) *
>         0,4,0     4) *
>         0,5,0     5) *
>         0,6,0     6) *
>         0,7,0     7) *
> 
> I also have linked /dev/scd0 to /dev/sg0
> lrwxrwxrwx   1 root     root            9 Feb 26 12:52 /dev/sg0 -> /dev/scd0

The sg and scd (sr) are _different_ devices.
They have different major numbers:
sg*: 21
sr*: 11
Also, the sg are character devices while sr are block devices.

> 
> I gave scd0 group cdwriter membership and I belong to this group too.
> WHen I now do cdrecord -scanbus under my normal user role I get this:
> cdrecord -scanbus
> Cdrecord release 1.8a29 Copyright (C) 1995-1999 Jörg Schilling
> cdrecord: Permission denied. Cannot open '/dev/sg1'. Cannot open SCSI driver.
> 
> It is funny that when I satisfy now sg1 to be linked to scd1 
> that cdrecord goes one higher and claims it cannot open sg2 ans so on.

Delete all symlinks between the scd (sr) and sg devices and do a:

for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ; do
        mknod -m <preferred-permissions> /dev/sg$i c 21 $i
done

Extend the list of minor device numbers to suffice your needs.

You probably have a MAKEDEV script somewhere around...?

> 
> Any clues?
> 
> -- 
> Chris Christoph P. U. Kukulies [EMAIL PROTECTED]


HTH

Regards

        Carsten


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to