Re: cdrecord dev=ATA cannont scanbus as non-root

From: Jan Engelhardt
Date: Mon Nov 29 2004 - 16:52:38 EST


>Hi all...
>
>I'm trying to get out of the mess that cd burning looks like nowadays in
>linux...
>
>As I use a 2.6.x kernel, I folowed this hints:
>- no suid cdrecord, it uses capabilities
>- make the burner owned by console user (pam)
>
>cdrecord burns ok using dev=/dev/burner, but I can't get GUI tools to
>burn using the /dev interface. All of them try to load ide-scsi, and
>do a scan based on ATAPI:.
>Some tools try to scan with dev=ATA:x:y:z, but that does not work as
>normal user.

Maybe because it should have been dev=ATAPI: ?

>How can I make 'cdrecord dev=ATA -scanbus' work as non-root ?

Weird, works for me:

22:49 io:~ > cdrecord -dev=ATAPI: -scanbus
Cdrecord-Clone 2.01 (i686-suse-linux) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to
http://www.suse.de/feedbackNote: The author of cdrecord should not be bothered
with problems in this version.
scsidev: 'ATAPI:'
devname: 'ATAPI'
scsibus: -1 target: -1 lun: -1
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
cdrecord: No such file or directory. 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'.
22:50 io:/dev # chmod 666 /dev/hdd
22:50 io:~ > cdrecord -dev=ATAPI: -scanbus
Cdrecord-Clone 2.01 (i686-suse-linux) Copyright (C) 1995-2004 Jörg Schilling
[...]
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) *
0,1,0 1) 'AOPEN ' 'CD-RW CRW1232PRO' '1.00' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *

And further (in addition to above):
22:50 io:/dev # chmod 666 /dev/hdb
22:50 io:~ > cdrecord -dev=ATAPI: -scanbus
scsibus0:
0,0,0 0) *
cdrecord: Warning: controller returns wrong size for CD capabilities page.
0,1,0 1) ' ' 'ATAPI CDROM ' '100H' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) *
1,1,0 101) 'AOPEN ' 'CD-RW CRW1232PRO' '1.00' Removable CD-ROM
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *

Apart from the fact that scsibus shifts up by one, Works For Me(TM)


Jan Engelhardt
--
Gesellschaft fÃr Wissenschaftliche Datenverarbeitung
Am Fassberg, 37077 GÃttingen, www.gwdg.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/