mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "J.A. Magallon" <jamagallon@able.es>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: Lista Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: cdrecord dev=ATA cannont scanbus as non-root
Date: Mon, 29 Nov 2004 21:59:15 +0000	[thread overview]
Message-ID: <1101765555l.13519l.1l@werewolf.able.es> (raw)
In-Reply-To: <Pine.LNX.4.53.0411292246310.15146@yvahk01.tjqt.qr> (from jengelh@linux01.gwdg.de on Mon Nov 29 22:50:11 2004)


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



  reply	other threads:[~2004-11-29 22:03 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-29 21:33 J.A. Magallon
2004-11-29 21:50 ` Jan Engelhardt
2004-11-29 21:59   ` J.A. Magallon [this message]
2004-11-30  6:51     ` Jan Engelhardt
2004-11-30  7:16     ` Jens Axboe
2004-11-30 16:29       ` J.A. Magallon
2004-11-30 17:12       ` J.A. Magallon
2004-11-30 17:37         ` Jan Engelhardt
2004-11-30 17:49           ` J.A. Magallon
2004-11-30 17:56             ` Jan Engelhardt
2004-11-30 18:29               ` J.A. Magallon
2004-12-01 21:16       ` cdrecord dev=ATA cannont scanbus as non-root [u] Martin Schlemmer [c]
2004-12-02 16:23         ` Radoslaw Szkodzinski
2004-12-02 21:50           ` Martin Schlemmer [c]
2004-12-03  7:35           ` Jan Engelhardt
2004-12-03 11:51             ` Rahul Karnik
2004-12-03 12:06               ` Jan Engelhardt
2004-12-03 12:10                 ` Jens Axboe
2004-12-01 21:56       ` cdrecord dev=ATA cannont scanbus as non-root Markus Plail
2004-12-02  8:07         ` Jens Axboe
2004-12-02 12:51           ` J.A. Magallon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1101765555l.13519l.1l@werewolf.able.es \
    --to=jamagallon@able.es \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®