From yoshiaki@kt.rim.or.jp  Thu Oct  9 07:12:09 1997
Received: from mail.kt.rim.or.jp (root@mail.kt.rim.or.jp [202.247.130.53])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA02206
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 9 Oct 1997 07:12:02 -0700 (PDT)
          (envelope-from yoshiaki@kt.rim.or.jp)
Received: from singer.kt.rim.or.jp (ppp361.kt.rim.or.jp [202.247.140.61]) by mail.kt.rim.or.jp (8.8.5/3.4W3-rim1.1) with ESMTP id XAA21300; Thu, 9 Oct 1997 23:11:54 +0900 (JST)
Received: (from yoshiaki@localhost) by singer.kt.rim.or.jp (8.8.5/3.4Wbeta3-96070610) id XAA01325; Thu, 9 Oct 1997 23:10:43 +0900 (JST)
Message-Id: <199710091410.XAA01325@singer.kt.rim.or.jp>
Date: Thu, 9 Oct 1997 23:10:43 +0900 (JST)
From: yoshiaki@kt.rim.or.jp
Reply-To: yoshiaki@kt.rim.or.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: CD-ROM can't mount at 2.2.5-BETA
X-Send-Pr-Version: 3.2

>Number:         4735
>Category:       kern
>Synopsis:       SCSI CDROM (cd9660) can't mount
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct  9 07:20:00 PDT 1997
>Closed-Date:    Fri Oct 10 21:38:54 MEST 1997
>Last-Modified:  Fri Oct 10 21:40:08 MEST 1997
>Originator:     Yoshiaki Uchikawa
>Release:        FreeBSD 2.2.5-971005-BETA i386
>Organization:
RIMNET
>Environment:

My systems are baseed 2.2-970618-RELENG,and I replaced only kernel
FreeBSD 2.2.5-971005-BETA.

CPU: Pentium Pro (166.19-MHz 686-class CPU)
real memory  = 67108864 (65536K bytes)
avail memory = 63623168 (62132K bytes)
chip0 <Intel 82440FX (Natoma) PCI and memory controller> rev 2 on pci0:0
chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:1:0
chip2 <Intel 82371SB IDE interface> rev 0 on pci0:1:1
ahc0 <Adaptec 2940 Ultra SCSI host adapter> rev 0 int a irq 9 on pci0:9

(ahc0:0:0): "IBM DCAS-34330 S61A" type 0 fixed SCSI 2
sd0(ahc0:0:0): Direct-Access 4134MB (8467200 512 byte sectors)
(ahc0:1:0): "IBM DORS-32160 S82C" type 0 fixed SCSI 2
sd1(ahc0:1:0): Direct-Access 2063MB (4226725 512 byte sectors)
(ahc0:2:0): "NEC CD-ROM DRIVE:502 2.0r" type 5 removable SCSI 2
cd0(ahc0:2:0): CD-ROM cd present [329583 x 2048 byte records]

ncr0 <ncr 53c875 fast20 wide scsi> rev 3 int a irq 9 on pci0:13
ncr0 waiting for scsi devices to settle
(ncr0:3:0): "OLYMPUS MOS331 0.61" type 7 removable SCSI 2
od0(ncr0:3:0): Optical 
od0(ncr0:3:0): 5.0 MB/s (200 ns, offset 8)

>Description:

 # mount -t cd9660 /dev/cd0a /mnt
 cd9660: /dev/cd0a: Invalid argument

I changed CDROM to secondary SCSI bus - ncr0, and same error was happen
"cd9660:/dev/cd0a: Invalid argument".

>How-To-Repeat:

 Every time, this error occur.

>Fix:
On 2.2-970618-RELENG system, this error have not happen. 

>Release-Note:
>Audit-Trail:

From: j@uriah.heep.sax.de (J Wunsch)
To: yoshiaki@kt.rim.or.jp
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/4735: CD-ROM can't mount at 2.2.5-BETA
Date: Thu, 9 Oct 1997 20:45:26 +0200

 As yoshiaki@kt.rim.or.jp wrote:
 
 >  # mount -t cd9660 /dev/cd0a /mnt
 >  cd9660: /dev/cd0a: Invalid argument
 
 > >Fix:
 > On 2.2-970618-RELENG system, this error have not happen. 
 
 What kind of CD-ROM is it?  I think the only change that went into the
 cd9660 code in RELENG_2_2 lately is to support mulit-session CDs.  Of
 course, now if your CD is a bogus multi-session, the old code would
 have (wrongly) mounted the very first session of the medium, while the
 new code might complain about a non-ISO9660 filesystem in the current
 (i.e., most recent) session.
 
 Does it work if you ``mount -o -s=0 -t cd9660 /dev/cd0a /mnt''?  (This
 forces the mount of the very first session, like it was the case
 previously.)  If so, can you analyze the situation further (like with
 `cdcontrol info')?  If all else fails, i'd be interested in the CD-ROM
 medium to debug the situation.
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Fri Oct 10 21:38:54 MEST 1997 
State-Changed-Why:  

It turned out that the originator was using an old mount_cd9660 binary 
together with a new kernel.  Since the struct cd9660 has changed, this 
could not work. 
>Unformatted:
