Last active
February 21, 2022 13:41
-
-
Save stroparo/edad383d26071a8edb0b2ed6470b653f to your computer and use it in GitHub Desktop.
Windows diskpart commands for EFI clone, movement, resizing etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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