Bad hard driver [SOLVED]
daniel at zhelev.biz
Thu Feb 10 09:59:38 UTC 2011
On Wed, Feb 9, 2011 at 10:44 PM, Michael Powell <nightrecon at hotmail.com>wrote:
> 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
> > loss.
> 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
> long as there is space in the remap area.
> Early in a drive's life this may be tolerable until the remap fills. Even
> the remap area has space available, and these errors get cleared by the
> write to the defective sectors I would still watch for more of these. If
> 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
> >>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 -
> >> 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.
> 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.
> 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
> and should (in theory) be doable without losing data. I would still
> recommend an entire dump backup be done prior to trying anything.
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
Thanks all for the info,
I`ve fix it with the shotgun methood
dd if=/dev/zero of=/dev/ad7 bs=64k
Since the drive is new ( >6 moths ) I won`t go trough the warranty procedure
The strange this is that the
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always
Has not changed, so the sectors were good?
Also I`ve noticed that these sectors were in the end of the disk - the disk
is 932GB usable space after fs installation usable space is around 900GB the
bad sectors were beyond the usable space.
Also fsck didn`t detect any fs corruption.
The last worrying thing is the
200 Multi_Zone_Error_Rate 0x0008 200 189 000 Old_age Offline
Which according to the Internet is some mysterious value that none knows
what it stands for, so is 3 of that mystery good?
//offtopic Spinrite is very good tool hopefully I didn`t have to use it
this time, but it is really useful. In mine situation the drive failure is
not so critical(some temporary dumps on it), but if the hole machine is
down(this is the only not mirrored disk) it would be much worse.
More information about the freebsd-questions