Fix for Boot Failure Because of Missing OS

Instructions

  1. Boot from appropriate OS media
  2. Select the current Windows installation if available
  3. Choose Command Prompt and run type the commands below. Hit enter after each line
    bootrec.exe /fixmbr
    bootrec.exe /fixboot
    bootsec.exe /nt60 all /force
    attrib -s -h -r C:\boot\BCD
    del C:\boot\BCD
    bootrec.exe /RebuildBCD
    bcdboot.exe C:\Windows /S C:/L en-us

Mark Partition as Active

Hit enter after each line

Diskpart
LIST DISK
SELECT DISK (insert number of your disk)
LIST PARTITION
SELECT PARTITION (insert the number of your partition here)
ACTIVE
EXIT