Microsoft Windows

Restore boot files if EFI partition was deleted

The following commands will format the current EFI partition, mount it to s:, and copy the boot files:

diskpart
> list disk
> sel disk 0
> list part
> sel part 1 * EFI partition
> format fs=fat32 quick label=System
> list vol * find the Windows OS drive letter, assume `C:` in this case
> exit
mountvol S: /S
bcdboot c:\windows /s s: /f UEFI /v
exit

~~~

Last updated: 2021-11-19

Back to Techne index

Back to unixcat.coffee