From owner-freebsd-questions Thu Sep 11 20:48:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA27526 for questions-outgoing; Thu, 11 Sep 1997 20:48:48 -0700 (PDT) Received: from gdi.uoregon.edu (cisco-ts17-line11.uoregon.edu [128.223.150.228]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA27516 for ; Thu, 11 Sep 1997 20:48:40 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.8.5) with SMTP id UAA16553; Thu, 11 Sep 1997 20:48:33 -0700 (PDT) Date: Thu, 11 Sep 1997 20:48:33 -0700 (PDT) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: ali@XCF.Berkeley.EDU cc: freebsd-questions@FreeBSD.ORG Subject: Re: bad blocks In-Reply-To: <19970911204727.26628.qmail@xcf.berkeley.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On 11 Sep 1997 ali@XCF.Berkeley.EDU wrote: > Hi. > Some AMI diag program tells me i have bad blocks on my disk. > If I do "tar cvf /dev/null /usr" I will get a message from the > kernel saying "sd0(ahc0:0:0): MEDIUM ERROR info:534195 csi:c,8f,3,76 asc:11,0 Unrecovered read error sks:80,80." > > Several times. Is the way to fix this to place the bad block(s) in a bad block > list somewhere? How do I do that? You should make sure that bad sector remapping is enabled for your drive. Run `scsi -f /dev/sd0 -m 0' to look at the current settings. The top two you want to make sure are set to 1. if not, run `scsi -f /dev/sd0 -m 3 -e' to edit the profile. Of course you have to be root. For more info, check out the FAQ or the mail archives. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major Spam routed to /dev/null by Procmail | Death to Cyberpromo