Bug 532293 - Wodim fails to burn dvds correctly
Summary: Wodim fails to burn dvds correctly
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: cdrtools
Version: 11
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-01 11:17 UTC by Ankur Sinha (FranciscoD)
Modified: 2010-06-28 15:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-28 15:21:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ankur Sinha (FranciscoD) 2009-11-01 11:17:56 UTC
Description of problem: Failure of cdrecord/wodim to burn dvds
successfully. It fails in the middle of the burn process 

Version-Release number of selected component (if applicable):
wodim-1.1.9-6.fc11.x86_64 

How reproducible: Burn a dvd. Out of approx 20dvds, only 2 burn
correctly :( 

Steps to Reproduce: 1. run "nice -n -18 wodim -v dev=/dev/sr0 /path/to/iso" 
It fails with both the inbuilt drive and the
USB (new) one. 

Actual results: Burn fails in between. Renders DVD useless 

Expected results: DVD should burn normally

Additional info: 

Example of a failed burn with my *new* USB dvd drive:

[Ankur Ankur Fedora-11-i386-DVD]$ wodim -scanbus
scsibus4:
	4,0,0	400) 'HL-DT-ST' 'DVDRAM GSA-4084N' 'KQ09' Removable CD-ROM
	4,1,0	401) *
	4,2,0	402) *
	4,3,0	403) *
	4,4,0	404) *
	4,5,0	405) *
	4,6,0	406) *
	4,7,0	407) *
scsibus14:
	14,0,0	1400) 'SONY    ' 'DVD+-RW DW-D56A ' 'PDS7' Removable CD-ROM
	14,1,0	1401) *
	14,2,0	1402) *
	14,3,0	1403) *
	14,4,0	1404) *
	14,5,0	1405) *
	14,6,0	1406) *
	14,7,0	1407) *
------------------------------------------

[Ankur Ankur Fedora-11-i386-DVD]$ su -c ' nice -n -18 wodim -v -eject
dev=14,0,0 Fedora-11-i386-DVD.iso '
Password: 
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
scsidev: '14,0,0'
scsibus: 14 target: 0 lun: 0
WARNING: the deprecated pseudo SCSI syntax found as device
specification.
Support for that may cease in the future versions of wodim. For now,
the device will be mapped to a block device file where possible.
Run "wodim --devices" for details.
Linux sg driver version: 3.5.27
Wodim version: 1.1.9
SCSI buffer size: 32768
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   : 
Vendor_info    : 'SONY    '
Identification : 'DVD+-RW DW-D56A '
Revision       : 'PDS7'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0011 (DVD-R sequential recording)
Profile: 0x002B (DVD+R/DL) 
Profile: 0x001B (DVD+R) 
Profile: 0x001A (DVD+RW) 
Profile: 0x0014 (DVD-RW sequential recording) 
Profile: 0x0013 (DVD-RW restricted overwrite) 
Profile: 0xFE12 () 
Profile: 0x0011 (DVD-R sequential recording) (current)
Profile: 0x0010 (DVD-ROM) 
Profile: 0x000A (CD-RW) 
Profile: 0x0009 (CD-R) 
Profile: 0x0008 (CD-ROM) 
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).
Driver flags   : SWABAUDIO BURNFREE 
Supported modes: PACKET SAO
Drive buf size : 1563904 = 1527 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  3513 MB        
Total size:     4034 MB (399:43.26) = 1798745 sectors
Lout start:     4034 MB (399:45/20) = 1798745 sectors
Current Secsize: 2048
HINT: use dvd+rw-mediainfo from dvd+rw-tools for information extraction.
Blocks total: 2298496 Blocks current: 2298496 Blocks remaining: 499751
Speed set to 2770 KB/s
Starting to write CD/DVD at speed   2.0 in real unknown mode for single
session.
Last chance to quit, starting real write in    0 seconds. Operation
starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Starting new track at sector: 0
Track 01: 1842 of 3513 MB written (fifo  99%) [buf  99%]   3.0x.Errno: 5
(Input/output error), write_g1 scsi sendcmd: retryable error
CDB:  2A 00 00 0E 65 D0 00 00 10 00
status: 0x0 (GOOD STATUS)
resid: 17408
cmd finished after 42.754s timeout 40s

write track data: error after 1932427264 bytes
wodim: A write error occured.
wodim: Please properly read the error message above.
Errno: 5 (Input/output error), test unit ready scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 04 01 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x04 Qual 0x01 (logical unit is in process of becoming
ready) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.436s timeout 40s
Writing  time:  542.984s
Average write speed   5.0x.
Min drive buffer fill was 99%
Fixating...
Errno: 5 (Input/output error), flush cache scsi sendcmd: no error
CDB:  35 00 00 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 04 01 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x04 Qual 0x01 (logical unit is in process of becoming
ready) Fru 0x0
Sense flags: Blk 0 (not valid) 
cmd finished after 0.940s timeout 120s
Trouble flushing the cache
wodim: Cannot fixate disk.
Fixating time:    0.940s
wodim: fifo had 59101 puts and 58974 gets.
wodim: fifo was 0 times empty and 22707 times full, min fill was 72%.


More info can be found in the list thread here:

https://www.redhat.com/archives/fedora-india/2009-October/msg00002.html

There is another failed burn output, along with the dmesg output at (for the ISB drive) :

http://ankursinha.fedorapeople.org/temp
http://ankursinha.fedorapeople.org/temp1
http://ankursinha.fedorapeople.org/temp.txt

Comment 1 Ankur Sinha (FranciscoD) 2009-11-01 11:19:29 UTC
hi,

I can test more with both my drives and upload the outputs if you need. 

regards,

Ankur

Comment 2 Andre Robatino 2009-11-01 20:35:36 UTC
I've found that contrary to what the wodim man page says, wodim does NOT do automatic formatting like growisofs does.  Hence, before burning a rewritable DVD with wodim, the DVD should be fully formatted.  See my bug #519465.

Comment 3 Andre Robatino 2009-11-01 22:18:13 UTC
One way to ensure the DVD is fully formatted before attempting to burn with wodim is to use the command

growisofs -Z /dev/dvd=/dev/zero

to write zeroes to the entire disc, which as a side effect fully formats it (since growisofs does this properly).  Or, if the disc is previously unused,

wodim -v dev=/dev/dvd -format

If the disc is already partially formatted, this will fail and it's necessary to use the growisofs command.

Comment 4 Ankur Sinha (FranciscoD) 2009-11-02 10:26:28 UTC
(In reply to comment #2)
> I've found that contrary to what the wodim man page says, wodim does NOT do
> automatic formatting like growisofs does.  Hence, before burning a rewritable
> DVD with wodim, the DVD should be fully formatted.  See my bug #519465.  

hi,

My errors are not with rewritable media. All the dvds ive used are dvd+r or dvd-r s

regards,

Ankur

Comment 5 Andre Robatino 2009-11-02 14:52:28 UTC
Sorry about that.  BTW, I'm pretty sure the correct Component for wodim is cdrkit, not cdrtools.  Doing "rpm -qi wodim" shows the source RPM as cdrkit.  cdrecord used to be in cdrtools and wodim is in the cdrkit fork.

http://en.wikipedia.org/wiki/Cdrtools
http://en.wikipedia.org/wiki/Cdrkit

Comment 6 Brian Brock 2010-02-11 18:41:14 UTC
-(~:$)-> wodim -scanbus
scsibus2:
	2,0,0	200) 'TSSTcorp' 'CDRWDVD TS-H493B' 'D400' Removable CD-ROM
	2,1,0	201) *
	2,2,0	202) *
	2,3,0	203) *
	2,4,0	204) *
	2,5,0	205) *
	2,6,0	206) *
	2,7,0	207) *

-(~:$)-> sudo  nice -n -18 wodim -v -eject dev=2,0,0 iso/Fedora-12-x86_64-DVD.iso 
[sudo] password for bbrock: 
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
scsidev: '2,0,0'
scsibus: 2 target: 0 lun: 0
WARNING: the deprecated pseudo SCSI syntax found as device specification.
Support for that may cease in the future versions of wodim. For now,
the device will be mapped to a block device file where possible.
Run "wodim --devices" for details.
Linux sg driver version: 3.5.27
Wodim version: 1.1.9
SCSI buffer size: 64512
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   : 
Vendor_info    : 'TSSTcorp'
Identification : 'CDRWDVD TS-H493B'
Revision       : 'D400'
Device seems to be: Generic mmc2 DVD-ROM.
Current: 0x0000 (Reserved/Unknown)
Profile: 0x000A (CD-RW) 
Profile: 0x0009 (CD-R) 
Profile: 0x0008 (CD-ROM) 
Profile: 0x0010 (DVD-ROM) 
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 : 1357312 = 1325 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  3373 MB        
Total size:     3874 MB (383:51.28) = 1727346 sectors
Lout start:     3874 MB (383:53/21) = 1727346 sectors
Errno: 5 (Input/output error), test unit ready scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: F0 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (valid) 
cmd finished after 0.000s timeout 40s
wodim: No disk / Wrong disk!

...

The drive containing the blank DVD-R is then ejected.

Comment 7 Bug Zapper 2010-04-28 11:02:58 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 8 Bug Zapper 2010-06-28 15:21:57 UTC
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.