Skip to content

Instantly share code, notes, and snippets.

@stroparo
Last active February 21, 2022 13:41
Show Gist options
  • Save stroparo/edad383d26071a8edb0b2ed6470b653f to your computer and use it in GitHub Desktop.
Save stroparo/edad383d26071a8edb0b2ed6470b653f to your computer and use it in GitHub Desktop.
Windows diskpart commands for EFI clone, movement, resizing etc.
:: In an admin ran cmd / powershell terminal window:
diskpart
list disk
select disk 0
create partition efi size=800
list volume
select volume 14
list volume
assign letter=v
format quick fs=fat32 label="EFI"
list volume
:: Back to the (admin) shell:
bcdboot c:\windows /s v: /f ALL
:: In an admin ran cmd / powershell terminal window:
diskpart
list disk
select disk 0
list volume
select volume <old (EFI) partition id here>
delete partition override
list volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment