From nobody@FreeBSD.ORG Thu May 20 08:53:45 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 473B815217; Thu, 20 May 1999 08:53:45 -0700 (PDT)
Message-Id: <19990520155345.473B815217@hub.freebsd.org>
Date: Thu, 20 May 1999 08:53:45 -0700 (PDT)
From: dalcocer@home.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: Remounting CD on IDE CDROM after eject fails: read_toc failed
X-Send-Pr-Version: www-1.0

>Number:         11801
>Category:       i386
>Synopsis:       Remounting CD on IDE CDROM after eject fails: read_toc failed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 20 09:00:01 PDT 1999
>Closed-Date:    Tue May 29 06:43:24 PDT 2001
>Last-Modified:  Tue May 29 06:43:43 PDT 2001
>Originator:     Dario Alcocer
>Release:        FreeBSD 3.1-RELEASE
>Organization:
>Environment:
FreeBSD pino.localdomain 3.1-RELEASE FreeBSD 3.1-RELEASE #3: Tue May 18 04:30:37 PDT 1999     root@pino.localdomain:/usr/src/sys/compile/PINO i386
>Description:
Remounting any CD-ROM on an IDE-CDROM drive fails if CD is ejected
and reinserted.  The kernel error message is:

acd0: read_toc failed

IDE-CDROM drive is a Cyberdrive 24x, jumpered as slave drive on
primary IDE channel.

Portion of dmesg:
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <WDC AC2850F>
wd0: 814MB (1667232 sectors), 1654 cyls, 16 heads, 63 S/T, 512 B/S
wdc0: unit 1 (atapi): <ATAPI CDROM/V2.10>, removable, accel, dma, iordy
acd0: drive speed 4125KB/sec, 128KB cache
acd0: supported read types: CD-R, CD-RW, CD-DA
acd0: Audio: play, 255 volume levels
acd0: Mechanism: ejectable tray
acd0: Medium: CD-ROM 120mm data disc loaded, unlocked

>How-To-Repeat:
1. Open IDE CDROM drive tray, insert any ISO-9660 CD (for example,
insert FreeBSD disk 1.)
2. Push tray in.
3. mount /cdrom
4. umount /cdrom
5. Open CDROM drive tray, then close again.
6. mount /cdrom
7. You should see the following message on the console screen:
acd0: read_toc failed

The only way I have found to work around the problem is to do
a hard reset (i.e. shutdown -h now, turn off machine, turn on
machine.)  Note that a soft reset (shutdown -r now) will not
make the problem go away.
>Fix:


>Release-Note:
>Audit-Trail:

From: "Daniel C. Sobral" <dcs@newsguy.com>
To: dalcocer@home.com
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: i386/11801: Remounting CD on IDE CDROM after eject fails: read_toc 
 failed
Date: Sat, 22 May 1999 02:36:33 +0900

 dalcocer@home.com wrote:
 > 
 > >Number:         11801
 > >Category:       i386
 > >Synopsis:       Remounting CD on IDE CDROM after eject fails: read_toc failed
 
 Does it happen with all cd types? Check the /var/log/messages right
 after mounting the cd for it's type. In particular, if you are
 mounting Joliet cds, please try non-Joliet ones.
 
 --
 Daniel C. Sobral			(8-DCS)
 dcs@newsguy.com
 dcs@freebsd.org
 
 	"If at first you don't succeed, skydiving is not for you."
 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Tue May 29 06:43:24 PDT 2001 
State-Changed-Why:  
We have a new ATA subsystem. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=11801 
>Unformatted:
