From owner-freebsd-hackers Thu Feb 5 09:47:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA24695 for hackers-outgoing; Thu, 5 Feb 1998 09:47:11 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from schubert.promo.de (schubert.Promo.DE [194.45.188.65]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA24684 for ; Thu, 5 Feb 1998 09:46:56 -0800 (PST) (envelope-from stefan@promo.de) Received: from stefan.promo.de (stefan.Promo.DE [194.45.188.81]) by schubert.promo.de (8.8.8/8.8.8) with SMTP id SAA03116; Thu, 5 Feb 1998 18:43:38 +0100 (MET) Date: Thu, 05 Feb 1998 18:46:09 +0100 From: "Stefan Bethke" To: "Jim Carroll" cc: hackers@FreeBSD.ORG Subject: Re: bad144 [was: wd0s1e hard errors] Message-ID: <1557911.3095693169@stefan.promo.de> X-Mailer: Mulberry Demo (MacOS) [1.4.0a1, s/n Evaluation] X-Licensed-To: Unlicensed - for evaluation only MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe hackers" On Don, 5. Feb 1998 11:41 Uhr -0500 "Jim Carroll" wrote: > On Thu, 5 Feb 1998, Tony Kimball wrote: > I am not clear on how to create a file system that is "prepared" for use > with bad144. From reading the docs, it appears we are suppose to reserve > space on the disk when the file system is created. Never having seen a > disk setup for bad144, I was wondering if someone could point me to docs or > examples of how to do this from bad144(8): The bad sector information and replacement sectors are conventionally on- ly accessible through the ``c'' file system partition of the disk. If that partition is used for a file system, the user is responsible for making sure that it does not overlap the bad sector information or any replacement sectors. Thus, one track plus 126 sectors must be reserved to allow use of all of the possible bad sector replacements. Given a (hypothetical) drive with 100 cyl, 64 heads and 32 sectors, and one file system, you would have a label of c: 204800 0 unused d: 204642 0 4.2BSD 0 0 0 204800 - (32 + 126) = 204642 Then, run 'bad144 wd0' as root. Alternativly, you could tell newfs to use less than the full partition, but I find this rather un-intuitive, and using c for a file system also might lead the unwary to false conclusions about the disk. Note that 126 bad sectors is probably not enought for a larger, really old MFM or RLL. However, if you really care about that 5.25" full-height 20 MB disk, you can use bad144 :-) Stefan -- Stefan Bethke Promo Datentechnik | Tel. +49-40-851744-18 + Systemberatung GmbH | Fax. +49-40-851744-44 Eduardstrasse 46-48 | e-mail: stefan@Promo.DE D-20257 Hamburg | http://www.Promo.DE/