Messages in this thread | | | Date | Mon, 29 Nov 2004 21:59:15 +0000 | From | "J.A. Magallon" <> | Subject | Re: cdrecord dev=ATA cannont scanbus as non-root |
| |
On 2004.11.29, Jan Engelhardt wrote: > >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
dev=ATAPI uses ide-scsi interface, through /dev/sgX. And:
> 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.
dev=ATA uses direct IDE burning. Try that as root. In my box, as root:
werewolf:~# cdrecord dev=ATAPI -scanbus scsibus0: 0,0,0 0) * 0,1,0 1) 'TOSHIBA ' 'DVD-ROM SD-M1712' '1004' 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) 'HL-DT-ST' 'DVDRAM GSA-4120B' 'A102' Removable CD-ROM 1,1,0 101) * 1,2,0 102) * 1,3,0 103) * 1,4,0 104) * 1,5,0 105) * 1,6,0 106) * 1,7,0 107) *
werewolf:~# cdrecord dev=ATA -scanbus scsidev: 'ATA' devname: 'ATA' scsibus: -2 target: -2 lun: -2 ######################################################################################### # # Warning: Using ATAPI via /dev/hd* interface. Use dev=ATA:X,Y,Z or dev=/dev/hdX # #########################################################################################
scsibus0: 0,0,0 0) * 0,1,0 1) 'TOSHIBA ' 'DVD-ROM SD-M1712' '1004' 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) 'HL-DT-ST' 'DVDRAM GSA-4120B' 'A102' Removable CD-ROM 1,1,0 101) * 1,2,0 102) * 1,3,0 103) * 1,4,0 104) * 1,5,0 105) * 1,6,0 106) * 1,7,0 107) *
The scan through ATA lasts much less than with ATAPI, and you can burn with dev=ATA:1,0,0 or dev=/dev/burner, which is the new recommended way.
But as I said, scanning through ATA is not avaliable to normal users, so it is someway useless.
-- J.A. Magallon <jamagallon()able!es> \ Software is like sex: werewolf!able!es \ It's better when it's free Mandrakelinux release 10.2 (Cooker) for i586 Linux 2.6.10-rc2-jam3 (gcc 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)) #1
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |