[CentOS] OT - Offline uncorrectable sectors

Fri Aug 22 16:30:18 UTC 2008
William L. Maltby <CentOS4Bill at triad.rr.com>

On Fri, 2008-08-22 at 18:07 +0200, Lorenzo Quatrini wrote:
> nate ha scritto:
> ><snip>

> For what I understand Offline uncorrectable means that the sector would be
> relocated the next time it is accessed for writing... so it is on a "wait for
> relocation" status.

If my memory is still good (I don't recall if it is or not!  :-) you are

> I don't know of any other way to force this relocation other tha actually
> writing over the sector (a simple read doesn't trigger the relocation)...

You can force this with dd using various seek, skip and blksize
parameters to (re)write only the desired sectors. The "if=" parameter
would reference the physical device or partition and the "skip=" would
be the offset to the sector. Be very careful and have good backups. In
fact, you could test by making an image of the partition and doing a
test run on that.

It might be a lot easier to reference the sector from start of disk, as
the reported sectors will be in reference to that.

> And yes, I know that a disk with bad blocks isn't reliable, but you remember?
> I'm too lazy to send my home disks back to the manufacturer ;)

If my other post is correct, it may still be reliable (or be getting old
enough to become so).

> Lorenzo
> <snip sig stuff>