tries to access SCSI hard-drive (sg0) when supposed to be writing to /dev/sg1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
k3b (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
I have an IBM T43 laptop with a PATA cd-writer (I think) connected to the built-in SATA controller.
crw-rw---- 1 root root 21, 0 2006-05-02 18:36 /dev/sg0
crw-rw---- 1 root cdrom 21, 1 2006-05-02 18:36 /dev/sg1
brw-rw---- 1 root cdrom 11, 0 2006-05-02 18:36 /dev/scd0
The sg0 seems to be my hard drive:
root@padden:~# scsi_info /dev/sg0
SCSI_ID="0,0,0"
HOST="0"
MODEL="ATA HTS541060G9AT00"
FW_REV="MB3I"
root@padden:~# scsi_info /dev/sg1
SCSI_ID="0,0,0"
HOST="1"
MODEL="HL-DT-ST RW/DVD GCC-4242N"
FW_REV="0201"
root@padden:~#
What confused me was that K3b somehow needs access to sg0 (my hard
drive) which I didn't know what represented until now. Maybe it's a
bug in K3b or cdrecord. Here's some debug info from k3b:
HL-DT-ST RW/DVD GCC-4242N 0201 (/dev/scd0, /dev/sg1) at /media/cdrom0
[CD-R; CD-RW; CD-ROM; DVD-ROM] [DVD-ROM; CD-ROM; CD-R; CD-RW] [SAO;
TAO; RAW; SAO/R96P; SAO/R96R; RAW/R16; RAW/R96P; RAW/R96R]
Used versions
-------
cdrecord: 2.1.1a01
cdrecord
-------
/usr/bin/
/usr/bin/
/usr/bin/
Linux-2.4 or Solaris.
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Text len: 774
Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004
Joerg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
and thus may have bugs that are not present in the original version.
Please send bug reports and support requests to
<email address hidden>.
The original author should not be bothered with problems of this version.
TOC Type: 0 = CD-DA
/usr/bin/
Cannot open SCSI driver.
/usr/bin/
Make sure you are root.
/usr/bin/
dev=help'.
/usr/bin/
/usr/bin/
/usr/bin/
/usr/share/
cdrecord command:
-------
/usr/bin/
driveropts=burnfree textfile=
-useinfo -audio -shorttrack /tmp/kde-
/tmp/kde-
/tmp/kde-
/tmp/kde-
/tmp/kde-
/tmp/kde-
/tmp/kde-
/tmp/kde-
This should be covered by the following rule:
# SCSI devices PHYSDEVBUS} !="scsi" , GOTO="scsi_end" type}== "1", GROUP="tape" type}== "6", GROUP="scanner" type}== "3", SYSFS{vendor} =="HP", GROUP="scanner" "scsi_end"
ENV{
SYSFS{
-> SYSFS{type}=="5", GROUP="cdrom"
SYSFS{
SYSFS{
LABEL=
Could you please attach the output of:
udevinfo -ap /block/sg0
Thanks