Restore Windows 10 EFI boot entry

4

I used my computer to install W7 on a HDD (from a laptop, that didn't have a DVD drive) and it worked flawlessly. Except that when I removed that HDD (that I had just plugged there the time of the installation) and rebooted, I wasn't able to boot on my regular HDD. I went in the BIOS and saw that the Windows boot manager entry had disappeared.

I tried repairing it using bootrec but it didn't change anything. I also tried resetting the uefi firmware to factory settings, still nothing.

How can I get the entry back?

Edit: to be more clear, I am not using W7, I just used my computer to install W7 on another hard drive (it wasn't supposed to touch my main HDD) and somehow it managed to remove the UEFI entries of the W10 that was installed on another drive

zdimension

Posted 2017-12-20T17:56:14.227

Reputation: 2 523

@Ramhound because I'm using Windows 10 – zdimension – 2017-12-20T18:03:00.807

@Ramhound the problem itself is confusing. See edited post. Basically I did something that wasn't supposed to cause any problem to the rest of the PC, but somehow it did – zdimension – 2017-12-20T18:05:37.920

Answers

2

Stupid me.

This fixed the problem:

bcdboot C:\Windows /s E: /f UEFI

I had already tried this some hours ago from a W10 live CD but it didn't work so I thought it wasn't worth trying again. But I tried again this time from a fresh W10 install USB and it worked.

zdimension

Posted 2017-12-20T17:56:14.227

Reputation: 2 523