Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jul 2003 21:34:12 +0100
From:      Scott Mitchell <scott+freebsd@fishballoon.org>
To:        "akanwar@digitarchy.com" <akanwar@digitarchy.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to check for bad blocks on IDE
Message-ID:  <20030716203412.GI96366@llama.fishballoon.org>
In-Reply-To: <4910-220037316185551393@M2W085.mail2web.com>
References:  <4910-220037316185551393@M2W085.mail2web.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 16, 2003 at 02:55:51PM -0400, akanwar@digitarchy.com wrote:
> Hi all,
>  
> Is there a way in freebsd to check for bad blocks. Linux can do this via a
> -c flag to mkfs; but newfs for FreeBSD does not seem to have this
> functionality.
> 
> The issue is that I have a IDE disk that I suspect to be bad )but there
> have been no ATA resets or logged errors so far). I either need to do a bad
> block check while creating a filesystem or some other diagnostic tool that
> can do a low level check on the disk.
> 
> Thanks,
> -ansh

Hi,

Probably the best thing to do is download the disk manufacturer's diagnostic
program (usually some kind of bootable floppy image) and run that against
the drive.  Modern drives do bad block mapping internally, so you won't see
any errors until the drive has run out of spare blocks -- at this point you
replace the drive and hope your backups are in good shape :-)

My understanding is that SMART is supposed to help you out here by giving
you some advance warning of drive problems, before the thing completely stops
working.  I've never actually seen this happen with any drive on any OS,
however.  Anyone know of any FreeBSD-friendly SMART diagnostic tools?

	Scott



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030716203412.GI96366>