Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Feb 2011 12:12:26 -0800
From:      Chuck Swiger <cswiger@mac.com>
To:        Daniel Zhelev <daniel@zhelev.biz>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Bad hard driver
Message-ID:  <EEB2B3DA-81F2-44A6-BDDD-F7D5418BB693@mac.com>
In-Reply-To: <AANLkTi=1oBAT1Xr7SkUBg5pShpc0+7XiDpQvrT0dwHwd@mail.gmail.com>
References:  <AANLkTi=1oBAT1Xr7SkUBg5pShpc0+7XiDpQvrT0dwHwd@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Feb 9, 2011, at 11:15 AM, Daniel Zhelev wrote:
> The following warning/error was logged by the smartd daemon:
> 
> Device: /dev/ad7, 3 Offline uncorrectable sectors

It means that the drive has detected errors in three sectors, and is attempting to recover them without data loss to spare sectors, so far without success.  It could also indicate that the drive has exhausted the spare sectors, in which case all future errors will cause additional data loss.

>From the "SMART Self-test log", it seems like you are running short self-tests every 24 hours, and periodically running extended tests on some interval as well.  The smartctl FAQ recommends doing so at weekly intervals; doing it daily is putting significant testing load onto the drive.

> I know about the how to -
> http://smartmontools.sourceforge.net/badblockhowto.html
> 
> But how can I get the LBA?
> And is there some diagnostic tool for WD in ports?

Doing a "dd if=/dev/ad7 of=/dev/null bs=64k" will read-scan the entire drive, and ought to produce a warning in the logs indicating the LBA of the bad sectors.  As for diagnostic tools, WD makes utilities for DOS and Windows, not FreeBSD.  See:

  http://support.wdc.com/product/download.asp?groupid=613&lang=en

...for something which you can run off of a boot floppy, USB pendrive, etc.

Regards,
-- 
-Chuck




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?EEB2B3DA-81F2-44A6-BDDD-F7D5418BB693>