bad sector information

gertjan at txsil.UUCP gertjan at txsil.UUCP
Wed Dec 12 08:41:00 AEST 1984


/* Written  3:59 pm  Dec  3, 1984 by uokmet!root in txsil:net.bugs.4bsd */
> 4.2BSD wants the BAD SECTOR information in the MANUFACTURER'S AREA, NOT
> in the SITE AREA where the DEC and EMULEX formatters put them!!!!!!!!!!
> 4.2BSD does NOT recognize the information put down by the DEC and EMULEX
> formatters!  You have to print them out using the DEC/EMULEX formatter
> and then enter them by hand via bad144(8).  This little tidbit of
> information appears NOWHERE in the documentation that was distributed to
> us with 4.2BSD!!!

The same problem exists on 2.9BSD.  From bad144(8):  "The bad sector file
information is located in the first 5 even numbered sectors of the last track
of the disk pack."  Our Emulex diagnostic pack puts the info on the 2nd 5
even numbered sectors.  The solution was to modify "rm.c" (rm02 driver),
badsect(8) and bad144(8).  The modification for "rm.c" is below.  Some drivers
(including the "rm") may need the change in more than one place...

	bbp->b_bcount = sizeof(struct dkbad);
	bbp->b_un.b_addr = (caddr_t)&rmbad[unit];
	bbp->b_blkno = (daddr_t)RM_NCYL * (RM_NSECT*RM_NTRAC)
		- RM_NSECT + 10;
/*	Emulex diagnostic starts the info on sector 10		*/

The change is similar in bad144.c (in the "lseek" calls).

	Kevin W. Thomas
	Univ. of Oklahoma
	School of Meteorology
	Norman, OK  73019

UUCP:  ...!ctvax!uokvax!uokmet!kwthomas (root)
/* End of text from txsil:net.bugs.4bsd */



More information about the Comp.bugs.2bsd mailing list