*BSD News Article 85907


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news.nacamar.de!fu-berlin.de!informatik.tu-muenchen.de!main.Germany.EU.net!Dortmund.Germany.EU.net!not-for-mail
From: bs@Germany.EU.net (Bernard Steiner)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.sys.ibm.pc.hardware.storage
Subject: Re: bad144: bad sector file contains duplicates.
Date: 31 Dec 1996 13:18:50 +0100
Organization: EUnet Deutschland GmbH, Dortmund, Germany
Lines: 21
Message-ID: <5ab0ba$c8c@Germany.EU.net>
References: <32C70BDD.41C6@ucdavis.edu> <5a9f16$bf4@Germany.EU.net> <32C878BB.41C6@ucdavis.edu>
NNTP-Posting-Host: qwerty.germany.eu.net
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33368 comp.sys.ibm.pc.hardware.storage:85810


In article <32C878BB.41C6@ucdavis.edu>, Michael White <mdwhite@ucdavis.edu> writes:
|> > |> I ran bad144 (and re-directed the output to a file) and got:
|> > I don't see why you would want to do that, unless your
|> > drive doesn't handle bad blocks automagically, which I doubt.
|> I did it because my stupid system keeps crashing and I am trying
|> to find the cause.

AFAIK, to use bad144, you need a disk drive that does not handle bad blocks by
itself. And vice versa.
Then, you need to disklabel the drive (or, more precisely, the slice)
such that it uses bad144 mapping. This means that your 'c' partition has at
least enough room at the end to hold all bad blocks plus the bad block
data structure (I think), which amounts to 126 sectors (or so). Traditionally,
you sacrifice the last cylinder of the drive (slice) for this.
Thus, it is not possible to use 'c' as a filesystem or swap partition if you
bad144 it, and the last handful of sectors want to be left alone on 'c'.

You don't want to use bad144 for your setup.

Bernard