Bad hard driver
nightrecon at hotmail.com
Wed Feb 9 20:44:00 UTC 2011
Chuck Swiger wrote:
> 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
As long as the remap region is not full the next write attempt to these
sectors will clear this. It can be done by dd'ing zero to the entire drive,
or formatting the entire drive as a shotgun approach. This entails a
complete backup and restore cycle though. A little extreme, as this
particular error is actually rather benign and eventually self-correcting as
long as there is space in the remap area.
Early in a drive's life this may be tolerable until the remap fills. Even if
the remap area has space available, and these errors get cleared by the next
write to the defective sectors I would still watch for more of these. If you
get these errors cleared only to start to see more new ones it indicates
media failure spreading across the platters. At such a point in a drive's
life it only makes sense to replace it, as at some point the remap region
fills and you will have lost data.
>>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
>> I know about the how to -
>> 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:
> ...for something which you can run off of a boot floppy, USB pendrive,
The quick test will tell you about bad sectors and then direct you to run
the full surface scan which destroys data. But it will "fix" the drive. Back
to the dump/restore cycle. I run this on any used drive about to recycled
back into use. It almost always finds something and "fixes" it.
Excellent idea on how to find the LBA. If the exact sector addresses can be
located a dd write to the specific sector(s) will clear the error condition,
and should (in theory) be doable without losing data. I would still
recommend an entire dump backup be done prior to trying anything.
More information about the freebsd-questions