If the machine has USB items plugged, this can cause such to fail. Try it with just the parts the PC came with.
I tried connecting a new HP printer to my Compaq Presario 6400NX. After several sessions with HP tech support they decided the problem was with the OS and we tried to recover XP from the boot partition or from the hard drive. That failed so HP sent me the 5 CD recovery set and I tried recovering the system. During the recovery process several different messages popped up including, missing files, files that could not be recovered and cannot open database. During another session with HP tech support we erased the hard drive and tried again. They decided the CDs that they sent were defective so they sent me another set. Again I tried to do the recovery and I once again got the same "error" messages and eventually the recovery failed after the system rebooted. After several hours it gives an error message that the recovery failed.
Now HP tech support wants me to take my PC to an authorized dealer. I have read something about updating the BIOS. Does anyone have any suggestions (other than buying a new PC).