Thread: sr0? sg0?
View Single Post

   
  #2 (permalink)  
Old 02-20-2008, 08:50 AM
LiNuCe
 
Posts: n/a
Default Re: sr0? sg0?

Fri, 27 May 2005 08:39:29 +0200 - Niki Kovacs <mickey@mouse.com> :
> Hi,


Hello Mickey

> In a default configuration on 10.1, KAudioCreator has troubles
> accessing the CDROM (2.4.29 kernel, SCSI emulation activated).
>
> I've noticed that fiddling around with the permissions for /dev/sg0
> and /dev/sr0 solves the problem, although I don't understand why,
> and how.
>
> 1) What are these mysterious devices /dev/sr0 and /dev/sg0?


The sr0 and scd0 devices are SCSI CD-ROM/CD-RW devices. You should use
these devices to access your CD-ROM/CD-RW when SCSI emulation is
activated. In fact, scd0 is the recommanded one, but for now, both
sr0 and scd0 are the same device (both have the same minor & major
numbers).

sg0 is a generic SCSI device : you shouldn't need to access it
directly.

> 2) How should they be configured so KAudioCreator can access them
> correctly?


bash-3.00$ ls -la /dev/scd0 /dev/sr0
brw-rw-r-- 1 root cdrom 11, 0 2005-02-01 16:03 /dev/scd0
brw-rw---- 1 root cdrom 11, 0 1999-04-13 06:24 /dev/sr0

As you can see from the device's permissions & ownership, your user
account must be in the "cdrom" group to access them correctly in RW
mode.

> Niki Kovacs


--
LiNuCe
Reply With Quote