Skip to content

Instantly share code, notes, and snippets.

@twilson90
Last active September 6, 2021 09:30
Show Gist options
  • Save twilson90/cafa33b0b813a635ec93fd39a4309d2b to your computer and use it in GitHub Desktop.
Save twilson90/cafa33b0b813a635ec93fd39a4309d2b to your computer and use it in GitHub Desktop.
EFI Partition Creation Guide for Windows 10
Boot with Windows Install Disk / Recovery Tool USB
Advanced Options -> Command Prompt:
Enter the following (hashtags are comments, not part of the command):
diskpart
list disk
select disk N # N refers to the disk which contains the deleted the EFI System partition.
list partition
select partition N # The primary partition.
shrink desired=100 # This will shrink your primary partition by 100MB, if you have at least 100MB unallocated space, ignore this step.
create partition efi size=100
assign letter=S # This temporarily assigns the partition a drive letter for reference later.
list partition
select partition N # The new partition should be selected already, but select it again to be sure.
format quick fs=fat32
list volume # Find the volume letter which belongs to the installed Windows OS
exit
bcdboot C:\windows /s S: /f ALL # C refers to the volume letter of installed Windows OS from the previous command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment