[plug] Using a HDD with Badsectors

Timothy White weirdit at gmail.com
Sun Nov 26 08:15:01 WST 2006


I have a 80Gb HDD from my sisters computer, that had developed some
bad sectors (2-4). It was undecided the reason for them developing was
the lack of cooling in the case it was at, and the high temperatures
it had reached.
I replaced her HDD, and not wanting to waste 80Gb of almost goodness,
I was wondering the best way to use it. After installing Ubuntu, I did
a "fsck.ext3 -c -c" which found 2 bad blocks. But I'm still getting a
few error messages in the logs.

Nov 25 21:15:07 myoxa kernel: [ 5360.338099] ata3: translated ATA
stat/err 0x51/04 to SCSI SK/ASC/ASCQ 0xb/00/00
Nov 25 21:15:07 myoxa kernel: [ 5360.357535] ata3: status=0x51 {
DriveReady SeekComplete Error }
Nov 25 21:15:07 myoxa kernel: [ 5360.357539] ata3: error=0x04 {
DriveStatusError }
Nov 25 21:15:07 myoxa kernel: [ 5360.505269] ata3: translated ATA
stat/err 0x51/04 to SCSI SK/ASC/ASCQ 0xb/00/00
Nov 25 21:15:07 myoxa kernel: [ 5360.524703] ata3: status=0x51 {
DriveReady SeekComplete Error }
Nov 25 21:15:07 myoxa kernel: [ 5360.524706] ata3: error=0x04 {
DriveStatusError }
Nov 25 21:15:07 myoxa kernel: [ 5360.672438] ata3: translated ATA
stat/err 0x51/04 to SCSI SK/ASC/ASCQ 0xb/00/00
Nov 25 21:15:07 myoxa kernel: [ 5360.691867] ata3: status=0x51 {
DriveReady SeekComplete Error }
Nov 25 21:15:07 myoxa kernel: [ 5360.691870] ata3: error=0x04 {
DriveStatusError }

After seeing this, I installed smartmontools, and made sure SMART was
enabled on the drive, as well as setting up daily and weekly SMART
tests.

So far, I've gotten 3 emails from smartmon with the following messages.

Device: /dev/sda, 1 Currently unreadable (pending) sectors
Device: /dev/sda, 1 Offline uncorrectable sectors
Device: /dev/sda, Self-Test Log error count increased from 0 to 1

The last message to me looks like one I can ignore, as I have
scheduled Self-Tests. Do I need to worry about the other 2, if I've
run badblocks via fsck?
Is there anything else I can do? I'm thinking I might run badblocks,
locate the blocks, and repartition so no filesystems cross the bad
blocks area. I'm fairly sure they are located together.

Tim
-- 
Linux Counter user #273956
Don't email joeblogs at scouts.org.au



More information about the plug mailing list