Messages in this thread | | | Date | Sun, 29 Feb 2004 08:07:26 GMT | From | John Bradford <> | Subject | RE: another hard disk broken or xfs problems? |
| |
Quote from Stephen Satchell <list@satchell.net>: > /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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |