Messages in this thread | | | Subject | Re: Strange I/O errors for hard-disk driver with bad sectors | From | Alan Cox <> | Date | Wed, 17 Nov 2004 15:42:40 +0000 |
| |
On Maw, 2004-11-16 at 16:22, Anton Lavrentiev wrote: > Or, there are indeed few bad sectors in a row that kernel > reports by using sector number of the first one, which it > couldn't read? > > I also used dd to skip to the sectors that it reported as > unreadable, and read them one by one -- no success, but the > kernel keeps reporting the same "magic" sector number for > all these attempts:
Disk sectors in software and disk sectors in the magic internal world of the disk are not neccessarily the same size so don't be suprised to lose a bunch.
If you want to read exact sectors without readahead and other complications use O_DIRECT I/O
- 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/
| |