[Debburn-devel] wodim: unclear error messages with non-blank DVD-RW

scdbackup at gmx.net scdbackup at gmx.net
Mon Feb 12 08:39:13 CET 2007


Hi,

while reading the source of dvd+rw-tools and implementing its SCSI jewels
in libburn i also did some tests with wodim. Here is what i believe
you might find interesting. (wodim version is 1.1.2.)


1) When attempting to burn to closed DVD-RW the error messages of wodim are
   rather confusing and indicate that it has few clue of the situation.

   There is no difference in behavior with DAO DVD-RW or with closed
   Incremental DVD-RW. About details on the media history see below.

----------------------------------------------------------------------------
$ wodim -v dev=0,0,0 driveropts=burnfree -sao -eject /dvdbuffer/1gb
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.25
Wodim version: 1.1.2
Driveropts: 'burnfree'
SCSI buffer size: 64512
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   : 
Vendor_info    : '_NEC    '
Identification : 'DVD_RW ND-4570A '
Revision       : '1.02'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0014 (DVD-RW sequential recording)
Profile: 0x002B (DVD+R/DL) 
Profile: 0x001B (DVD+R) 
Profile: 0x001A (DVD+RW) 
Profile: 0x0015 (DVD-R/DL sequential recording) 
Profile: 0x0014 (DVD-RW sequential recording) (current)
Profile: 0x0013 (DVD-RW restricted overwrite) (current)
Profile: 0x0012 (DVD-RAM) 
Profile: 0x0011 (DVD-R sequential recording) 
Profile: 0x0010 (DVD-ROM) 
Profile: 0x000A (CD-RW) 
Profile: 0x0009 (CD-R) 
Profile: 0x0008 (CD-ROM) 
Profile: 0x0002 (Removable disk) 
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).
Driver flags   : SWABAUDIO BURNFREE 
Supported modes: PACKET SAO
Drive buf size : 1769472 = 1728 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
FIFO size      : 4194304 = 4096 KB
Track 01: data  1024 MB        
Total size:     1176 MB (116:30.50) = 524288 sectors
Lout start:     1176 MB (116:32/38) = 524288 sectors
Current Secsize: 2048
Trying to clear drive status.
Speed set to 8467 KB/s
wodim: Drive needs to reload the media to return to proper status.
  ATIP start of lead in:  -150 (00:00/00)
Disk type:    unknown dye (reserved id code)
Manuf. index: -1
Manufacturer: unknown (not in table)
wodim: WARNING: Could not manage to find medium size, and more than 90 mins of data.
Speed set to 8467 KB/s
Starting to write CD/DVD at speed   6.0 in real SAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Errno: 5 (Input/output error), reserve track scsi sendcmd: no error
CDB:  53 00 00 00 00 00 08 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 30 05 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x30 Qual 0x05 (cannot write medium - incompatible format) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.001s timeout 200s
wodim: Cannot open new session.
Writing  time:    2.804s
----------------------------------------------------------------------------

   Speed 6.0 is inappropriate. Drive and media offer via ACh GET PERFORMANCE :
   Speed descr. : 2770 kB/s, 4489.2 MiB
   Speed descr. : 1385 kB/s, 4489.2 MiB 

   The SCSI error tells that there was an attempt with 53h RESERVE TRACK
   which with a non-blank disc has not much hope for success ... at least
   on my drives in my libburn experiments. 

   Actually i know no way to write to a closed DVD-RW without prior blanking.

   The DAO DVD-RW was produced by wodim -sao on a blank DVD-RW. It may also
   be produced by growisofs on fast blanked DVD-RW or with one of the options
   -use-the-force-luke=dao , -dvd-compat . cdrskin produces such media with
   option -sao .

   The closed Incremental DVD-RWs were produced by growisofs and cdrskin.



----------------------------------------------------------------------------
2) Attempt to burn to appendable Incremental DVD-R[W].

   Incremental appendable DVD-RW get produced by growisofs without special
   options when running on new or fully blanked DVD-RW. In some subsequent
   run of growisofs with option -dvd-compat the DVD-RW may finally get closed.
   cdrskin produces appendable and closed DVD-RW in the style of cdrecord with
   CD media: appendable sessions with -multi and the final one without -multi.

   Minimally blanked DVD-RW are not capable of feature 21h Incremental
   Streaming - at least not on my drives. growisofs.c comments state the same.

   My kernel 2.4 ide-scsi drives and a kernel 2.6 DVD-ROM can read and mount
   multi-session DVD-R[W] like CD-R[W]. A DVD-ROM under control of kernel 2.4
   insists in being unable to read more than 1416 kB per session.  
   (But DAO DVD-RW are readable via that DVD-ROM on that kernel 2.4 system.)

----------------------------------------------------------------------------
$ time wodim -v dev=0,1,0 driveropts=burnfree -sao -eject /dvdbuffer/1gb
TOC Type: 1 = CD-ROM
scsidev: '0,1,0'
scsibus: 0 target: 1 lun: 0
Linux sg driver version: 3.1.25
Wodim version: 1.1.2
Driveropts: 'burnfree'
SCSI buffer size: 64512
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   : 
Vendor_info    : 'HL-DT-ST'
Identification : 'DVDRAM GSA-4082B'
Revision       : 'A201'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0014 (DVD-RW sequential recording)
Profile: 0x0012 (DVD-RAM) 
Profile: 0x0011 (DVD-R sequential recording) 
Profile: 0x0014 (DVD-RW sequential recording) (current)
Profile: 0x0013 (DVD-RW restricted overwrite) (current)
Profile: 0x001A (DVD+RW) 
Profile: 0x001B (DVD+R) 
Profile: 0x0010 (DVD-ROM) (current)
Profile: 0x0009 (CD-R) 
Profile: 0x000A (CD-RW) 
Profile: 0x0008 (CD-ROM) 
Profile: 0x0002 (Removable disk) 
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).
Driver flags   : SWABAUDIO BURNFREE 
Supported modes: PACKET SAO
Drive buf size : 1245184 = 1216 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
Drive DMA Speed: 4424 kB/s 25x CD 3x DVD
FIFO size      : 4194304 = 4096 KB
Track 01: data  1024 MB        
Total size:     1176 MB (116:30.50) = 524288 sectors
Lout start:     1176 MB (116:32/38) = 524288 sectors
Current Secsize: 2048
  ATIP start of lead in:  -150 (00:00/00)
Disk type:    unknown dye (reserved id code)
Manuf. index: -1
Manufacturer: unknown (not in table)
wodim: WARNING: Could not manage to find medium size, and more than 90 mins of data.
Speed set to 2770 KB/s
Starting to write CD/DVD at speed   2.0 in real SAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Sending CUE sheet...
Starting new track at sector: 0
Track 02:    0 of 1024 MB written.Errno: 5 (Input/output error), write_g1 scsi sendcmd: no error
CDB:  2A 00 00 00 00 00 00 00 1F 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 10 2A 00 00 0D 30 05 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x30 Qual 0x05 (cannot write medium - incompatible format) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.003s timeout 200s

write track data: error after 0 bytes
wodim: A write error occured.
wodim: Please properly read the error message above.
Writing  time:    8.420s
Average write speed 111.0x.
Fixating...
Fixating time:    0.006s

----------------------------------------------------------------------------

   Note that for some reason wodim now detected the appropriate speed of 2.0x.
   What wonders me a bit is that there is no message about a failed 52h RESERVE
   TRACK but this time it is about a failed 2Ah WRITE.

   The media staid appendable afterwards and i could burn another session to it
   via cdrskin.

   Btw: That "Drive DMA Speed: 4424 kB/s 25x CD 3x DVD" is quite fictional.
   I burned 8x DVD-R with that drive and with full speed.

----------------------------------------------------------------------------

My conclusions so far about growisofs DVD methods are collected in the last
sections of
http://libburnia.pykix.org/browser/libburn/trunk/doc/cookbook.txt?format=txt
(DVD+R, dual layer and BD are not explored yet.)


Have a nice day :)

Thomas

 



More information about the Debburn-devel mailing list