Skip to content

Instantly share code, notes, and snippets.

@sprhawk
Created January 15, 2020 15:03
Show Gist options
  • Save sprhawk/9084616576dd4de71a067b4fb7f397bd to your computer and use it in GitHub Desktop.
Save sprhawk/9084616576dd4de71a067b4fb7f397bd to your computer and use it in GitHub Desktop.
Recover Windows (10) System Partition
  1. Create an installation media
  2. Boot PC with an installation media
  3. Press SHFIT + F10 on the first screen to bring up Command Prompt
  4. Run the following commands and click Enter each time at Command Prompt:
diskpart
list disk
select disk N (N refers to the disk which contains the deleted the EFI System partition)
list partition
create partition efi
format quick fs=fat32
list partition
list volume (find the volume letter which belongs to the installed Windows OS)
select volume N (select system partition)
assign letter=K
exit (exit diskpart, or open another command prompt)
bcdboot M:\windows /s K: /f UEFI (M refers to the volume letter of installed Windows OS)

(bcdboot m:\windows command will copy the boot files from Windows partition to the EFI system partition and create BCD store in the partition)

Next remove installation drive and restart your computer

Dell Support: How to repair the EFI bootloader on a GPT HDD for Windows 7, 8, 8.1 and 10 on your Dell PC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment