Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

Is it possible to find out if a bad sector has been allocated to a file?

Question:

Is it possible to find out if a bad sector has been allocated to a file and
the identity of the file?

In this excerpt from
Answercast #11
, I look at a way to check a file that seems to be on a bad
sector and troubleshoot the hardware problem.

Become a Patron of Ask Leo! and go ad-free!

Find a bad sector

Sure, the easiest way to do that is to see if you can copy the file
somewhere else.

By that I mean, just copy foo.foo (if that’s your file) to some other
location; ideally, on some other hard drive.

If you get a “CRC” or “bad sector” during that read, during that copy, then
you know that file has a bad sector in it. If you get no errors, then there are
no errors in the file that was copied.

More often than not, you actually get a CRC error on a write, which causes
the copy operation to fail.

But if you’ve got a file on disk and you suspect that it somehow is on top
of a bad sector, it should become evident when you try and copy the file
somewhere else.

Bad sectors are physical defects

One thing that is important to notice is that bad sectors do not travel with
the file. Bad sectors are physical defects on the hard disk’s surface. So if
you manage to successfully copy the file to some other location or some other
hard drive, then you know for certain that the bad sector can not have come
with it.

If you start experiencing bad sectors on your new hard drive, that’s a
different problem unrelated to the bad sector that you apparently have on
the first.

Next – How to I manually update Windows XP using IE6?

Do this

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

I'll see you there!

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.