Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jun 1999 00:39:45 -0700
From:      Travis Cole <tcole@balsam.methow.com>
To:        Jamie Howard <howardjp@wam.umd.edu>, Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: A way to crash system (3.1 & 3.2) with floppy
Message-ID:  <19990629003945.A28540@wcug.wwu.edu>
In-Reply-To: <Pine.LNX.4.10.9906282128380.30685-100000@dragon.ham.muohio.edu>; from Jamie Howard on Mon, Jun 28, 1999 at 09:30:05PM -0400
References:  <Pine.GSO.3.96.990628214558.21814A-100000@sol.cs.binghamton.edu> <Pine.LNX.4.10.9906282128380.30685-100000@dragon.ham.muohio.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 28, 1999 at 09:30:05PM -0400, Jamie Howard wrote:
> On Mon, 28 Jun 1999, Zhihui Zhang wrote:
> 
> > Suppose you have a *write-protected* DOS floppy and you do:
> > 
> > # mount -t msdos /dev/fd0 /floppy  <-- this is OK
> > 
> > # cp somefile /floppy  <-- a lot of error messages
> > 
> > # umount /floppy   <-- crash
> > 
> > Now the system tries to sync the dirty buffers and fails.  You have to
> > press a key to reboot. 
> > 
> > Is there anything wrong here or FreeBSD simply does not handle this in a
> > more elegant way? 
> > 
> > Thanks for any help.
> 
> I had this happen to me the other day on my 3.2 system.  I thought it was
> just me because I had mounted the disk several days before and figured I
> had swapped it out.  I also had to reformat the floppy on a Win95 system
> to make it usable again.
> 
> Jamie

I just reproduced this on a system running 4.0-CURRENT from about
Sun Jun 27 01:12:42 PDT

I got a ton of these errors in dmesg and /var/log/messages:
Jun 29 00:17:53 marx /kernel: fd0c: hard error writing fsbn 19 (ST0 40<abnrml> ST1 2<write_protect> ST2 0 cyl 0 hd 1 sec 2)

And it let me try several umount commands and even a umount -f.  None
of them actualy umounted the floppy drive and it completly reboot my computer
after about 2 or 3 mins.  No panic or anything.  Once second I'm looking at X, 
next second I'm looking at my BIOS bootup screen.

-- 
--Travis


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990629003945.A28540>