Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46257 - cdrecord open /dev/sg0 not permitted
Summary: cdrecord open /dev/sg0 not permitted
Status: RESOLVED DUPLICATE of bug 45589
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Lars Weiler (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-30 10:07 UTC by gentoo
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gentoo 2004-03-30 10:07:01 UTC
Cdrecord-Clone 2.01a27-dvd has problems with the Linux sg driver. Accessing my usb 
cd-writer as dev=1,0,0 does not work, whereas dev=ATAPI:1,0,0 does. Not a big deal with xcdroast, bigger thing with k3b. Experimenting as "root" or with changing permissions did not succeed. The problem was solved by downgrading to cdrtools-2.01_alpha25.
See also linux.gentoo.user.de Subject: [gentoo-user-de] Probleme beim CD-Brennen
Date: Thu, 25 Mar 2004 01:50:13 +0100

Reproducible: Always
Steps to Reproduce:
1. user > cdrecord -v dev=1,0,0 -toc

Actual Results:  
user > cdrecord -v -dev=1,0,0 -toc
Cdrecord-Clone 2.01a27-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 J
Comment 1 gentoo 2004-03-30 10:07:01 UTC
Cdrecord-Clone 2.01a27-dvd has problems with the Linux sg driver. Accessing my usb 
cd-writer as dev=1,0,0 does not work, whereas dev=ATAPI:1,0,0 does. Not a big deal with xcdroast, bigger thing with k3b. Experimenting as "root" or with changing permissions did not succeed. The problem was solved by downgrading to cdrtools-2.01_alpha25.
See also linux.gentoo.user.de Subject: [gentoo-user-de] Probleme beim CD-Brennen
Date: Thu, 25 Mar 2004 01:50:13 +0100

Reproducible: Always
Steps to Reproduce:
1. user > cdrecord -v dev=1,0,0 -toc

Actual Results:  
user > cdrecord -v -dev=1,0,0 -toc
Cdrecord-Clone 2.01a27-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schi
lling
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 <warly@mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in this versio
n.
TOC Type: 1 = CD-ROM
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Linux sg driver version: 3.5.30
Error trying to open /dev/sg0 exclusively (Operation not permitted)... retrying 
in 1 second.
Error trying to open /dev/sg0 exclusively (Operation not permitted)... retrying 
in 1 second.
Error trying to open /dev/sg0 exclusively (Operation not permitted)... retrying 
in 1 second.
Error trying to open /dev/sg0 exclusively (Operation not permitted)... retrying 
in 1 second.
Error trying to open /dev/sg0 exclusively (Operation not permitted)... retrying 
in 1 second.
Error trying to open /dev/sg0 exclusively (Operation not permitted)... retrying 
in 1 second.
Error trying to open /dev/sg0 exclusively (Operation not permitted)... retrying 
in 1 second.
Error trying to open /dev/sg0 exclusively (Operation not permitted)... retrying 
in 1 second.
Error trying to open /dev/sg0 exclusively (Operation not permitted)... retrying 
in 1 second.
Error trying to open /dev/sg0 exclusively (Operation not permitted)... retrying 
in 1 second.
cdrecord: No such file or directory. Cannot open '/dev/sg*'. Cannot open SCSI dr
iver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

Expected Results:  
user > cdrecord -dev=3,0,0 -toc
Cdrecord-Clone 2.01a25-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schi
lling
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 <warly@mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in this versio
n.
scsidev: '3,0,0'
scsibus: 3 target: 0 lun: 0
Linux sg driver version: 3.5.30
Using libscg version 'schily-0.8'.
Device type    : Removable CD-ROM
Version        : 2
Response Format: 2
Capabilities   : 
Vendor_info    : 'TOSHIBA '
Identifikation : 'DVD-ROM SD-R6112'
Revision       : '1030'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
resid: 132
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE 
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R96R
first: 1 last 2
track:   1 lba:         0 (        0) 00:02:00 adr: 1 control: 4 mode: 2
track:   2 lba:       450 (     1800) 00:08:00 adr: 1 control: 4 mode: 2
track:lout lba:    349918 (  1399672) 77:47:43 adr: 1 control: 4 mode: -1

The scsi identifier changed because of unplugging and plugging in again the usb
cd-writer...

user > cdrecord -scanbus
Cdrecord-Clone 2.01a27-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schi
lling
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 <warly@mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in this versio
n.
Linux sg driver version: 3.5.30
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (warly-scsi-li
nux-sg.c-1.80-mdk '@(#)scsi-linux-sg.c  1.80 04/03/08 Copyright 1997 J. Schillin
g').
scsibus1:
        1,0,0   100) 'TOSHIBA ' 'DVD-ROM SD-R6112' '1030' 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) *
Comment 2 SpanKY gentoo-dev 2004-04-05 23:10:32 UTC
i imagine you have USE=dvdr ... i cant tell for sure since you didnt provide `emerge info` :P

*** This bug has been marked as a duplicate of 45589 ***