Bug 127783

Summary: cdrecord truncates data written to IDE CD-RW
Product: [Fedora] Fedora Reporter: Allen Kistler <ackistler>
Component: cdrtoolsAssignee: Harald Hoyer <harald>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: barryn
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-13 12:39:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Allen Kistler 2004-07-13 20:12:54 UTC
Description of problem:
I've got a Sony CRX216E IDE CD-RW drive (Sony appears to make them
just for Dell) on an FC2 box that I'm trying to use to burn a CD-R.

Example 1:
The iso has 316375040 bytes (154480 sectors).
cdrecord says it wrote 316375040 bytes (without error).
However the CD, when mounted, generates seek errors.

dd if=/dev/hdc of=blah.iso bs=2048
only reads in 154468 sectors.
That's 12 sectors shy of what's supposed to be there.

I've tried
cdrecord dev=/dev/hdc image.iso
and
cdrecord dev=ATAPI:0,0,0 image.iso (Yes, it's the only IDE device.)
and
cdrecord speed=16 dev=/dev/hdc image.iso

Example 2:
(Slackware 10 CD #1, BTW) iso has 682819584 bytes (333408 sectors).
dd only reads back 333348 sectors (60 short).

Version-Release number of selected component (if applicable):
cdrecord-2.01-0.a27.4.FC2.1

How reproducible:
Always

Steps to Reproduce:
1. cdrecord dev=/dev/hdc original.iso
2. dd if=/dev/hdc of=readback.iso bs=2048
3. compare files sizes/sector counts of original and readback
    

Actual Results:  Data written to CD is truncated compared to iso
image.  CD created generates seek errors when trying to seek to
truncated sectors.

Expected Results:  dd should read back the same iso that was written.

Additional info:

Kernel version: 2.6.6-1.435.2.3smp

I've also tried cdrecord-2.01.0.a32-1 from rawhide/development.

A different box with FC1, cdrecord-2.01-0.a19.2, and a SCSI writer
creates CDs correctly from these same ISOs.

I can check that different OS/software uses the same IDE hardware
without error, but I expect the error is not in the hardware.

Comment 1 Barry K. Nathan 2004-07-14 05:09:31 UTC
> 1. cdrecord dev=/dev/hdc original.iso

Try adding "-dao" or "-sao" to that command line and see if that fixes it.

Comment 2 Harald Hoyer 2004-07-14 08:13:41 UTC
correct! Thx Barry!

Comment 3 Allen Kistler 2004-07-15 03:20:32 UTC
The dao/sao option writes the CD correctly.
dd copies back the correct size iso.  diff verifies it's identical.