Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Feb 1998 18:46:09 +0100
From:      "Stefan Bethke" <stefan@promo.de>
To:        "Jim Carroll" <jim@carroll.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: bad144 [was: wd0s1e hard errors]
Message-ID:  <1557911.3095693169@stefan.promo.de>

next in thread | raw e-mail | index | archive | help
On Don, 5. Feb 1998 11:41 Uhr -0500 "Jim Carroll" <jim@carroll.com> 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/




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