*BSD News Article 78117


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!samba.rahul.net!rahul.net!a2i!olivea!news.sgi.com!news.msfc.nasa.gov!newsfeed.internetmci.com!news.webspan.net!usenet
From: "Jordan K. Hubbard" <jkh@FreeBSD.org>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Bad sector  (HELP) ?
Date: Thu, 12 Sep 1996 00:15:19 -0700
Organization: Walnut Creek CDROM
Lines: 24
Message-ID: <3237B887.446B9B3D@FreeBSD.org>
References: <5180up$gbo@herald.concentric.net>
NNTP-Posting-Host: time.cdrom.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (X11; I; FreeBSD 2.2-CURRENT i386)
To: Dan Tso <Dantso@cris.com>

Dan Tso wrote:
> 
>         I am running FreeBSD 2.1 from an Adaptec 2940 SCSI controller.
>         Recently I am finding messages like these in /var/log/messages:
> 
> Sep 11 20:02:44 dnn /kernel: sd0(ahc0:0:0): MEDIUM ERROR info:208003 asc:11,0 Un
> recovered read error sks:80,1e
> Sep 11 20:02:47 dnn /kernel: , retries:4
> 
>         I assume it means that my root disk has a bad sector on it.

Looks that way!

>  How do I
> determine (decode) which partition (slice) it is on, which sector it is.

The information wouldn't do you much good anyway, I'm afraid.  If you
have a controller which has a nice little bios setup utility, like the
later Adaptecs or Buslogics, you can go to "verify media" which will
cause the SCSI drive to remap out the block automatically.  Then you
just make sure to run fsck's on everything and you should be back.
-- 
- Jordan Hubbard
  President, FreeBSD Project