Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Boot Configuration Data missing or corrupted: Startup Repair and bootrec

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

When the screen is black except for a blinking cursor, or Windows reports Boot Configuration Data (BCD) missing or corrupted (or related Boot Manager / boot sector messages), Microsoft places the failure in the Boot Loader phase. Troubleshoot from Windows installation media. Our own advice: try Startup Repair before manual BOOTREC and bcdedit steps.

What the symptom means

Microsoft lists these Boot Loader phase messages:

  • Boot Configuration Data (BCD) missing or corrupted
  • Boot file or MBR corrupted
  • Operating system Missing
  • Boot sector missing or corrupted
  • Bootmgr missing or corrupted
  • Unable to boot due to system hive missing or corrupted

You start installation media for the installed Windows version, open a repair command prompt (Shift+F10 or Repair your computer), then apply the methods below.

Prove the cause before changing anything

These steps only read once you reach WinRE.

1. Confirm the on-screen text matches a Boot Loader message above, not a later Stop code such as INACCESSIBLE_BOOT_DEVICE.

2. Note firmware mode (UEFI vs legacy) from the firmware setup screens your OEM documents.

3. Write down, in a note you keep with the change record (for example boot-bcd-before.txt): the exact error text, the Windows and System Reserved volume letters WinRE assigned (confirm before you export or rename), and today’s date. Our own advice: use diskpart list vol only as a read-only letter check if you need it.

Fix

Method 1: Startup Repair

From installation media: Next → Repair your computer → Troubleshoot → Advanced options → Startup Repair. After it finishes, shut down, then power on to test.

Microsoft stores the tool’s log at %windir%\System32\LogFiles\Srt\Srttrail.txt.

Method 2: Repair boot codes

Write down, in a note you keep with the change record (for example boot-fixmbr-before.txt): that a full disk image or backup of the system disk was taken before these commands, the image location, the disk you will target, and today’s date. Do not continue without that image.

Risk: the next commands rewrite master boot code and the boot sector. Microsoft notes that FIXMBR overwrites only the master boot code; if the partition table is damaged, FIXMBR might not fix the issue. A wrong disk target can make another OS on the machine unbootable. The cited page gives no way to undo FIXMBR or FIXBOOT without restoring from the image you recorded.

BOOTREC /FIXMBR

Then, as its own step:

BOOTREC /FIXBOOT

To undo it: restore the disk from the image or backup named in boot-fixmbr-before.txt. Without that image, the page gives no way to put the prior boot code back.

Method 3: Fix BCD errors

Microsoft’s example uses a specific BCD path. Identify the boot partition and active BCD store for this machine before applying any path from the example.

1. Scan for installed systems (read-only discovery):

Bootrec /ScanOS

Restart to test. If still broken, continue.

2. Verify a recovery image and export the BCD.

Before making changes, verify you can restore an image of the affected disk, including its boot partitions. Record the image location, timestamp and restore procedure. Stop here if no usable image exists or the recovery key for an encrypted disk is unavailable.

Write down, in a note you keep with the change record (for example boot-bcd-export-before.txt): that the export path will be c:\bcdbackup, and today’s date.

bcdedit /export c:\bcdbackup

Risk: the next commands clear read-only/system/hidden attributes on the BCD file, rename the live BCD to bcd.old, and rebuild the store with bootrec /rebuildbcd. The cited page gives no way to undo the rebuild: it documents bcdedit /export but not an import, and after rebuild a new bcd exists so renaming bcd.old back is not a supported restore on that page. Keep c:\bcdbackup and bcd.old for your own recovery planning; the page itself does not give the restore commands.

attrib c:\boot\bcd -r -s -h

Then:

ren c:\boot\bcd bcd.old

Then:

bootrec /rebuildbcd

Restart the computer.

To recover from a failed rebuild, restore the verified disk image recorded before Method 3 using its documented procedure. Keep the BCD export and renamed copy as diagnostic evidence.

Method 4: Replace Bootmgr — description

If methods 1–3 fail, Microsoft’s page says to rename c:\bootmgr to bootmgr.old, clear attributes on the System Reserved and system drives, copy Bootmgr from the system drive to the System Reserved partition, then restart.

Confirm the fix

  1. Windows reaches the sign-in screen without the BCD error text.
  2. Srttrail.txt or your rebuild output shows a successful repair.
  3. Keep c:\bcdbackup and bcd.old until the machine survives several clean reboots.

What to watch afterwards

  • Our own advice: BitLocker may ask for a recovery key after BCD changes; have the key ready.
  • If the machine keeps returning to recovery, record which recovery screen or message returns and escalate before changing the boot configuration again.
  • Kernel-phase Stop codes need a different article path.

Risks and limits

These steps have not been lab-tested.

All BOOTREC examples assume the Windows volume letters WinRE assigned; confirm letters before you export or rename. Image the disk before Method 2 and Method 3 on production servers.

Sources