[Bug 23203] Re: cdrecord maps <bus>, <target>, <lun> to /dev/sgX imperfectly

Thomas Hotz 23203 at bugs.launchpad.net
Wed May 15 03:33:13 UTC 2013


** Changed in: cdrkit (Ubuntu)
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cdrkit in Ubuntu.
https://bugs.launchpad.net/bugs/23203

Title:
  cdrecord maps <bus>,<target>,<lun> to /dev/sgX imperfectly

Status in “cdrkit” package in Ubuntu:
  Invalid
Status in “cdrtools” package in Ubuntu:
  Fix Released
Status in “k3b” package in Debian:
  Fix Released

Bug description:
  cdrecord -scanbus reports that my CDRW is device 1,0,0. Using that device causes it to use /dev/sg0, 
  which is actually my HD. Passing dev=/dev/cdrw works, but k3b and other burning apps do  
  not use that (and cdrecord claims that this method of giving a device is not supported).  
    
  Renaming /dev/sg1 to /dev/sg0 works as well, you do not even have to override the dev passed to 
  cdrecord then. 
    
  Some info about my system (both HD and CDRW are SATA drives):  
    
  > cat /proc/scsi/scsi                                           ~  
  Attached devices:  
  Host: scsi0 Channel: 00 Id: 00 Lun: 00  
    Vendor: ATA      Model: HTS726060M9AT00  Rev: MH4O  
    Type:   Direct-Access                    ANSI SCSI revision: 05  
  Host: scsi1 Channel: 00 Id: 00 Lun: 00  
    Vendor: MATSHITA Model: DVD-RAM UJ-822S  Rev: 1.03  
    Type:   CD-ROM                           ANSI SCSI revision: 05  
   
  > ls -alF /dev/sd* /dev/scd* /dev/sg*                           ~  
  brw-rw----  1 root cdrom 11,  0 Oct  4 19:27 /dev/scd0  
  brw-rw----  1 root disk   8,  0 Oct  4 19:26 /dev/sda  
  brw-rw----  1 root disk   8,  1 Oct  4 19:26 /dev/sda1  
  brw-rw----  1 root disk   8, 10 Oct  4 19:26 /dev/sda10  
  brw-rw----  1 root disk   8, 11 Oct  4 19:26 /dev/sda11  
  brw-rw----  1 root disk   8, 12 Oct  4 19:26 /dev/sda12  
  brw-rw----  1 root disk   8, 13 Oct  4 19:26 /dev/sda13  
  brw-rw----  1 root disk   8, 14 Oct  4 19:26 /dev/sda14  
  brw-rw----  1 root disk   8,  2 Oct  4 19:26 /dev/sda2  
  brw-rw----  1 root disk   8,  3 Oct  4 19:26 /dev/sda3  
  brw-rw----  1 root disk   8,  4 Oct  4 19:26 /dev/sda4  
  brw-rw----  1 root disk   8,  5 Oct  4 19:26 /dev/sda5  
  brw-rw----  1 root disk   8,  6 Oct  4 19:26 /dev/sda6  
  brw-rw----  1 root disk   8,  7 Oct  4 19:26 /dev/sda7  
  brw-rw----  1 root disk   8,  8 Oct  4 19:26 /dev/sda8  
  brw-rw----  1 root disk   8,  9 Oct  4 19:26 /dev/sda9  
  crw-rw----  1 root root  21,  0 Oct  4 19:27 /dev/sg0  
  crw-rw----  1 root cdrom 21,  1 Oct  4 19:27 /dev/sg1  
    
  > ls -alF /dev/cd*  
  lrwxrwxrwx  1 root root 4 Oct  4 19:27 /dev/cdrom -> scd0  
  lrwxrwxrwx  1 root root 4 Oct  4 19:27 /dev/cdrw -> scd0  
    
  > cdrecord -scanbus  
  [bla bla removed]  
  scsibus0:  
          0,0,0     0) 'ATA     ' 'HTS726060M9AT00 ' 'MH4O' Disk  
          0,1,0     1) *  
          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) 'MATSHITA' 'DVD-RAM UJ-822S ' '1.03' 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) *  
    
  K3B debugging output (without override of dev): 
  System 
  ----------------------- 
  K3b Version: 0.12 
   
  KDE Version: 3.4.91 (beta1, >= 20050910) 
  QT Version:  3.3.4 
  Kernel:      2.6.12-9-686 
  Devices 
  ----------------------- 
  MATSHITA DVD-RAM UJ-822S 1.03 (/dev/scd0, /dev/sg1) at /media/cdrom0 [CD-R; CD-RW; CD-ROM; DVD-ROM; 
  DVD-RAM; DVD-R; DVD-RW; DVD+R; DVD+RW] [DVD-ROM; DVD-R Sequential; DVD-RAM; DVD-RW Restricted 
  Overwrite; DVD-RW Sequential; DVD+RW; DVD+R; CD-ROM; CD-R; CD-RW] [SAO; TAO; Restricted Overwrite] 
   
  K3b 
  ----------------------- 
  Size of filesystem calculated: 277371 
   
  Used versions 
  ----------------------- 
  mkisofs: 2.1-unofficial-iconv 
  cdrecord: 2.1.1a01 
   
  cdrecord 
  ----------------------- 
  /usr/bin/cdrecord: Warning: Running on Linux-2.6.12-9-686 
  /usr/bin/cdrecord: There are unsettled issues with Linux-2.5 and newer. 
  /usr/bin/cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris. 
  /usr/bin/cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler 
  /usr/bin/cdrecord: Permission denied. WARNING: Cannot set priority using setpriority(). 
  /usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns. 
  scsidev: '1,0,0' 
  scsibus: 1 target: 0 lun: 0 
  Error trying to open /dev/sg0 exclusively (Permission denied)... retrying in 1 second. 
  [repeated 9 times] 
  /usr/bin/cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver. 
  /usr/bin/cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root. 
  /usr/bin/cdrecord: For possible transport specifiers try 'cdrecord dev=help'. 
  /usr/bin/cdrecord:  
  /usr/bin/cdrecord: For more information, install the cdrtools-doc 
  /usr/bin/cdrecord: package and read /usr/share/doc/cdrecord/README.ATAPI.setup . 
  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: 3 = CD-ROM XA mode 2 
   
  cdrecord command: 
  ----------------------- 
  /usr/bin/cdrecord.mmap -v gracetime=2 dev=1,0,0 speed=24 -tao driveropts=burnfree -eject -overburn 
  -multi -xa -tsize=277371s -  
   
  mkisofs 
  ----------------------- 
  277371 
  INFO: UTF-8 character encoding detected by locale settings. 
   Assuming UTF-8 encoded filenames on source filesystem, 
   use -input-charset to override. 
   
  mkisofs command: 
  ----------------------- 
  /usr/bin/mkisofs -gui -graft-points -volid K3b data project -volset  -appid K3B THE CD KREATOR (C) 
  1998-2005 SEBASTIAN TRUEG AND THE K3B TEAM -publisher  -preparer  -sysid LINUX -volset-size 1 
  -volset-seqno 1 -sort /tmp/kde-tobias/k3bLg7Ela.tmp -rational-rock 
  -hide-list /tmp/kde-tobias/k3bWAI4fc.tmp -joliet -hide-joliet-list /tmp/kde-tobias/k3bKinSgc.tmp 
  -full-iso9660-filenames -iso-level 2 -path-list /tmp/kde-tobias/k3bvIN74a.tmp  
   
  When I add the user parameters dev=/dev/cdrw then cdrecord uses /dev/sg1 and all is well.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cdrkit/+bug/23203/+subscriptions




More information about the foundations-bugs mailing list