Finding corrupted files

Corrupted or damaged files can cause some of the following problems in Mac® OS X:

  • Applications to crash or quit unexpectedly when opening a corrupted file.
  • Indexing failures when using:
    • Spotlight under Mac OS X 10.4 Tiger™.
    • Content Indexing and Find By Content under Mac OS X 10.3 Panther® and Mac OS X 10.2 Jaguar.
  • System freezes, hangs, or kernel panics in the case of corrupted System components.

The following techniques can often help identify potentially corrupted files.

Anti-virus software

Anti-virus software cannot examine corrupted or damaged files. This makes it an ideal tool for finding such files.

For example, Symantec® Norton AntiVirus® — one of our recommended anti-virus solutions — will return the message "The file is damaged" in the Comment field of the Virus Scan window when a scan encounters a corrupted or damaged file. Selecting a file bearing this comment in the Virus Scan window displays the path to the file in the File Info field.

Run your anti-virus application against the disk, partition, or folder containing the file or files that caused problems. If you are uncertain of the corrupted file's location, use your anti-virus solution to scan the entire drive or partition on which problems are occurring.

Backup and Recovery software

Backup and Recovery applications will generally produce execution errors showing corrupted or damaged files when creating backups.

For example, EMC® Dantz® Retrospect® Desktop Edition for Macintosh® — our recommended Backup and Recovery solution — will post a message similar to the following example in its Operations Log if a corrupted or damaged file is encountered:

  • Can't read file “Bad Document.doc”, error -36 (i/o error, bad media?), path: “/Users/somebody/Documents/Bad Document.doc”.

If your Backup and Recovery solution maintains a log of files it could not backup, check the log for potentially suspect files that may be corrupted.

Did you find this FAQ helpful? You will find a wealth of additional advice for preventing or resolving Mac OS X problems in Dr. Smoke's book, Troubleshooting Mac® OS X.
Use of this site signifies your agreement to the terms of use.
Copyright © 2003-2008 The X Lab. All rights reserved.