https://www.ventoy.net/en/experience_rebuildBCD.html
https://support.novastor.com/hc/en-us/a ... 8-1-and-10
A couple of premises:
- GPT is not MBR:
- GPT doesn't need the boot partition to be active
- GPT doesn't want the command BOOTREC /FIXMBR to be executed
Second premise: EFI uses a boot partition which has a couple of characteristics
- the EFI partition must be FAT32 formatted
- it is, in general, a 500MB large in size
A typical scenario where the bootloader can't boot anymore a Windows EFI, could be after cloning the disk to another and resizing the partitions.
In order to repair the EFI bootloader in Windows 7-11:
If you do have the Installation Media :
1. Insert the Media (DVD/USB) in your PC and restart.
2. Boot from the media.
3. Select Repair Your Computer.
4. Select Troubleshoot.
5. Select Advanced Options.
6. Choose Command Prompt from the menu :
i. Type and run the command :
Code: Select all
diskpart
Code: Select all
list disk
Code: Select all
sel disk <number>
Code: Select all
list vol
7. Verify that the EFI partition (EPS - EFI System Partition) is using the FAT32 file system and assign a drive letter to it (Assign a letter that isn't already in use.):
i. Type and run the command :
Code: Select all
sel vol <number of volume>
Code: Select all
assign letter=<drive letter>:
Code: Select all
exit
8. In order to repair the boot record :
i. Type and run the command :
Code: Select all
cd /d <drive letter>:\EFI\Microsoft\Boot\
Code: Select all
bootrec /FixBoot
Se compare errore ACCESS DENIED o altri errori, allora si rinomina il file BCD
1) cd S:\EFI\Microsoft\Boot
2) attrib bcd -h -r -s
3) ren BCD BCD.old
4) bootrec /rebuildbcd
Se l'operazioneha successo: riavviare il computer
If you don't have the Installation Media :
1. Restart your PC
2. Tap rapidly on the <F8> key once the PC has turned on, but before the Windows Splash Screen appears.
Please be aware this may take several attempts. The timing for this option was shortened significantly from that in Windows 7.
3. Select Repair your computer from the menu that appears.
4. Select Command Prompt from the Advanced Options tab in the Troubleshoot screen :
i. Type and run the command :
Code: Select all
diskpart
Code: Select all
list disk
Code: Select all
sel disk <disk_number>
Code: Select all
list vol
i. Type and run the command :
Code: Select all
sel vol <number of volume>
Code: Select all
assign letter=<drive letter>:
Code: Select all
exit
i. Type and run the command :
Code: Select all
cd /d <drive letter>:\EFI\Microsoft\Boot\
Code: Select all
bootrec /FixBoot
1. Rebuild the BCD store
2. First run the command below to backup the old BCD :
Code: Select all
ren BCD BCD.old
Code: Select all
bcdboot c:\Windows /l en-us /s <boot letter>: All