Re: [reiserfs-dev] Re: IDE problem: linux-2.5.17

Lionel Bouton
2002-05-24T00:24:02Z

On Fri, May 24, 2002 at 12:55:25AM +0200, Vojtech Pavlik wrote:
>
> If you rewrite the whole drive with zeros (or the original data) sector
> by sector, the uncorrectable errors will go away. I've done this to my
> 307030 and it works fine again. (Fortunately for me the errors were only
> in my swap partition).
>

Don't know for the whole drive yet (currently running) but when I did a mkraid
on a raid5 array using 4 partitions on the same drive the sync thread ended
and left the array in degraded mode after a bunch of :
May 24 02:05:06 twins kernel: hdd: dma_intr: status=0x51 { DriveReady SeekComplete Error }
May 24 02:05:06 twins kernel: hdd: dma_intr: error=0x40 { UncorrectableError }, LBA sect=2097375, sector=2097298
May 24 02:05:06 twins kernel: end_request: I/O error, dev 16:41 (hdd), sector 2097298

Then I tried to zero the offending sectors with a slight margin :
[root@twins root]# dd if=/dev/zero of=/dev/hdd1 count=200 bs=512 seek=2097200
dd: writing /dev/hdd1': Erreur d'entrée/sortie
113+0 enregistrements lus.
112+0 enregistrements écrits.

Same error each time, seems sector 2097312 is not my friend.

dd if=/dev/zero of=/dev/hdd bs=<cylinder_size> running.

Too bad lsof doesn't show offsets...
I can't tell if dd passed the offending sector :-|

LB.