Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jun 1999 10:39:16 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Khetan Gajjar <khetan@os.org.za>
Cc:        questions@FreeBSD.ORG
Subject:   Re: SCSI bad-block scanning
Message-ID:  <Pine.BSF.4.10.9906211036100.36767-100000@resnet.uoregon.edu>
In-Reply-To: <Pine.BSF.4.10.9906190117150.35942-100000@chain.freebsd.os.org.za>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9906211036100.36767-100000>