Re: harddisk or kernel problem?

From: Bruce Allen
Date: Tue Mar 02 2004 - 15:11:12 EST


Nico,

> > [...]
> > FWIW, after reading this thread, I've slightly modified smartmontools so
> > that when smartctl prints the error log (-l error) it ALSO prints the LBA
> > at which a READ or WRITE command failed.
>
> Thank you very much for patching smartctl and explaining howto calulate
> the LBA from those values.

FWIW, I've just posted a short howto explaining how to identify the file
stored at the bad sector, and how to force sector reallocation at the bad
LBA. This will effectively 'repair' the disk though you will lose the
data in that disk block. Please see:

http://smartmontools.sourceforge.net/BadBlockHowTo.txt

Comments gratefully incorporated.

Cheers,
Bruce

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/