*BSD News Article 17077


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!uunet!mcsun!Germany.EU.net!gmdtub!bsd386!ats
From: ats@bsd386.first.gmd.de (Andreas Schulz)
Newsgroups: comp.os.386bsd.questions
Subject: Re: major scsi problem.  sd0: medium error block ....
Message-ID: <3606@bigfoot.first.gmd.de>
Date: 13 Jun 93 11:16:36 GMT
References: <1993Jun12.074233.9676@mnemosyne.cs.du.edu>
Sender: news@bigfoot.first.gmd.de
Organization: GMD-FIRST
Lines: 33

In article <1993Jun12.074233.9676@mnemosyne.cs.du.edu> smace@nyx.cs.du.edu (Scott Mace) writes:
>I booted up today and encountered this on my usr partition
>sd0: medium error block no. 336081 (decimal)
>
>how to I fix this.  fsck doesn't fix it.  I thought that scsi drives
>relocated bad blocks
>my drive is a Maxtor LXT-340s and an Adaptec 1542B.

This looks like a real bad block on the disk. fsck only fixes errors
in the filesystem, but no hardware errors.
Scsi drives can automagically relocate bad blocks, but in most cases,
they are not programmed to do so by default. Because you better want
to see such error, to see if yoour drive goes bad. If this happens
again with more blocks, it is the time to think about a new drive :-(.
The way to get rid of this error, is to make a backup of the data
on the drive, the boot DOS and start debug, make a "g=dc00:6"
(i hope this is the correct address, i don't have an adaptec manual
handy), and choose in the menue that should pop up, first the
correct drive and then start a verify drive. This should check
all blocks on the drive and ask you if it find a bad block to
correct it.
After that restart unix again in single user mode and run a
fsck on all partitions, look for errors, and then decide,
what things to do. If you get an error in the fsck, you will
see, what has gone south, if you don't get any error, you must
search, where you lost this block. If you have a good backup :-)
you can simply restore all suspect data.

--
	  ATS ( ats@first.gmd.de or ats@cs.tu-berlin.de )

Andreas Schulz  GMD-FIRST     O-1199  Berlin-Adlershof  Rudower Chaussee 5
Gebaeude 13.7      Tel: +49-30-6392-1856	Germany/Europe