Windows failed to start : The Boot Configuration Data for your PC is missing or contains errors

I am working on Windows Server 2012 via  VMware, after I have expanded the size of OS Partition and I set it as “Active”. and turn off my VM that Host Windows Server 2012 R2, then tried to Power On VM again, I got the following error :

I turned off my VM , then I tried to power on it again, but unfortunately,  I got the following error :

The Boot Configuration Data for your PC is missing or contains errors.

windows error to start

Cause:

This issue might occur because of expanding the Operating System drive that effect on the BCD file and it must be rebuilt again via Bootrec.exe tool .(I gonna show more details regarding Bootrec tool at the article end).

Solution:

To rebuild the BCD file via , you should follow the mentioned steps below:

  • Power Off the VM.
  • Go to VM Settings from left side >hardware tab >  CD/DVD > Browse.

vm settings

  • Locate the Windows Server 2012 R2 media (ISO/DVD). (Note: It must be the same as the version that was used before for installing windows).

browse to wind2012 media

  • Set the default boot device to CD/DVD via the following:
    • Power On VM > Press F2 to go to Bios Setup > Boot Menu  > Select CD-ROM Drive and press + to go up as shown below.

VMWare VM Bios Boot Order

  • Press F10 to save and exit.
  • The VM should be now restarted directly, and the following window should be shown > Press any key to boot from CD.

boot-from-cd-prompt

  • Select your language and click next.

Slide1

  • Click Repair your Computer.

install-now-instalare-windows-server-2012

  • Click Troubleshoot

Slide3

  • Click on Command Prompt

Coomand Propmat from repair

  • The Command Prompt  should now be started > Type the following command to rebuild BCD

bootrec /RebuildBcd

bootctr rebuildbcd

  • Close CMD > Click on Continue to windows server.

exit and continue

  • The windows server should be now booted successfully.

c1

Note: In some cases, you might need to run  “Bootreccommand before rebuilding the BCD file with the following options:

  • /FixMbr
  • /FixBoot

In next section, I show The Bootrec.exe tool options in details(Ref: https://support.microsoft.com/en-us/kb/927392)

The Bootrec.exe tool supports the following options. Use the option that’s appropriate for your situation.

  • /FixMbr
    • This option writes a Windows 7 or Windows Vista-compatible MBR to the system partition. It does not overwrite the existing partition table. Use this option when you must resolve MBR corruption issues, or when you have to remove the nonstandard code from the MBR.
  • /FixBoot
    • This option writes a new boot sector to the system partition by using a boot sector that’s compatible with Windows Vista or Windows 7. Use this option if one of the following conditions is true:
      • The boot sector was replaced with a nonstandard Windows Vista or Windows 7 boot sector.
      • The boot sector is damaged.
      • An earlier Windows operating system was installed after Windows Vista or Windows 7 was installed. In this situation, the computer starts by using Windows NT Loader (NTLDR) instead of Windows Boot Manager (Bootmgr.exe).
  • /ScanOs
    • This option scans all disks for installations that are compatible with Windows Vista or Windows 7. It also displays the entries that are currently not in the BCD store. Use this option when there are Windows Vista or Windows 7 installations that the Boot Manager menu does not list.
  • /RebuildBcd
    • This option scans all disks for installations that are compatible with Windows Vista or Windows 7. Additionally, it lets you select the installations that you want to add to the BCD store. Use this option when you must completely rebuild the BCD store.

Enjoy 🙂

 

Advertisements

One thought on “Windows failed to start : The Boot Configuration Data for your PC is missing or contains errors

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s