[Debburn-devel] the default scsi command timeout is too small

Piotr Mitas yabolus at gmail.com
Mon Sep 14 15:25:44 UTC 2009


On my drive (HL-DT-ST DVD-RAM GH22NS30 1.02) writing a double layer DVD fails 
with the default timeout and spews i/o errors. The write succeeds if I set 
timeout to more than 200. The default should be increased to that, or more.

$ wodim -dummy -vv /mnt/windows/rld-mass.iso                                                                    
wodim: No write mode specified.                                                                                                  
wodim: Asuming -tao mode.                                                                                                        
wodim: Future versions of wodim may have different drive dependent defaults.                                                     
TOC Type: 1 = CD-ROM                                                                                                             
wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK 
limits.Device was not specified. Trying to find an appropriate drive...
Looking for a DVD-R drive to store 7401.74 MiB...                                                                                           
Detected DVD-R drive: /dev/dvdrw                                                                                                            
Using /dev/cdrom of unknown capabilities                                                                                                    
scsidev: '/dev/cdrom'                                                                                                                       
devname: '/dev/cdrom'                                                                                                                       
scsibus: -2 target: -2 lun: -2                                                                                                              
Linux sg driver version: 3.5.27                                                                                                             
Wodim version: 1.1.9                                                                                                                        
Using libusal version 'Cdrkit-1.1.9'.                                                                                                       
Driveropts: 'burnfree'                                                                                                                      
SCSI buffer size: 64512                                                                                                                     
Device type    : Removable CD-ROM                                                                                                           
Version        : 5                                                                                                                          
Response Format: 2                                                                                                                          
Capabilities   :                                                                                                                            
Vendor_info    : 'HL-DT-ST'                                                                                                                 
Identification : 'DVD-RAM GH22NS30'                                                                                                         
Revision       : '1.02'                                                                                                                     
Device seems to be: Generic mmc2 DVD-R/DVD-RW.                                                                                              
Current: 0x0015 (DVD-R/DL sequential recording)                                                                                             
Profile: 0x0012 (DVD-RAM)                                                                                                                   
Profile: 0x002B (DVD+R/DL)                                                                                                                  
Profile: 0x001B (DVD+R)                                                                                                                     
Profile: 0x001A (DVD+RW)                                                                                                                    
Profile: 0x0016 (DVD-R/DL layer jump recording) (current)                                                                                   
Profile: 0x0015 (DVD-R/DL sequential recording) (current)                                                                                   
Profile: 0x0014 (DVD-RW sequential recording)                                                                                               
Profile: 0x0013 (DVD-RW restricted overwrite)                                                                                               
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 Session At Once (SAO) for DVD mode.                                                                                                   
Drive current speed: 4                                                                                                                      
Drive default speed: 4                                                                                                                      
Drive max speed    : 4                                                                                                                      
Selected speed     : 4                                                                                                                      
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).                                                                                        
Driver flags   : SWABAUDIO BURNFREE                                                                                                         
Supported modes: PACKET SAO                                                                                                                 
Drive buf size : 1409024 = 1376 KB                                                                                                          
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device                                                                  
communication breaks or freezes immediately after that.                                                                                     
Drive DMA Speed: 150027 kB/s 852x CD 108x DVD                                                                                               
FIFO size      : 12582912 = 12288 KB                                                                                                        
Track 01: data  7401 MB                                                                                                                     
track: 1 start: 0 pregap: 150                                                                                                               
Total size:     8500 MB (842:09.18) = 3789689 sectors                                                                                       
Lout start:     8500 MB (842:11/14) = 3789689 sectors                                                                                       
Track 1 start 0                                                                                                                             
Track 2 start 3789689                                                                                                                       
Current Secsize: 2048                                                                                                                       
HINT: use dvd+rw-mediainfo from dvd+rw-tools for information extraction.                                                                    
Blocks total: 4171712 Blocks current: 4171712 Blocks remaining: 382023                                                                      
Speed set to 5540 KB/s                                                                                                                      
Starting to write CD/DVD at speed   4.0 in dummy unknown mode for single 
session.                                                           
Last chance to quit, starting dummy write in    0 seconds. Operation starts.                                                                
Waiting for reader process to fill input buffer ... input buffer ready.                                                                     
Starting new track at sector: 0                                                                                                             
Track 01: 4087 of 7401 MB written (fifo 100%) [buf  93%]   4.0x.Errno: 5 
(Input/output error), write_g1 scsi sendcmd: no error              
CDB:  2A 00 00 1F EF 48 00 00 1F 00                                                                                                         
status: 0x2 (CHECK CONDITION)                                                                                                               
Sense Bytes: 72 0B 00 00 00 00 00 0E 09 0C 00 00 00 03 00 00                                                                                
Sense Key: 0x0 No Additional Sense, Segment 11                                                                                              
Sense Code: 0x00 Qual 0x03 (setmark detected) Fru 0x0                                                                                       
Sense flags: Blk 0 (not valid)                                                                                                              
cmd finished after 41.428s timeout 40s                                                                                                      

write track data: error after 4286201856 bytes
wodim: A write error occured.                 
wodim: Please properly read the error message above.
Writing  time:  832.569s                            
Average write speed   6.7x.                         
Min drive buffer fill was 89%                       
Fixating...                                         
WARNING: Some drives don't like fixation in dummy mode.
Fixating time:    0.002s                               
wodim: fifo had 67703 puts and 67513 gets.             
wodim: fifo was 0 times empty and 38194 times full, min fill was 88%.


$ wodim -dummy timeout=300 -vv /mnt/windows/rld-mass.iso 
wodim: No write mode specified.                                           
wodim: Asuming -tao mode.                                                 
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 1 = CD-ROM                                                        
wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK 
limits.Device was not specified. Trying to find an appropriate drive...
Looking for a DVD-R drive to store 7401.74 MiB...                                                                                           
Detected DVD-R drive: /dev/dvdrw                                                                                                            
Using /dev/cdrom of unknown capabilities                                                                                                    
scsidev: '/dev/cdrom'                                                                                                                       
devname: '/dev/cdrom'                                                                                                                       
scsibus: -2 target: -2 lun: -2                                                                                                              
Linux sg driver version: 3.5.27                                                                                                             
Wodim version: 1.1.9                                                                                                                        
Using libusal version 'Cdrkit-1.1.9'.                                                                                                       
Driveropts: 'burnfree'                                                                                                                      
SCSI buffer size: 64512
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identification : 'DVD-RAM GH22NS30'
Revision       : '1.02'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0015 (DVD-R/DL sequential recording)
Profile: 0x0012 (DVD-RAM)
Profile: 0x002B (DVD+R/DL)
Profile: 0x001B (DVD+R)
Profile: 0x001A (DVD+RW)
Profile: 0x0016 (DVD-R/DL layer jump recording) (current)
Profile: 0x0015 (DVD-R/DL sequential recording) (current)
Profile: 0x0014 (DVD-RW sequential recording)
Profile: 0x0013 (DVD-RW restricted overwrite)
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 Session At Once (SAO) for DVD mode.
Drive current speed: 4
Drive default speed: 4
Drive max speed    : 4
Selected speed     : 4
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).
Driver flags   : SWABAUDIO BURNFREE
Supported modes: PACKET SAO
Drive buf size : 1409024 = 1376 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
Drive DMA Speed: 131657 kB/s 748x CD 95x DVD
FIFO size      : 12582912 = 12288 KB
Track 01: data  7401 MB
track: 1 start: 0 pregap: 150
Total size:     8500 MB (842:09.18) = 3789689 sectors
Lout start:     8500 MB (842:11/14) = 3789689 sectors
Track 1 start 0
Track 2 start 3789689
Current Secsize: 2048
HINT: use dvd+rw-mediainfo from dvd+rw-tools for information extraction.
Blocks total: 4171712 Blocks current: 4171712 Blocks remaining: 382023
Speed set to 5540 KB/s
Starting to write CD/DVD at speed   4.0 in dummy unknown mode for single 
session.
Last chance to quit, starting dummy write in    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Starting new track at sector: 0
Track 01: 7401 of 7401 MB written (fifo 100%) [buf  93%]   4.2x.
Track 01: Total bytes read/written: 7761283072/7761283072 (3789689 sectors).
Writing  time: 1425.935s
Average write speed   3.9x.
Min drive buffer fill was 28%
Fixating...
WARNING: Some drives don't like fixation in dummy mode.
Fixating time:  203.789s
wodim: fifo had 122249 puts and 122249 gets.
wodim: fifo was 0 times empty and 69074 times full, min fill was 76%.


$ wodim -version
Cdrecord-yelling-line-to-tell-frontends-to-use-it-like-version 2.01.01a03-dvd
Wodim 1.1.9
Copyright (C) 2006 Cdrkit suite contributors
Based on works from Joerg Schilling, Copyright (C) 1995-2006, J. Schilling



More information about the Debburn-devel mailing list