Hello ! I've been trying to solve this problem for about 2 days in a row, so the thing is that one day my laptop which I had installed ubuntu and windows 8.1 freezed, I tried to restart it and after that I couldn't do anything, I tried to boot ubuntu and windows and it gave me this error : "Windows Manager Boot failed" , "ubuntu boot failed". I tried to reinstall windows but the windows installer wouldn't recognize my hdd, so I started to look around for answers.I played around with the boot settings without any succes. The thing is that when the BOOT MODE is set on LEGACY SUPPORT and the BOOT PRIORITY is set to UEFI first, the laptop enters an automatic repair mode, where I can select ADVANCED->CHANGE UEFI FIRMWARE SETTINGS, and there I see that my hdd is not recognized. But when I enter BIOS SETTING by pressing F12 I can see my HDD. Can someone help me with this ?