[Bug 42470] Re: tries to access SCSI hard-drive (sg0) when supposed to be writing to /dev/sg1

Scott James Remnant scott at ubuntu.com
Wed May 3 16:48:00 UTC 2006


Thanks, I didn't think this'd be a udev bug but was good to get that confirmed.

Have reassigned the bug over to k3b for you, which the MOTU will take care of.

** Summary changed:

- /dev/sg* in wrong group (incorrect SCSI class?)
+ tries to access SCSI hard-drive (sg0) when supposed to be writing to /dev/sg1

** Description changed:

- Hi,
- I have an IBM T43 laptop with a PATA cd-writer (I think) connected to the built-in SATA controller. The writer shows up as /dev/sg0 but it doesn't have the correct permissions (users can't write cds and k3bsetup isn't able to fix it):
- # ls -l /dev/sg0
- crw-rw---- 1 root root 21, 0 2006-04-29 13:14 /dev/sg0
- 
-  Adding the following to /etc/udev/rules.d/40-permissions.rules solves the problem:
- BUS=="scsi", KERNEL="sg*", GROUP="cdrom", MODE="0660"
- 
- # ls -l /dev/sg0(not CD-ROM?
- crw-rw---- 1 root cdrom 21, 0 2006-04-29 13:14 /dev/sg0
- 
- -- 
- Best regards
- Jes Vestervang, Denmark
+ I have an IBM T43 laptop with a PATA cd-writer (I think) connected to
+ the built-in SATA controller.

** Changed in: udev (Ubuntu)
Sourcepackagename: udev => k3b
     Assignee: Scott James Remnant => (unassigned)

** Description changed:

  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 at padden:~# scsi_info /dev/sg0
+ SCSI_ID="0,0,0"
+ HOST="0"
+ MODEL="ATA HTS541060G9AT00"
+ FW_REV="MB3I"
+ root at padden:~# scsi_info /dev/sg1
+ SCSI_ID="0,0,0"
+ HOST="1"
+ MODEL="HL-DT-ST RW/DVD GCC-4242N"
+ FW_REV="0201"
+ root at 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/X11/cdrecord: Warning: Running on Linux-2.6.15-21-686
+ /usr/bin/X11/cdrecord: There are unsettled issues with Linux-2.5 and newer.
+ /usr/bin/X11/cdrecord: If you have unexpected problems, please try
+ 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
+ <cdrtools at packages.debian.org>.
+       The original author should not be bothered with problems of this version.
+ TOC Type: 0 = CD-DA
+ /usr/bin/X11/cdrecord: Permission denied. Cannot open '/dev/sg0'.
+ Cannot open SCSI driver.
+ /usr/bin/X11/cdrecord: For possible targets try 'cdrecord -scanbus'.
+ Make sure you are root.
+ /usr/bin/X11/cdrecord: For possible transport specifiers try 'cdrecord
+ dev=help'.
+ /usr/bin/X11/cdrecord:
+ /usr/bin/X11/cdrecord: For more information, install the cdrtools-doc
+ /usr/bin/X11/cdrecord: package and read
+ /usr/share/doc/cdrecord/README.ATAPI.setup .
+ 
+ cdrecord command:
+ -----------------------
+ /usr/bin/X11/cdrecord.mmap -v gracetime=2 dev=1,0,0 speed=2 -dao
+ driveropts=burnfree textfile=/tmp/kde-jes/k3bUUbbna.dat -eject
+ -useinfo -audio -shorttrack /tmp/kde-jes/k3b_audio_0_01.inf
+ /tmp/kde-jes/k3b_audio_0_02.inf /tmp/kde-jes/k3b_audio_0_03.inf
+ /tmp/kde-jes/k3b_audio_0_04.inf /tmp/kde-jes/k3b_audio_0_05.inf
+ /tmp/kde-jes/k3b_audio_0_06.inf /tmp/kde-jes/k3b_audio_0_07.inf
+ /tmp/kde-jes/k3b_audio_0_08.inf /tmp/kde-jes/k3b_audio_0_09.inf
+ /tmp/kde-jes/k3b_audio_0_10.inf /tmp/kde-jes/k3b_audio_0_11.inf
+ /tmp/kde-jes/k3b_audio_0_12.inf /tmp/kde-jes/k3b_audio_0_13.inf
+ /tmp/kde-jes/k3b_audio_0_14.inf /tmp/kde-jes/k3b_audio_0_15.inf

-- 
tries to access SCSI hard-drive (sg0) when supposed to be writing to /dev/sg1
https://launchpad.net/bugs/42470




More information about the kubuntu-bugs mailing list