Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!genrad!decvax!ucbvax!wlbr.UUCP!pete From: pete@wlbr.UUCP (Pete Lyall) Newsgroups: comp.sys.m68k.pc Subject: Re: hard disk tool needed for os-9 Message-ID: <1035@wlbr.UUCP> Date: Mon, 29-Jun-87 15:43:18 EDT Article-I.D.: wlbr.1035 Posted: Mon Jun 29 15:43:18 1987 Date-Received: Wed, 1-Jul-87 03:04:34 EDT References: Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: voder!wlbr!pete@decwrl.dec.com (0000-Pete Lyall) Distribution: world Organization: Eaton IMS, Westlake Village, CA Lines: 49 Approved: info-68k@ucbvax.berkeley.edu In article PEPRBV@CFAAMP.BITNET (Bob Babcock) writes: >I just installed a replacement hard disk in a Mizar system >running OS-9/68K. The manufacturer's tests show one bad sector, >but this is not detected by the verify stage of format, so the >sector is not locked out. Mizar's documentation says to use the >Mizar badsector utility in a case like this, but it turns out >that they haven't yet written this utility, and can only >recommend that I run format repeatedly in hopes that it will >eventually find the bad spot. I could easily see wasting more >than a man-day learning enough about the file structure and >writing custom code to solve this problem, which means that it >might be cheaper to buy another disk. Has anyone solved this >problem already? Reasonable solutions would be to figure out the >mapping between head/cylinder number and OS-9 sector number and >fiddle with the bit map, or thoroughly test all the unallocated >disk sectors and leave a read-only file on top of any bad sectors >found. > >Thanks for any suggestions. Well, we have a program written by an OS9 UG member (actually, a staffer as well - Carl Kreider) that wrote something called HDREAD. It reads a disk a track at a time, and then backs up and isolates bad sectors if a track has a hit. You can use two companion utilities with this: a) Hooz - determines who the sector's owner is (if any), and b) Mapout - which toggles the sector bit in the bitmap. These may be set up in filter/pipe fashion (i.e. hdread -h ! mapout -z). Caveats: a) I'm not sure that this code is truly PD - I will check. b) It was written & used under OS9/6809 level II, but since it's in MW C, it should be trivial to port. Carl has both 6809 and 68000 systems. -- Pete Lyall Usenet: {trwrb, scgvaxd, ihnp4, voder, vortex}!wlbr!pete Compuserve: 76703,4230 (OS9 Forum Sysop) OS9 (home): (805)-985-0632 (24hr./1200 baud) Phone: (818)-706-5693 (work 9-5 PST) EATON Corp, IMSD, 31717 La Tienda Dr., Westlake Village, Ca. 91359 ----------------------------------------------------------------------