From owner-freebsd-questions Fri May 8 14:01:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA09254 for freebsd-questions-outgoing; Fri, 8 May 1998 14:01:21 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA09118 for ; Fri, 8 May 1998 14:00:54 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id OAA28225; Fri, 8 May 1998 14:00:46 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Date: Fri, 8 May 1998 14:00:45 -0700 (PDT) From: Doug White Reply-To: Doug White To: Clod Baldrick cc: freebsd-questions@FreeBSD.ORG Subject: Re: Masking out bad blocks In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 7 May 1998, Clod Baldrick wrote: > fsck tells us we have bad blocks on a file system, but apparently makes no > attempt to mask out these blocks. Does anyone know how we can do this? > It used to be the case that doing a low-level format would give us a table > of bad blocks for mkfs to ignore, but scsiformat doesn't seem to do this > -- and it completes in around a second. The disk should silently map these bad blocks itself. Make sure that auto relocation is enabled by running scsi -f /dev/rsdX -m 1 and verify that AWRE and ARRE are set to 1: gdi,ttyp2,~/src/usr.sbin/sendmail/cf/cf,42>sudo scsi -f /dev/rsd0 -m 1 AWRE (Auto Write Reallocation Enbld): 1 ARRE (Auto Read Reallocation Enbld): 1 X = unit # of SCSI disk in question. If bad blocks are poking through it's only going to get worse. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message