In Windows XP, there is 1 powerful command-line tool called chkdsk (chkdsk.exe). It use to checks volumes for problems and will repair the problems related to bad sectors, lost clusters, cross-linked files, and directory errors. System crashes or freezes, power glitches, incorrectly turning off a computer can all cause corruption in the file or folder structure. Physically bumping or jarring a computer can cause the head that reads disks to hit the surface and damage sectors. Once some sort of error occurs it can propagate to create more errors so a regularly scheduled disk checkup is part of good system maintenance.
Note: To use Chkdsk, you must log on as an administrator or as a member of the Administrators group