time-clock-circle multiple-users-1 bin-paper-1 smiley-indifferent view-off alert-diamond envelope-letter rating-star network-browser pencil-write ticket-1 button-record headphones-customer-support close synchronize-arrows-1 common-file-stack close-quote arrow-down-2 multiple-circle attachment-1 folder-file-1 disable smiley-indifferent shield-warning love-it smiley-smile-1_1 check-circle-1 time-clock-midnight floppy-disk view smiley-unhappy book-star lock-unlock-1 arrow-right-1 archive smiley-unhappy send-email-1 hierarchy-9 open-quote add-circle-bold search remove-circle cog-1 filter-1 hyperlink-2 analytics-pie-2 flying-insect-honey navigation-menu-horizontal pencil-1 smiley-thrilled check-1 arrow-up-1 lock-2 navigation-menu add layout-module-1 archive arrow-left-1 wench arrow-down-1 multiple-neutral-1 expand-6 close drawer-send alarm-bell-1 social-media-twitter keyboard-arrow-up ticket-1 copy-paste rating-star download-thick-bottom information-circle smiley-sad-1 single-neutral-actions remove-square-1 file-code pencil-1 keyboard-arrow-down smiley-sad-1 cog single-neutral add-circle move-to-top list-bullets expand-6 undo tags-double smiley-happy view-1 messages-bubble-square print-text add-square smiley-happy credit-card-1 envelope-letter diagram-fall-down

Repairing boot information after a recovered UEFI system fails to boot


After system recovery from the System Recovery Environment (SRE) for UEFI based systems, the system is rebooted. Upon reboot, the system attempts to boot in the order of boot devices but does not boot into Windows as expected.

Booting into the UEFI based SRE again, and running the diskpart utility from a command prompt, you may find the SRE recovery process did not create a 100 MB system partition for the UEFI boot sequence to use. For example, you may run the diskpart commands below with similar output.


list disk may return disk 0 (the system volume) and disk 1 (the SRE on a usb thumbdrive)
Sel disk 0 to select the recovered disk.

list part lists partitions on disk 0. It may return one partition, part 1 PRIMARY, but no part 2 for the EFI system boot files.
list volume may return C: (the Windows volume), D: (the SRE thumbdrive), and E: (the CD/DVD) but no system hidden EFI volume listed as FAT32.


Create a 260 MB system partition, then run a bcdboot command to copy boot files to it. To do so, boot the system back into the UEFI based SRE from a CD or thumbdrive and open a command prompt. Make certain you have created the CD or thumbdrive with the UEFI iso file.

The commands are below in bold:


Microsoft DiskPart version 10.0.10240

Copyright (C) 1999-2013 Microsoft Corporation.
On computer: MININT-3A416N9

DISKPART> list disk

Disk  ###  Status  Size       Free  Dyn  Gpt
Disk  0     Online  489 GB 0        B      *

[You should see an asterisk in the Gpt column, or else the command to create an efi partition may fail.]

DISKPART> sel disk 0

Disk 0 is now the selected disk. [This is the recovered disk.]

DISKPART> list part

Partition ### Type       Size       Offset
————- —————- ——- ——-
Partition 1     Primary  489 GB 1024 KB

DISKPART> sel part 1

Partition 1 is now the selected partition. [This is the partition that contains the Windows volume.]

DISKPART> shrink desired=1024

DiskPart successfully shrunk the volume by: 1024 MB

DISKPART> create partition efi size=260

DiskPart succeeded in creating the specified partition. [This is the 100 MB EFI system partition. We are making it a little larger than that.]

DISKPART> format quick fs=fat32

100 percent completed [The EFI volume must be formatted with the FAT32 file system.]

DiskPart successfully formatted the volume.


Leaving DiskPart…

X:\windows\system32>bcdboot c:\windows
Boot files successfully created.

If the final command bcdboot c:\windows returned the error "Failure attempting to copy boot files", go back into diskpart to prepare for a second bcdboot command.

list disk
sel disk 0 (Selects the recovered disk. Usually disk 0 but check your output.)
list part (Lists the partitions on disk 0. Check your output for the partition number of the 260 MB partition created earlier.)
sel part 2 (Selects the 260 MB system partition created earlier.)
list vol (Lists all disk volumes. Check your output for the system hidden EFI volume number.)
sel vol 2 (Selects the 260 MB system hidden EFI volume.)
assign letter=S
list vol (to check that the S drive letter was assigned to the selected volume, and that the drive letter C was assigned to the recovered volume.)

Then, type bcdboot c:\windows /s s: /f ALL

You should see output "Boot files successfully created." You can then reboot the system.

Reference: https://www.diskpart.com/articles/bcdboot-failure-when-attempting-to-copy-boot-files.html