The last two days has not been good to me for reloading Windows.  I started reloading Windows Vista on this monstrosity of a Toshiba laptop, and it quickly turned into a death spiral of swearing.  The whole situation started off innocently enough as a simple backup and reload; the backup progressed without any problems, but when I started to reload with the built-in recovery partition, the recovery made it about halfway through, before throwing up an error and stopping; I figured might as well reboot and try again.  Upon rebooting, I was greeted with a missing Bootmgr error.  I grabbed a near by Windows 7 Recovery Environment disc, I had previously made, and fired the laptop up again; Startup repair said it couldn’t fix the problem, so I dropped into the command prompt.  Using bootrec /fixmbr and bootrec /fixboot, I fixed the missing Bootmgr, but was greeted by a new error – 0xc000000f  The Windows Boot Configuration Data File is missing required information.”   Booting back to WIndows 7 RE, I found out the BCD was missing.  I tried all the fixes from http://support.microsoft.com/kb/927391 with no favorable results.  

The three suggested fixes:

  1. Use Startup Repair — This said it could not fix the problem
  2. Use bootrec to fix the problem — Bootrec could not find any OS
  3. Use bcdedit.exe — This initially did not work because the BCD was in some weird state of non-existence — bcdedit was saying the BCD existed even though it was not on the hard drive.  

To work around this phantom BCD, I imported the BCD from the Windows 7 RE disc, then deleted it.

Using bcdedit.exe I then recreated the BCD store and added the Vista install to it using the following commands

cd /d c:WindowsSystem32

bcdedit /createstore

bcdedit /create /d “Vista” /application osloader

bcdedit /displayorder {GUID} /addlast

bcdedit /set {GUID} device partition=C:

bcdedit /set {GUID} systemroot Windows

bcdedit /set {GUID} osdevice partition=C:`

 

This recreated the missing BCD store for the Windows partition.  Rebooting, I got a new error – 0xx000000f winlogon.exe is missing.  Booting back to Windows RE, I poked around the Windows and WindowsSystem32 directory; after a few minutes, I realized most of the necessary files to load Windows Vista were missing, and the Recovery partition was completely gone.  So much for an bread and butter, backup and reload. 

*EDIT*

I forgot to add the bcdedit /createstore command, without it the rest won’t work.  

Advertisements