These types of problems are very frustrating mainly occurs when you update your bios or install
a malicious program.
To solve this issue follow the following steps :-
1.open bios set up by pressing F2 (it varies from laptop to laptop), when your computer restarts.
2.Now go to configuration tab and select sata controller mode.
3.Now check which option is enable . It may happen your options are different like native & ide etc but don't worry.
4.Always select the option which is opposite to previous one.
5.now press F10 (save and exit).