While you boot your computer, press ESC key. It will get you to start up menu, then press F10, it will open BIOS window. Then finally press F9, it will make all setup as default.
This answer might solve your problem, else there is some loose contact in sata cable or in seating of Hard disk...