Re: Why are bad disk sectors numbered strangely, and what happens to them?

From: Chuck Campbell
Date: Mon Oct 13 2003 - 09:31:42 EST


On Mon, Oct 13, 2003 at 07:24:00PM +0900, Norman Diamond wrote:
>
> I agree, we are not sure if a read will do that. That is the reason why two
> of my preceding questions were:
>
> How can I find out which file contains the bad sector? I would like to
> try to recreate the file from a source of good data.

this was gibven to me on this list by Al Viro a couple of years back.
Worked fine for me.

find /usr/lib -type f|sed -e 's!.*!cat & >/dev/null || echo &!'|sh

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