From nobody@FreeBSD.org  Fri Dec 26 21:29:29 2003
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 507ED16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Dec 2003 21:29:29 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 950D043D39
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Dec 2003 21:29:28 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id hBR5TSdL052830
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 26 Dec 2003 21:29:28 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id hBR5TSdQ052829;
	Fri, 26 Dec 2003 21:29:28 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200312270529.hBR5TSdQ052829@www.freebsd.org>
Date: Fri, 26 Dec 2003 21:29:28 -0800 (PST)
From: Thomas Moyer <tommoyer@charter.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dd causes error when copying cd from ATA drives
X-Send-Pr-Version: www-2.0

>Number:         60603
>Category:       i386
>Synopsis:       dd causes error when copying cd from ATA drives
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 26 21:30:23 PST 2003
>Closed-Date:    Thu Jan 05 00:13:38 GMT 2006
>Last-Modified:  Thu Jan 05 00:13:38 GMT 2006
>Originator:     Thomas Moyer
>Release:        5.2-RC2
>Organization:
Penn State University Student
>Environment:
FreeBSD freebsd.john.pa.charter.com 5.2-RC2 FreeBSD 5.2-RC2 #0: Mon Dec 22 07:23:48 GMT 2003   root@wv1u.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
When running the command dd bs=2048 if=/dev/acd0 of=cd.image the following error occurs
acd0:FAILURE - READ_BIG status=51<READY,DSC,ERROR> sensekey=ILLEGAL REQUEST error=4<ABORTED>
dd: /dev/acd0: Input/output error
250167+0 records in
250167+0 records out
512342016 bytes transferred in 841.234361 secs (609036 bytes/sec)
>How-To-Repeat:
Using GENERIC dd bs=2048 if=/dev/acd0 of=cd.image
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: Thomas Moyer <tommoyer@charter.net>
Cc: freebsd-gnats-submit@freebsd.org, freebsd-i386@freebsd.org
Subject: Re: i386/60603: dd causes error when copying cd from ATA drives
Date: Sun, 28 Dec 2003 22:02:46 +1100 (EST)

 On Fri, 26 Dec 2003, Thomas Moyer wrote:
 
 > >Description:
 > When running the command dd bs=2048 if=/dev/acd0 of=cd.image the following error occurs
 > acd0:FAILURE - READ_BIG status=51<READY,DSC,ERROR> sensekey=ILLEGAL REQUEST error=4<ABORTED>
 > dd: /dev/acd0: Input/output error
 > 250167+0 records in
 > 250167+0 records out
 > 512342016 bytes transferred in 841.234361 secs (609036 bytes/sec)
 > >How-To-Repeat:
 > Using GENERIC dd bs=2048 if=/dev/acd0 of=cd.image
 
 I believe this is caused by a bad table of contents on the media.  The
 TOC sometimes says that there are more blocks than there actually are,
 and dd handles this perfectly by getting an i/o error attempting to
 read a nonexistent block.
 
 I see this problem deterministically for cd's written by burncd, perhaps
 because I always create multi-session cd's.  Factory-burned cd's mostly
 don't have it.  burncd seems to do the right things, but somehow the TOC
 always says that the track has more sectors that burncd wrote.  Usually
 only 1 more. but for small writes the minimum track length seems to be
 300.  This is with "acd0: CDRW <RICOH CD-RW MP7320A> at ata1-master UDMA33"
 I tried to use cdrecord on
 "cd0: <RICOH CD-RW MP7320A bp13> Removable CD-ROM SCSI-0 device"
 for comparison, but atapicam doesn't seem to support cdrecord.
 
 Bruce
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Thu Jan 5 00:11:28 UTC 2006 
State-Changed-Why:  
Cannot reproduce this probelm on 6.0. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60603 
>Unformatted:
