From mark@seeware.DIALix.oz.au  Sun Oct  1 00:55:25 1995
Received: from melbourne.DIALix.oz.au (seeuucp@melbourne.DIALix.oz.au [192.203.228.98])
          by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id AAA19347
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 1 Oct 1995 00:55:20 -0700
Received: (from seeuucp@localhost) by melbourne.DIALix.oz.au (sendmail) with UUCP id RAA19209 for FreeBSD-gnats-submit@freebsd.org; Sun, 1 Oct 1995 17:55:05 +1000 (EST)
Received: (from mark@localhost) by putte.seeware.DIALix.oz.au (8.6.11/8.6.9) id RAA02827; Sun, 1 Oct 1995 17:45:07 +1000
Message-Id: <199510010745.RAA02827@putte.seeware.DIALix.oz.au>
Date: Sun, 1 Oct 1995 17:45:07 +1000
From: mark@seeware.DIALix.oz.au
Reply-To: mark@seeware.DIALix.oz.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: kern / removal of CD-ROM -> reboot & single-user mode 
X-Send-Pr-Version: 3.2

>Number:         757
>Category:       kern
>Synopsis:       Removal of mounted CD-ROM causes reboot & single user mode
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct  1 01:00:02 PDT 1995
>Closed-Date:    Tue Apr 9 14:56:41 PDT 1996
>Last-Modified:  Tue Apr  9 14:57:24 PDT 1996
>Originator:     Mark Hannon
>Release:        FreeBSD 2.0.5-RELEASE
>Organization:
-
>Environment:


>Description:

For some stupid reason I removed a mounted CD-ROM from my 
soundblaster CD-ROM yesterday afternoon.  This morning when
I came to the machine I discovered that the machine had rebooted 
during the evening and the reboot had failed at the file system mount step.  

This was obviously because no CD-ROM was present in the drive
and /cdrom was listed in my /etc/fstab.  The implication of a
failed mount are of course that the machine is in single-user
mode and allows root access without a password.

I am not 100% certain that the CD-ROM was the cause of failure 
but the last message in /var/log/messages was:
 Oct  1 02:00:05 putte /kernel: matcd0: Not ready while reading block 144
 Oct  1 02:00:05 putte /kernel: matcd0: Media changed - Further I/O aborted until device closed

This leads me to believe that an attempt was made to access the CD-ROM
at 2am and this caused the reboot (my /etc/daily is run at 2am if this
gives any clues).

>How-To-Repeat:

Remove a mounted CD-ROM and wait for disaster

>Fix:

I guess (I haven't tried it) that the following change in
/etc/rc would at least stop root access at reboot.

mount -a -t nonfs,cd9660   
if [ $? != 0 ]; then
        echo "Filesystem mount failed, startup aborted"
	exit 1
fi
mount -a -t cd9660   



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: scrappy 
State-Changed-When: Tue Apr 9 14:56:41 PDT 1996 
State-Changed-Why:  
committer reports only ever having seen this panic once 
>Unformatted:
