Thursday, 19 April 2012

getback windows bootloader

Get the Windows 8 Developer Preview boot menu back.

  1. Start from the Windows 8 Developer Preview installation medium.
  2. Optionally, choose your keyboard settings.
  3. Hit SHIFT+F10 to enter the command prompt.
  4. Execute bootrec /fixmbr to update the main boot record just to be sure, partitions will remain.
  5. Execute bootrec /fixboot to update the boot sector of the system partition.
  6. Execute bootrec /scanos to add known OSes to the boot configuration data.

Get it to list Windows XP.

  1. Execute bootrec /rebuildbcd, this will rebuild the boot configuration data.
  2. If that doesn't work, reboot and use bcdedit from Windows 8 Developer Preview like this:
     
    bcdedit /create {ntldr} /d "Windows XP"
    
    bcdedit /set {ntldr} device partition=X:
    
    bcdedit /set {ntldr} path \ntldr
    
    bcdedit /displayorder {ntldr} /addlast
    
    Please note that you need to right click the Command Prompt tile, then click on advanced in the lower right corner and then click on Run As Administrator. Replace X: by your XP partition.