Error code 0xc0000225 cannot boot after delete EFI System Partition on secondary drive
Just run the following command:
bcdboot c:\windows
The bcdboot command automatically identifies the FAT32-formatted EFI system partition, copies the required UEFI boot files from the Windows partition to it, and creates a new Boot Configuration Data (BCD) store on that partition.
BCDBOOT
– Required.
– Specifies the location of the Windows directory to use as the source for copying boot-environment files.
– Check the volume letter of the Windows partition with DiskPart’s list volume command.
/s
– Optional volume letter for the target system partition where the boot files will be copied.
– If the /s option is not used, the system partition is automatically identified based on whether the system is booted in UEFI or BIOS mode.
/f
– Optional firmware type for the target system partition. Determines whether to copy UEFI or BIOS boot files.
– Used with the /s option.
– On a GPT disk, there is no need to specify the firmware type when you start Windows Recovery Environment (WinRE) from within Windows, or when booting a USB flash drive in UEFI mode (in the boot menu, select your USB with the UEFI prefix).
Microsoft: BCDBoot Command-Line Options:
Read more here: Source link
