From owner-freebsd-bugs Sun Oct 1 01:00:07 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id BAA20392 for bugs-outgoing; Sun, 1 Oct 1995 01:00:07 -0700 Received: (from gnats@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id BAA20374 ; Sun, 1 Oct 1995 01:00:03 -0700 Resent-Date: Sun, 1 Oct 1995 01:00:03 -0700 Resent-Message-Id: <199510010800.BAA20374@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, mark@seeware.DIALix.oz.au 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 ; 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 X-Send-Pr-Version: 3.2 Subject: kern/757: kern / removal of CD-ROM -> reboot & single-user mode Sender: owner-bugs@freebsd.org Precedence: bulk >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: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 1 01:00:02 PDT 1995 >Last-Modified: >Originator: Mark Hannon >Organization: - >Release: FreeBSD 2.0.5-RELEASE >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 >Audit-Trail: >Unformatted: