Subject: Re: more info about "wd0: (uncorrectable data error)"
To: Joel CARNAT <joel@carnat.net>
From: Michael Lorenz <macallan@netbsd.org>
List: port-sparc64
Date: 01/06/2007 14:38:29
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Jan 6, 2007, at 13:42, Joel CARNAT wrote:

> I see the following errors in dmesg:
>
> wd0: (uncorrectable data error)
> wd0a: error reading fsbn 2189695 of 2189664-2189695 (wd0 bn 2189695; cn
> 2172 tn 5 sn 4), retrying
> wd0: (uncorrectable data error)
> wd0a: error reading fsbn 2189695 of 2189664-2189695 (wd0 bn 2189695; cn
> 2172 tn 5 sn 4)wd0: (uncorrectable data error)
>
> are they hardware or software error ?
> that is, must I replace the hard-drive or should I only reformat the 
> disk
> and mkfs ?
>
> is there any fsck-like command that would mark bad sectors so that 
> there
> are not used by the system (with or without reformatting) ?

If the errors always point at the same range of sector numbers your 
disk is getting bad. If the numbers change randomly it's likely the 
cable.
In the former case you can try to force a write to the bad sectors and 
hope the drive still has a few spare sectors left to remap them.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRZ/6tcpnzkX8Yg2nAQJaWAgAiUhWKA0Ph60YCVEsnyH/kbsHfZusfyoq
tra4VFadIGRL2sVC9V8yYfmxqXzplvR0plKXGILF9BIdqZjStTRCsjTR1GUCHd1F
gp87t1mPxuvvfFs3HekIQ9BUs4hPWP1gwKyQIJ479PlY/2tzjns9Sbm0KaYO8oJs
ULTS67+bfrlWjXctLeG067O06l5pYpX5hWPDQwwc2hrbmHchgtmzrKqT3Aj57CEP
xiERTWmEkTmC44pCq2cXGniJThkxcchWWxabJDzBOUST5urDgCNmatMHtsSN5iFT
cduZ1pA4N3gyvLFbfE+fVH5hv6TNiC1RUdtOTtKcorSTug8ZDJsEFA==
=UL6o
-----END PGP SIGNATURE-----