BY "restored hard drive" is that using a restore point or doing an OS repair/reload?
Once system is up and running(as you explained), then use the chkdsk /r command. Google for details, hopefully, that may correct the problem. If not and problem comes back, make sure you try yet differt mouse and kybd., besides the ones currently. If the problem remains after all that, then it maybe a mtrbd. issue, though I thought it. I would lean on mouse or kybd. since these can be more readily swapped. Of course, if you have a bad spot on the HD is may cause a re-occurring issue as well, so goto the HD maker's support website and use their diags. and use the "non-destructive" ones to test several times.
While you can hot swap USB devices, that's not true for PS/2, so if you've done this, that can introduce a problem or it is your problem.
I have an HP Pavillion 1510n desktop, running XP. AMD Athelon II and 1 gig ram.
If any periphreal is connected, it will begin posting, then says "Windows failed to load. NTOSKRNL.exe missing or corrupted." If I remove the keyboard, mouse, external backup drive (both PS2 as well as USB same)THEN it will start and go to Windows just fine. Then once in Windows, I can reconnect those without problem.
I have completly restored hard drive, still the same. Local computer shop says bad motherboard. I'm not so sure.
I have run the "PC Diagnostics" and it tested memory, motherboard, etc and shows all fine. This has both myself and computer guru friends of mine stumped. Any suggestions?