Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Mar 1999 20:00:01 -0800 (PST)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/10695: fd fails for all operations
Message-ID:  <199903290400.UAA24566@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/10695; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@FreeBSD.ORG, tomdean@ix.netcom.com
Cc:  
Subject: Re: kern/10695: fd fails for all operations
Date: Mon, 29 Mar 1999 13:50:33 +1000

 >>Description:
 >
 >All operations to fd fail.  The drive works with DOS.
 >With known-good floppies:
 >
 ># mount_msdos /dev/fd0a /floppy
 >mount_msdos: /dev/fd0a: Input/output error
 ># dmesg
 ><snip>
 >fd0: recal failed ST0 70<abnrml,seek_cmplt,equ_chck> cyl 0
 >fd0: recal failed ST0 70<abnrml,seek_cmplt,equ_chck> cyl 0
 >fd0: recal failed ST0 70<abnrml,seek_cmplt,equ_chck> cyl 0
 >fd0: recal failed ST0 70<abnrml,seek_cmplt,equ_chck> cyl 0
 >fd0c: hard error reading fsbn 0 (No status)
 
 Does the following change help?
 
 Bruce
 
 diff -c2 fd.c~ fd.c
 *** fd.c~	Fri Feb 12 03:59:44 1999
 --- fd.c	Mon Mar 29 13:46:13 1999
 ***************
 *** 1991,1996 ****
   			 * reset, so it has lost track of the current
   			 * cylinder.  Recalibrate to handle this case.
   			 */
 ! 			fdc->state = STARTRECAL;
   		}
   		return(1);	/* will return immediatly */
 --- 1991,1997 ----
   			 * reset, so it has lost track of the current
   			 * cylinder.  Recalibrate to handle this case.
 + 			 * But first, discard the results of the reset.
   			 */
 ! 			fdc->state = RESETCOMPLETE;
   		}
   		return(1);	/* will return immediatly */
 


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




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