If you have checked that the cable connecting the hard drive to the motherboard is securely in and you are still having these same problems I would get important files off that drive ASAP. That sort of behaviour often precedes complete drive failure at which point all your files are gone. Don't want to scare you but I also don't want you to lose files if my diagnosis is correct. It sounds like more than a registry problem to me.