Bad hard driver

Chuck Swiger cswiger at mac.com
Wed Feb 9 20:12:56 UTC 2011


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



More information about the freebsd-questions mailing list