Bad IDE harddrives and Linux

Teunis Peters (teunis@usa.net)
Thu, 18 Sep 1997 19:08:02 -0600 (MDT)


Okay - so I've got a bad harddrive.
Kernel messages I get when reading/writing/fsck include:

Sep 18 10:45:23 sigil kernel: hdc: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
Sep 18 10:45:23 sigil kernel: hdc: read_intr: error=0x40 { UncorrectableError }, LBAsect=1901905, sector=1901842
Sep 18 10:45:23 sigil kernel: end_request: I/O error, dev 16:01, sector 1901842
...
Sep 18 10:46:14 sigil kernel: hdc: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
Sep 18 10:46:14 sigil kernel: hdc: read_intr: error=0x01 { AddrMarkNotFound }, LBAsect=2002480, sector=2002417
...
Sep 18 10:46:18 sigil kernel: ide1: reset: success
...

("..." indicates there's LOTS more messages)

There any way to deal with it? This was with a 'badblocks' command right
before mke2fs... and badblocks didn't mark the errors so mke2fs claimed
them as valid [and fsck complains of invalid group].

The blocks are listed in the BIOS bad-block table (which Linux doesn't
read, right?)... (theres 120+ of them)

So how can I fix it so Linux looks around them?
(I can't afford a new hard drive so don't tell me space is cheap!)

[and if anyone needs a longer listing of messages just ask :]

linux-2.1.56pre1 (nice and stable here except NFS and SMBFS :)
/dev/hdc if that matters...

TIA and G'day, eh?
- Teunis

(I'm posting here because I can't think of a better list to post to).