From owner-freebsd-hardware Tue Jun 16 15:33:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA08838 for freebsd-hardware-outgoing; Tue, 16 Jun 1998 15:33:50 -0700 (PDT) (envelope-from owner-freebsd-hardware@FreeBSD.ORG) Received: from Octopussy.MI.Uni-Koeln.DE (Octopussy.MI.Uni-Koeln.DE [134.95.166.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA08803; Tue, 16 Jun 1998 15:33:11 -0700 (PDT) (envelope-from se@dialup124.zpr.uni-koeln.de) Received: from dialup124.zpr.Uni-Koeln.DE (dialup124.zpr.Uni-Koeln.DE [134.95.219.124]) by Octopussy.MI.Uni-Koeln.DE (8.8.8/8.8.8) with ESMTP id AAA18365; Wed, 17 Jun 1998 00:33:02 +0200 (MET DST) Received: (from se@localhost) by dialup124.zpr.Uni-Koeln.DE (8.8.8/8.6.9) id AAA01181; Wed, 17 Jun 1998 00:04:25 +0200 (CEST) X-Face: " Date: Wed, 17 Jun 1998 00:04:24 +0200 From: Stefan Esser To: Sean Eric Fagan , hardware@FreeBSD.ORG Cc: Stefan Esser Subject: Re: scsi disk question References: <199806161747.KAA06801@kithrup.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <199806161747.KAA06801@kithrup.com>; from Sean Eric Fagan on Tue, Jun 16, 1998 at 10:47:33AM -0700 Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 1998-06-16 10:47 -0700, Sean Eric Fagan wrote: > I posted about this to -stable this morning, but now it's a hardware question > I think :). Well, I don't know how long ago "this morning" has been in your part of the world, but I wrote a reply to your mail to -stable just a few minutes ago ;-) > I've got an IBM DCAS 3216W (2G UW drive) as my root disk, sd0. After a power > failure, /var/news/history.pag contained a non-recoverable bad block -- the > kernel would try four or five times to access it, and then would fail, > resulting in an I/O failure. This persisted after a reboot. Yes, it surely is a bad sector, which must be written to, to be recovered. But I'm quite convinced that the drive has not been physically damaged and need not be replaced. > After I found the file with the bad block, I removed it, and recreated it; > this went well, and, so far, the system has continued to function. Great! > My question is: will the disk now ignore this bad block? Normally, I'd > assume it would (it being an intelligent, scsi disk with Read-Write Error > Recovery enabled), but, well, it didn't before :(. I guess that sector was just incompletely written when the power failed, and the next write will just create a consistent sector (data + ECC) again. There is no need to re-map the sector, in that case. > I'm currently planning on getting a new disk today, but I'd prefer not to if > possible, obviously :). Guess I can understand that ;-) > Anyone know for sure? *You* can easily find out what the current state is: Just dd the complete surface of the disk to /dev/null. If you get another read error, then the sector has not yet received new contents and ECC. You may try to force a write to that sector by filling each and every sector of the disk (dd /dev/zero into a file as root). If this does not work, then you may try to write to each sector on the disk via the raw device (you can write back the original contents). Use a fixit floppy, if necessary. (You could try booting to single-user mode and do the dd from the raw device back to itself even for a root partition, I assume.) That should fix it. Be sure to backup your data before you proceed, whatever you try ! Regards, STefan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message