k3b has problems using a USB writer

Bug #25380 reported by Vide
10
Affects Status Importance Assigned to Milestone
KDE Multimedia
Fix Released
Medium
k3b (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I'm using a Breezy fresh install, installed from the same USB drive having
problems.
I have two CD-ROM drives in my PC, an IDE one (only reader) and a USB one,
that's a recorder.

# lsusb -v
Bus 005 Device 002: ID 059f:0363 LaCie, Ltd
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x059f LaCie, Ltd
  idProduct 0x0363
  bcdDevice 0.00
  iManufacturer 1 LaCie
  iProduct 2 LaCie DVDRW USB
  iSerial 3 10000E000905D2B1
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
      Self Powered
    MaxPower 2mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 8 Mass Storage
      bInterfaceSubClass 5 SFF-8070i
      bInterfaceProtocol 80
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x02 EP 2 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
Device Qualifier (for other device speed):
  bLength 10
  bDescriptorType 6
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  bNumConfigurations 1

# uname -r
2.6.12-9-386

# dpkg -l hal udev
Desired=Unknown/Install/Remove/Purge/Hold
| Estado=No/Instalado/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: mayúsc.=malo)
||/ Nombre Versión Descripción
+++-==============-==============-============================================
ii hal 0.5.3-0ubuntu1 Hardware Abstraction Layer
ii udev 0.060-1ubuntu1 /dev/ management daemon

# ls -l /dev/sg*

crw-rw---- 1 root root 21, 0 2005-11-07 15:07 /dev/sg0
crw-rw---- 1 root cdrom 21, 1 2005-11-07 15:07 /dev/sg1

and finally

# cdrecord -scanbus (as user)

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.

cdrecord: Warning: Running on Linux-2.6.12-9-386
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
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.
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
cdrecord:
cdrecord: For more information, install the cdrtools-doc
cdrecord: package and read /usr/share/doc/cdrecord/README.ATAPI.setup .

This obviously cause problem while trying to burn a CD with Nautilus, K3b and
whatever frontend I try.

Revision history for this message
Vide (vide80) wrote :

Ok, more infos: the sg0 device is my hard disk, so the group is correct, while
sg1 is the burner, and even here the group is correct.
So it seems like http://bugzilla.ubuntu.com/show_bug.cgi?id=8036
 BUT the solution doesn't work, and in fact the problem is appearing on a breezy
box. I do have checked the /etc/cdrecord/cdrecord default parameter and it set
to /dev/cdrw, which points correctly to scd0

lrwxrwxrwx 1 root root 4 2005-11-08 13:24 /dev/cdrw -> scd0

brw-rw---- 1 root cdrom 11, 0 2005-11-08 13:24 /dev/scd0

the problem is that K3b on Ubuntu/Kubuntu doesn't seem able to really specify to
cdrecord the device to use, even if I have selected it in the K3B device list.
So maybe this is a k3b bug?

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

udev appears to be doing exactly the right thing (except for that symlink, which
is dropped now anyway)

Revision history for this message
aexl (aexl) wrote : solution for me:

i had exactly the same problem. eveything worked fine after i added the following setting in k3b:
options > Programs > userdefined-parameters > cdrecord
dev=/dev/sg1:1,0,0

background:
the key was the line:
>Error trying to open /dev/sg0 exclusively (Permission denied)
(where sg0 is NOT the CDRW but my hard drive which has permissions 660 root.root)
k3b calls cdrecord with parameter dev=1,0,0
i assume(!) that cdrecord does a scanbus to guess the device. which as non-root gives me said error.

if k3b specified the device node as i did the issue would be solved.
so imho this really is a K3b issue.

Revision history for this message
aexl (aexl) wrote : Related or duplicate:
Revision history for this message
Kenny Duffus (kduffus) wrote : Re: No way to select cd-recorder device

do you still have this problem? k3b should be giving you a pull down menu with devices

Changed in k3b:
status: Unconfirmed → Needs Info
Revision history for this message
Mikael Nilsson (mini) wrote :

This is certainly still a problem.

Upstream: http://bugs.kde.org/show_bug.cgi?id=122568

Kenny Duffus (kduffus)
Changed in k3b:
assignee: mez → kduffus
status: Needs Info → Unconfirmed
Revision history for this message
Mikael Nilsson (mini) wrote :

Oh, please note that this affects my built-in writer on /sys/class/scsi_device/1\:0\:0\:0/

I think the main problem is when using SATA hard drives.

Changed in kdemultimedia:
status: Unknown → Unconfirmed
Changed in kdemultimedia:
status: Unconfirmed → Confirmed
Changed in kdemultimedia:
status: Confirmed → Fix Released
Revision history for this message
Vide (vide80) wrote :

I'm sorry that I can't help you anymore tracking this problem but I do not have anymore access to the hardware on which I was experiencing problems. I hope other people that could reproduce this bug can help :)

Revision history for this message
Mario Đanić (mario-danic) wrote :

This bug has been fixed upstream.

Changed in k3b:
assignee: kduffus → nobody
status: New → Fix Released
Revision history for this message
Dirk Freitag (unr3a1-r00t) wrote :

I am having this issue even with the latest k3b version. I tried all the things listed here, but cannot get it to work.

Changed in kdemultimedia:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.