Re: cdrecord scanbus sg driver & root vs. user problem

From: noi (noi_at_siam.com)
Date: 03/07/05


Date: Mon, 07 Mar 2005 05:30:18 GMT

On Sat, 05 Mar 2005 13:07:54 -0800, David Masterson thoughtfully wrote:

> My setup is as follows:
>
> Fedora Core 2 and Windows 98 on ...
> ASL Marquis K121 dual CPU AMD Athlon MP 1800+ system w/ 1Gb RAM Adaptec
> 29160 Ultra-SCSI w/ 3 IBM UltraStar disk drives ASUS V7100 GeForce2 MX
> 32Mb AGP video card w/ ViewSonic VA720 Intel EtherExpress Pro+ 10/100Mbps
> Ethernet adapter Soundblaster 128 PCI Sound card
> DVD and CDRW disk drives
> USR Sportster 56K modem
> Kinesis keyboard and Logitech Trackman Wheel
>
> My problem is that 'cdrecord' has stopped functioning in that it doesn't
> see my CDRW drive as 'root', but does see it as a regular user. Note the
> following outputs of 'cdrecord -scanbus' (one as normal user [$ prompt]
> and one as root [# prompt]):
>
> ================================
> $ cdrecord --scanbus
> Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg
> Schilling
> Note: This version is an unofficial (modified) version with DVD support
> Note: and therefore may have bugs that are not present in the original.
> Note: Please send bug reports or support requests to
> http://bugzilla.redhat.com/bugzilla
> Note: The author of cdrecord should not be bothered with problems in this
> version.
> scsidev: 'ATA'
> devname: 'ATA'
> scsibus: -2 target: -2 lun: -2
> Linux sg driver version: 3.5.27
> Using libscg version 'schily-0.8'.
> cdrecord: Warning: using inofficial libscg transport code version (schily
> - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c 1.83 04/05/20
> Copyright 1997 J. Schilling'). scsibus1:
> 1,0,0 100) 'YAMAHA ' 'CRW2200E ' '1.0D' Removable
> CD-ROM 1,1,0 101) 'SONY ' 'DVD-ROM DDU1621 ' 'S1.6'
> 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) *
> # cdrecord -scanbus
> Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg
> Schilling
> Note: This version is an unofficial (modified) version with DVD support
> Note: and therefore may have bugs that are not present in the original.
> Note: Please send bug reports or support requests to
> http://bugzilla.redhat.com/bugzilla
> Note: The author of cdrecord should not be bothered with problems in this
> version.
> Linux sg driver version: 3.5.31
> Using libscg version 'schily-0.8'.
> cdrecord: Warning: using inofficial libscg transport code version (schily
> - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c 1.83 04/05/20
> Copyright 1997 J. Schilling'). scsibus0:
> 0,0,0 0) 'IBM ' 'DDYS-T18350N ' 'S96H' Disk 0,1,0
> 1) 'IBM ' 'DDYS-T18350N ' 'S96H' Disk 0,2,0 2) 'IBM
> ' 'DDYS-T18350N ' 'S96H' Disk 0,3,0 3) *
> 0,4,0 4) *
> 0,5,0 5) *
> 0,6,0 6) *
> 0,7,0 7) *
> ==========================================
>
> Note that the Yamaha drive is seen by a normal user, but not by the root
> user. The key difference I see is the Linux SG driver version. Can
> anyone tell me why running cdrecord as a normal user would pick up the
> 3.5.27 SG driver while running it as root would pick up the 3.5.31 driver?

Yeah I don't know but is it a typo?
 
cdrecord --scanbus vs. cdrecord -scanbus

And I think we're using cdrecord dev=ata:/dev/hdc now.