I've had some problems like this with my computer. What I did was opened up the case, and checked the IDE connection to the hard drive. Seems that must have wiggled loose a little bit.
If you feel ok opening up the case, try that before you try to repair XP.