Your message dated Mon, 4 Dec 2006 12:00:05 +0100
with message-id <[EMAIL PROTECTED]>
and subject line cdrecord prematurely terminates "-scanbus" when it fails to 
open a device
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: cdrecord
Version: 4:2.01+01a03-5

I normally have cdrecord installed suid root, but this should not be
absolutely necessary on my system, as my device permissions allow me
to access the CD drives:

[EMAIL PROTECTED] ~$ ls -l /dev/scd* /dev/sg*
brw-rw---- 1 root cdrom 11, 0 Jun  5 14:05 /dev/scd0
brw-rw---- 1 root cdrom 11, 1 Jun  5 14:05 /dev/scd1
crw-rw---- 1 root root  21, 0 Jun  5 14:05 /dev/sg0
crw-rw---- 1 root cdrom 21, 1 Jun  5 14:05 /dev/sg1
crw-rw---- 1 root cdrom 21, 2 Jun  5 14:05 /dev/sg2

The permissions on sg0 are correct since it is a hard drive. However,
it seems to cause cdrecord to fail on "-scanbus":

[EMAIL PROTECTED] ~$ cdrecord -scanbus
Cdrecord-Clone 2.01.01a03 (i686-pc-linux-gnu) Copyright (C) 1995-2005
Joerg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
     and thus may have bugs that are not present in the original version.
     Please send bug reports and support requests to
<[EMAIL PROTECTED]>.
     The original author should not be bothered with problems of this version.

cdrecord: Warning: Running on Linux-2.6.16-ws2
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
cdrecord:
cdrecord: For more information, install the cdrtools-doc
cdrecord: package and read /usr/share/doc/cdrecord/README.ATAPI.setup .


If I reconfigure cdrecord to be suid root, the "-scanbus" completes
successfully:

[EMAIL PROTECTED] ~$ cdrecord -scanbus
Cdrecord-Clone 2.01.01a03 (i686-pc-linux-gnu) Copyright (C) 1995-2005
Joerg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
     and thus may have bugs that are not present in the original version.
     Please send bug reports and support requests to
<[EMAIL PROTECTED]>.
     The original author should not be bothered with problems of this version.

cdrecord: Warning: Running on Linux-2.6.16-ws2
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
Linux sg driver version: 3.5.33
Using libscg version 'debian-0.8debian2'.
cdrecord: Warning: using inofficial version of libscg
(debian-0.8debian2 '@(#)scsitransp.c    1.91 04/06/17 Copyright
1988,1995,2000-2004 J. Schilling').
scsibus0:
       0,0,0     0) 'SEAGATE ' 'ST336607LW      ' '0006' Disk
       0,1,0     1) *
cdrecord: Warning: controller returns wrong size for CD capabilities page.
       0,2,0     2) 'PIONEER ' 'DVD-ROM DVD-303R' '2.00' Removable CD-ROM
       0,3,0     3) *
       0,4,0     4) *
       0,5,0     5) *
       0,6,0     6) 'YAMAHA  ' 'CRW3200S        ' '1.0d' Removable CD-ROM
       0,7,0     7) *


I would suggest that cdrecord should skip the device that it is unable
to access, rather than aborting the scan.

FWIW, cdrdao has the same problem (and I'll file a separate bug for it).

Let me know if I can help somehow. Thanks.

-- graham


--- End Message ---
--- Begin Message ---
#include <hallo.h>
* Graham [Mon, Jun 12 2006, 09:50:40AM]:
> Hello again Joerg,
> 
> >> I think you meant "/dev/sgX"?
> >
> >No, I mean /dev/scg*. [...] I expect that the users
> >are clever enough to replace this with their local name.
> 
> No, we're not. Users do not know what a SCSI generic passthrough is.
>We know that most things in /dev are somehow connected to hardware
...
> >But your main Proplem was caused by the fact that you ignore the official
> >documentation.
> 
> No. I read the documentation. I simply disagree with the requirement
> that cdrecord must be run as root.

Doesn't matter anymore. In wodim, we changed the scan stuff to act more nicely.

Eduard.
-- 
<krid> Hi, gibts einen Kazaa client für GNU?
<panthera> krid: falsche frage
<krid> panthera: Gibt es einen Kazaa client für Debian GNU/Linux? :-)
<panthera> krid: falsche frage ;)
<krid> panthera: Hm. Welche Frage ist die richtige?
<panthera> krid: gibt es einen freien ftp-client fuer linux?

--- End Message ---

Reply via email to