Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!njin!princeton!udel!udccvax1!brantley From: brantley@vax1.acs.udel.EDU (brantley) Newsgroups: comp.os.minix Subject: What's the deal here with my FDC Keywords: bug floppy.c what am i doing Message-ID: <2120@udccvax1.acs.udel.EDU> Date: 15 Oct 88 17:12:23 GMT Reply-To: hermit@shockeye.uucp Organization: The Lab Rats Lines: 30 Summary: Disclaimer: This posting is obviously a forgery I'm posting this for a friend whose Usenet access is temporarily not. Hello. I've just compiled Minix 1.2 on a 386 AT-clone ("Fountain 386") and lo and behold, Unrecoverable disk error on device 2/1. Disk in drive 0 is not root file system panic, etc... I managed to fix it - in kernel/floppy.c, in fdc_results(), in this area: if ((status & CTL_BUSY) == 0) return (OK); if ((status & (MASTER | DIRECTION)) = CTL_ACCEPTING) return (OK); if ((status & DIRECTION) == 0) return (ERR_STATUS); I inserted the middle line up there. What I would like to know, since I don't have diddly documentation on the floppy controller, is, is that a correct kind of thing to do? It was just an educated guess and I have no idea why it works... And has anybody else had this problem? Mark Buda hermit@shockeye.uucp / ...!rutgers!bpa!vu-vlsi!devon!shockeye!hermit -- ******************************************************************************* * "the heart and mind united in a single, perfect sphere" * * brantley@vax1.acs.udel.edu * *******************************************************************************