i think you have 2 choices: try to diagnose the problem and repair it; or get a new hard drive and clone the old one. (personally, i would just go get a new hard drive right away.)
to diagnose with chkdsk:
if your drive is formatted using fat32, boot using a win98 boot disk (http://www.bootdisk.com/bootdisk.htm) and run chkdsk.
if you're using NTFS, and have a recovery disk, use it. if not, try booting from your win xp install disk, running the recovery console, and then running chkdsk.
diagnose with drive software:
if you have drive installation CD (Maxtor MaxBlast, Western Digital Data Lifeguard, etc.), boot it and let it scan your hard drive.
even if you manage to repair the problem, I would consider that drive iffy and plan on getting a new drive ASAP.
Hello. My computer,compaq p3 1ghz, 512mb ram, 40gbhd, winxp sp2. For some reason the computer keeps on restarting on its own. As soon as everything starts up it does this. I even tried to boot up in safe mode, and it still restatred on it's own. Any suggestions?