[ltp] Bad hard drive sector
Macskasi Csaba
linux-thinkpad@linux-thinkpad.org
Sun, 15 Jan 2006 19:30:40 +0100
On Sun, 15 Jan 2006 19:16:14 +0100, Bill Sheppard <Bill.Sheppard@Sun.COM>
wrote:
> Not specifically Thinkpad related, but hopefully someone can help!
>
> I was doing a backup the other day and the computer hung on a given file
> with the hard drive light constantly on. A bit of sleuthing turned up
> the following in syslog:
>
> Jan 15 00:01:02 clonelptp kernel: hda: dma_intr: status=0x51 {
> DriveReady SeekComplete Error }
> Jan 15 00:01:02 clonelptp kernel: hda: dma_intr: error=0x40 {
> UncorrectableError }, LBAsect=31051297, sector=31051287
> Jan 15 00:01:02 clonelptp kernel: ide: failed opcode was: unknown
>
> Turning off dma allowed the task to continue, although still receiving
> an error code (and that file wasn't intact). Running Smartmontools
> (smartctl -t long /dev/hda) returned:
>
> === START OF READ SMART DATA SECTION ===
> SMART Self-test log structure revision number 1
> Num Test_Description Status Remaining
> LifeTime(hours) LBA_of_first_error
> # 1 Extended offline Completed: read failure 00%
> 1202 31051297
>
> So it appears there is a bad sector (or sectors on the hard drive).
> It's a fairly new Toshiba MK6026GAX 60GB. I understand the drives are
> supposed to reallocate bad sectors automatically, but it appears it
> isn't since the error persists. Any ideas how I can correct this?
Have you tried fsck? I think that it should mark the sector as bad and
prevent it's usage...
Hint: _DON'T_ try fsck on a mounted filesystem. Or you'll be another
author of the unix horror storries. ;-)
Format marks it also as "bad". (But I suppose that you don't want to
reformat an existing system.)
Regards,
Csaba
--
Macskasi Csaba
bitumen@tuxworld.homelinux.org
http://tuxworld.homelinux.org:81/