Messages in this thread | | | From | "Norman Diamond" <> | Subject | Re: Why are bad disk sectors numbered strangely, and what happens to them? | Date | Mon, 13 Oct 2003 19:24:00 +0900 |
| |
John Bradford replied to me:
> > How can I tell Linux to read every sector in the partition? Oh, I might > > know this one, > > dd if=/dev/hda8 of=/dev/null > > I want to make sure that the drive is now using a non-defective > > replacement sector. > > A read won't necessarily do that. You might have to write to a > defective sector to force re-allocation.
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.
How can I tell Linux to mark the sector as bad, knowing the LBA sector number?
And that is also the reason why my last question, which Mr. Bradford replied to, had the stated purpose of making sure that the drive is now using a non-defective replacement sector after the preceding operations have been carried out.
Please, the important questions are important. Doesn't anyone really know what Linux does with bad blocks, how to find out which file contains them, how to get Linux to force them to be marked and reallocated?
- 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/
| |