RE: another hard disk broken or xfs problems?

From: John Bradford
Date: Sun Feb 29 2004 - 03:08:45 EST


Quote from Stephen Satchell <list@xxxxxxxxxxxx>:
> /bin/nice -n 15 /bin/dd if=/dev/hda of=/dev/null bs=128k
> /bin/nice -n 15 /bin/dd if=/dev/hdc of=/dev/null bs=128k
> /bin/nice -n 15 /bin/dd if=/dev/sda of=/dev/null bs=128k
>
> This ensures that all sectors are readable, regardless of file system
> state, and relocates and reassigns those sectors that can be read in any
> way.

The majority of drives do not re-allocate on read, only on write.
Therefore, the above cron jobs will simply find them each time they
run, unless something writes to the defective block inbetween runs.

John.
-
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/