Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.6.2.17 $; site txsil.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!inuxc!pur-ee!uiucdcs!txsil!gertjan From: gertjan@txsil.UUCP Newsgroups: net.bugs.2bsd Subject: bad sector information Message-ID: <13200001@txsil.UUCP> Date: Tue, 11-Dec-84 17:41:00 EST Article-I.D.: txsil.13200001 Posted: Tue Dec 11 17:41:00 1984 Date-Received: Sat, 15-Dec-84 02:25:12 EST Lines: 32 Nf-ID: #N:txsil:13200001:000:1420 Nf-From: txsil!gertjan Dec 11 16:41:00 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 */