ISO burn silently causes input/output error and end of medium

Bug #465035 reported by Richard Theil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cdrkit (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: wodim

I recently have tried to download and burn Ubuntu ISO images to CD. On different computers (C2D on P35 board, Thinkpad T41), with different drives (LiteOn DH20A1S, Toshiba SD-R5002, and IBM Ultrabay Slim DVD Burner) and different media (Tevion, Platinum), I see "Input/Output errors" during the installation, as described in

https://bugs.launchpad.net/ubuntu/+bug/245794

The burn process (via Nautilus right-click) works without indication of any error. However, when trying to dd if=/dev/scd0 of=test.iso back from cd to hd, the copying will fail right before the end of the medium, indicating an "input/output error". This happens every time with both mentioned karmic machines I have around. md5sum of /dev/scd0 will also fail. The amount of data where the errors occur before the proper end of the medium is in a couple-of-dozen kilobytes range, but not reproducible, in fact I have seen a differing amount for one misburned cd.

To rule out a bad streak of luck, I downloaded and built current Schily cdrtools from source. These work perfectly well from the command line, and when burned without any further options, md5sum /dev/scd0 perfectly matches the distribution md5 for the karmic iso (8790491b...).

Therefore, I assume there is a bug somewhere in the brasero/wodim stack, and with the given symptoms (silent burn failure, obscure installation errors in the process, coasters) it is a particularly nasty one. I did not see any of the other bugs mention misburned cds after a silent failure, so I post this new bug. Lacking an ample supply of blanks after all the mis-burns, I do not feel much inclined right now to spend the last remaining ones on trying to generate logs of the faulty case.

rich@neon:~$ lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10

rich@neon:~$ apt-cache policy wodim
wodim:
  Installiert: 9:1.1.9-1ubuntu2
  Kandidat: 9:1.1.9-1ubuntu2
  Versions-Tabelle:
 *** 9:1.1.9-1ubuntu2 0
        500 http://de.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

rich@neon:~$ apt-cache policy brasero
brasero:
  Installiert: 2.28.1-0ubuntu1
  Kandidat: 2.28.1-0ubuntu1
  Versions-Tabelle:
 *** 2.28.1-0ubuntu1 0
        500 http://de.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

Drive hardware, one SATA, one IDE
---------------------------------------------

 3,0,0 300) 'ATAPI ' 'DVD A DH20A1S ' 'UX14' Removable CD-ROM
 6,1,0 601) 'TOSHIBA ' 'DVD-ROM SD-R5002' '1031' Removable CD-ROM

Bad case verification after Right-Click Nautilus iso burn:
---------------------------------------------------------------------

rich@neon:~/Source/cdrtools-2.01.01$ dd if=/dev/scd0 of=/home/rich/test.iso
dd: Lesen von "/dev/scd0": Input/output error
1412832+0 Datensaetze ein
1412832+0 Datensaetze aus
723369984 Bytes (723 MB) kopiert, 161,778 s, 4,5 MB/s
rich@neon:~/Source/cdrtools-2.01.01$ md5sum /dev/scd0
md5sum: /dev/scd0: Input/output error
rich@neon:~/Source/cdrtools-2.01.01$

Good case with cdrecord:
--------------------------------

rich@neon:~/Source/cdrtools-2.01.01$ /opt/schily/bin/cdrecord -v speed=1 dev=3,0,0 /home/rich/Downloads/ubuntu-9.10-desktop-i386.iso
/opt/schily/bin/cdrecord: No write mode specified.
/opt/schily/bin/cdrecord: Assuming -sao mode.
/opt/schily/bin/cdrecord: If your drive does not accept -sao, try -tao.
/opt/schily/bin/cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 2.01.01a66 (i686-pc-linux-gnu) Copyright (C) 1995-2009 JÔøΩrg Schilling
TOC Type: 1 = CD-ROM
scsidev: '3,0,0'
scsibus: 3 target: 0 lun: 0
Linux sg driver version: 3.5.34
Using libscg version 'schily-0.9'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'ATAPI '
Identifikation : 'DVD A DH20A1S '
Revision : 'UX14'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-R
Profile: DVD+R/DL
Profile: DVD+R
Profile: DVD+RW
Profile: DVD-R/DL layer jump recording
Profile: DVD-R/DL sequential recording
Profile: DVD-RW sequential recording
Profile: DVD-RW restricted overwrite
Profile: DVD-RAM
Profile: DVD-R sequential recording
Profile: DVD-ROM
Profile: CD-RW
Profile: CD-R (current)
Profile: CD-ROM
Profile: Removable Disk
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE FORCESPEED
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R LAYER_JUMP
Drive buf size : 988416 = 965 KB
/opt/schily/bin/cdrecord: Warning: The DMA speed test has been skipped.
FIFO size : 4194304 = 4096 KB
Track 01: data 689 MB
Total size: 792 MB (78:30.21) = 353266 sectors
Lout start: 792 MB (78:32/16) = 353266 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 5
Disk Is not unrestricted
Disk Is not erasable
  Disk sub type: Medium Type A, high Beta category (A+) (3)
  ATIP start of lead in: -11634 (97:26/66)
  ATIP start of lead out: 359846 (79:59/71)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation

    Capacity Blklen/Sparesz. Format-type Type
      449849 2048 0x00 No Media Present or Unknown Capacity
Blocks total: 359846 Blocks current: 359846 Blocks remaining: 6580
Forcespeed is OFF.
Starting to write CD/DVD/BD at speed 16 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.
BURN-Free is OFF.
Performing OPC...
Sending CUE sheet...
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01: 689 of 689 MB written (fifo 100%) [buf 99%] 16.9x.
Track 01: Total bytes read/written: 723488768/723488768 (353266 sectors).
Writing time: 318.341s
Average write speed 15.5x.
Min drive buffer fill was 99%
Fixating...
Fixating time: 7.073s
/opt/schily/bin/cdrecord: fifo had 11396 puts and 11396 gets.
/opt/schily/bin/cdrecord: fifo was 0 times empty and 11324 times full, min fill was 90%.

rich@neon:~/Source/cdrtools-2.01.01$ dd if=/dev/scd0 of=/home/rich/test.iso
1413064+0 Datensaetze ein
1413064+0 Datensaetze aus
723488768 Bytes (723 MB) kopiert, 153,932 s, 4,7 MB/s
rich@neon:~/Source/cdrtools-2.01.01$ md5sum /dev/scd0
8790491bfa9d00f283ed9dd2d77b3906 /dev/scd0

Revision history for this message
Richard Theil (richard-theil) wrote :
Download full text (8.1 KiB)

A bit of investigation and the sacrifice of one blank CD for the greater ubuntu good later, it looks a lot like the errors are being caused by the default burn mode:

cdrecord defaults to SAO mode: Works.
wodim defaults to TAO mode: Fails.
wodim forced to use SAO mode: Works.

The behaviour is described here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427771
http://lists.alioth.debian.org/pipermail/debburn-devel/2009-July/000661.html

Looks like the consensus is that it just happens with TAO mode and these disks have some bad blocks at the end, so they should be padded (are the ubuntu isos?!) and we have to live with it. I'd rather be able to copy the image back to hd and do an md5 of the drive, however.

Further logs attached to show the modes (I leave out the probable fail case of cdrecord running in TAO):

Wodim, by default, seems to run in TAO mode and fails
-----------------------------------------------------

rich@neon:~/Source/cdrtools-2.01.01$ wodim -scanbus
scsibus3:
 3,0,0 300) 'ATAPI ' 'DVD A DH20A1S ' 'UX14' Removable CD-ROM
 3,1,0 301) *
 3,2,0 302) *
 3,3,0 303) *
 3,4,0 304) *
 3,5,0 305) *
 3,6,0 306) *
 3,7,0 307) *
scsibus6:
 6,0,0 600) *
 6,1,0 601) 'TOSHIBA ' 'DVD-ROM SD-R5002' '1031' Removable CD-ROM
 6,2,0 602) *
 6,3,0 603) *
 6,4,0 604) *
 6,5,0 605) *
 6,6,0 606) *
 6,7,0 607) *
rich@neon:~/Source/cdrtools-2.01.01$ wodim -v speed=1 dev=3,0,0 /home/rich/Downloads/ubuntu-9.10-desktop-i386.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.scsidev: '3,0,0'
scsibus: 3 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 : 'ATAPI '
Identification : 'DVD A DH20A1S '
Revision : 'UX14'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0009 (CD-R)
Profile: 0x002B (DVD+R/DL)
Profile: 0x001B (DVD+R)
Profile: 0x001A (DVD+RW)
Profile: 0x0016 (DVD-R/DL layer jump recording)
Profile: 0x0015 (DVD-R/DL sequential recording)
Profile: 0x0014 (DVD-RW sequential recording)
Profile: 0x0013 (DVD-RW restricted overwrite)
Profile: 0x0012 (DVD-RAM)
Profile: 0x0011 (DVD-R sequential recording)
Profile: 0x0010 (DVD-ROM)
Profile: 0x000A (CD-RW)
Profile: 0x0009 (CD-R) (current)
Profile: 0x0008 (CD-ROM)
Profile: 0x0002 (Removable disk)
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE FORCESPEED
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 988416 = 965 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
FIFO size : 12582912 = 12288 KB
Track 01: data 689 MB ...

Read more...

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.