From owner-freebsd-questions Mon Jun 21 10:39:29 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 973D414F53 for ; Mon, 21 Jun 1999 10:39:27 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.9.3/8.9.3) with ESMTP id KAA52334; Mon, 21 Jun 1999 10:39:16 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Mon, 21 Jun 1999 10:39:16 -0700 (PDT) From: Doug White To: Khetan Gajjar Cc: questions@FreeBSD.ORG Subject: Re: SCSI bad-block scanning 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 Sat, 19 Jun 1999, Khetan Gajjar wrote: > Is it possible to scan a SCSI disk for bad blocks using something > like camcontrol or newfs ? > > I haven't found anything in the man pages that would initiate a check; > camcontrol from what I can see only prints out what the drives report. Your SCSI BIOS can usually initate a verify scan that will force the drive to remap bad sectors. The Symbios/LSI Logic, Adaptec, and BusLogic cards I've found have this feature. If you're seeing bad sectors, enable AWRE and ARRE on SCSI mode page 1 using this command (change the -u parameter to match the unit you're editing): camcontrol modepage -n da -u 3 -m 1 -e -P 3 If they're already enabled, back up your data and ditch the drive. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message