cdrecord can't write / blank cd-rw

Bug #48504 reported by Stanislaw Pitucha
8
Affects Status Importance Assigned to Milestone
cdrtools (Ubuntu)
New
Medium
Unassigned

Bug Description

Binary package hint: cdrecord

Using Ubuntu Dapper, fully updated with cdrecord 2.01.01a01. Using LG's DVD-rw
I can't write / blank cd-rws, with error (verbose, debug) on (as root):
cdrecord dev=/dev/cdrom blank=all speed=1 forced

cdrecord: Warning: Running on Linux-2.6.15-23-686
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
fs: 4194304 buflen: 4198400
cdrecord: shared memory segment attached at: B79DA000 size 4198400
buf: B79DA000 bufend: B7DDB000, buflen: 4198400
buf: B79DA000 bufend: B7DDB000, buflen: 4198400 (align 0)
scsidev: '/dev/cdrw'
devname: '/dev/cdrw'
scsibus: -2 target: -2 lun: -2
scg__open(/dev/cdrw) -2,-2,-2
Warning: Open by 'devname' is unintentional and not supported.
l1: 0x0 l2: 0x4
Bus: 0 Target: 0 Lun: 0 Chan: 0 Ino: 0
Linux sg driver version: 3.5.27
l1: 0x0 l2: 0x809322C
Bus: 0 Target: 0 Lun: 0 Chan: 0 Ino: 0
cdrecord: Warning: using inofficial version of libscg (debian-0.8debian2 '@(#)scsitransp.c 1.91 04/06/17 Copyright 1988,1995,2000-2004 J. Schilling').
Using libscg transport code version 'schily-scsi-linux-sg.c-1.83'
Target (0,0,0): DMA max 129024 old max: 64512
SCSI buffer size: 64512
Target (0,0,0): DMA max 129024 old max: 64512
scgo_getbuf: 64512 bytes
ioctl ret: 0 (*****2 lines repeated MANY times*****)
host_status: 00 driver_status: 00
dev: '/dev/cdrw' speed: 1 fs: 4194304 driveropts '(NULL POINTER)'
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.

Using remote (pipe) mode for interactive i/o.
TOC Type: 1 = CD-ROM
Using libscg version 'debian-0.8debian2'.
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identifikation : 'DVD-RW GWA-4040N'
Revision : '1.02'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x000A
Profile: 0x001B
Profile: 0x001A
Profile: 0x0014
Profile: 0x0013
Profile: 0x0011
Profile: 0x0010
Profile: 0x000A (current)
Profile: 0x0009
Profile: 0x0008
Drive current speed: 2
Drive default speed: 2
Drive max speed : 2
Selected speed : 1
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/R16 RAW/R96P RAW/R96R
Drive buf size : 1308672 = 1278 KB
Drive DMA Speed: 121720 kB/s 691x CD 87x DVD
 01 00 00 01 00 00 00 00
 01 AA 01 01 00 00 00 00
 01 00 A0 00 00 00 00 01 00 00 00 00
 01 00 A1 00 00 00 00 00 00 00 00 00
 01 00 A2 00 00 00 00 00 00 00 00 00
ioctl ret: 0 (*****2 lines repeated MANY times*****)
host_status: 00 driver_status: 00
Track 1 start -150
Pages: 0x1 0x3 0x5 0x8 0xD 0xE 0x1A 0x1C 0x1D 0x2A
Pages: 0x1 0x3 0x5 0x8 0xD 0xE 0x1A 0x1C 0x1D 0x2A
Current Secsize: -1
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 5
  Reference speed: 2
  Is not unrestricted
  Is erasable
  ATIP start of lead in: -11597 (97:27/28)
  ATIP start of lead out: 336601 (74:50/01)
  1T speed low: 0 (reserved val 0) 1T speed high: 2
  power mult factor: 5 6
  recommended erase/write power: 3
  A1 values: 01 5C B0
Disk type: Phase change
Manuf. index: 20
Manufacturer: Princo Corporation
Waiting for drive to calm down.
Starting to write CD/DVD at speed 2 in real force BLANK mode for single session.Last chance to quit, starting real write 0 seconds. Operation starts.ioctl ret: 0
host_status: 00 driver_status: 00
cdrecord: Success. blank unit: scsi sendcmd: no error
CDB: A1 00 00 00 00 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0E 00 00 00 00 64 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x64 Qual 0x00 (illegal mode for this track) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 9600s

Starting to write CD/DVD at speed 2 in real force BLANK mode for single session.No chance to quit anymore. Operation starts.ioctl ret: 0
host_status: 00 driver_status: 00

Performing OPC...
ioctl ret: 0 (****** MANY times******)
host_status: 00 driver_status: 00
Blanking entire disk
ioctl ret: 0
host_status: 00 driver_status: 00
cdrecord: Success. blank unit: scsi sendcmd: no error
CDB: A1 00 00 00 00 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0E 00 00 00 00 64 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x64 Qual 0x00 (illegal mode for this track) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 9600s
cdrecord: Cannot blank disk, aborting.
ioctl ret: 0
host_status: 00 driver_status: 00

Any other logs needed?

Revision history for this message
Ryan O'Connor (ryanoc) wrote :

Thanks for your bug report. It looks like cdrecord is currently incompatible with linux 2.6. This issue typically occurs on Edgy but not Dapper. Until cdrecord is updated, I recommend using an older 2.4 kernel if you do a lot of cd-burning. This might be found as an option on your grub boot menu.

(NB. Someone please correct me if Edgy can't be run with a 2.4 kernel)

Revision history for this message
Joern Bredereck (joern-bredereck) wrote :

I can't confirm that cdrecord is broken in general. I compiled the current sources of cdrecord 2.0.1 (http://freshmeat.net/redir/cdrecord/35795/url_tgz/cdrtools-2.01.tar.gz) and the resulting cdrecord binary works perfectly in edgy after copying it to /usr/bin/

So after all the ubuntu package seems to contain a broken cdrecord binary.

Revision history for this message
Ryan O'Connor (ryanoc) wrote :

Joern: could the difference be your physical hardware? I.E. the brand of cdrw drive? I've just found and linked this bug with one on debian's bug tracker which says the bug is confirmed in Ubuntu.. although I can't find where.

Revision history for this message
Ryan O'Connor (ryanoc) wrote :

Right, the debian upstream didn't link to their malone bug tracker. The url of the debian cdrtools bug is here: https://launchpad.net/distros/debian/+source/cdrtools/+bug/28210

Changed in cdrecord:
status: Unknown → Unconfirmed
Changed in cdrecord:
status: New → Fix Released
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.