Date: Sun, 1 Oct 1995 17:45:07 +1000 From: mark@seeware.DIALix.oz.au To: FreeBSD-gnats-submit@freebsd.org Subject: kern/757: kern / removal of CD-ROM -> reboot & single-user mode Message-ID: <199510010745.RAA02827@putte.seeware.DIALix.oz.au> Resent-Message-ID: <199510010800.BAA20374@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510010745.RAA02827>