Issue with updating BCD(Boot Configuration) in Windows 8.1

skrishn1

New Member
Messages
1
ORIGINAL ISSUE:
First I accidentally did bcdedit /deletestore deleted the Windows entry to boot.
And so it was unable to boot, and failing with Unable to find \Boot\BCD file, 0xc0000098 error.


I tried various options, but none worked, so decided to recreate BCD from scratch.


RECREATING_BCD_FROM_SCRATCH:
When I booted with Windows Install disk, and went into Repair Computer Mode, Command Prompt.
Found that System Reserved Partition was on C: drive.
And my Windows Install was on E: drive.


So I followed the steps below to recreate BCD in my system Reserved Partition in C drive.
These are the steps I did, since the import command in the links above didnt work, followed Nathan Brown's suggestion).
bcdedit /createstore C:\Boot\BCD
bcdedit.exe /store C:\Boot\BCD /create {bootmgr} /d "Windows Boot Manager"
bcdedit.exe /store C:\Boot\BCD /set {bootmgr} device partition=C:
bcdedit.exe /store C:\Boot\BCD /timeout 10


bcdedit.exe /create /d "Microsoft Windows" /application osloader
bcdedit.exe should return a message with a GUID for the newly-created entry, something like this:
The entry {c0dfc4fa-cb21-11dc-81bf-005056c00008} was successfully created.
In my case, Windows was installed on E drive.
bcdedit.exe /store C:\Boot\BCD /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} device partition=E:
bcdedit.exe /store C:\Boot\BCD /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} osdevice partition=E:
bcdedit.exe /store C:\Boot\BCD /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} path \Windows\system32\winload.exe
bcdedit.exe /store C:\Boot\BCD /set {c0dfc4fa-cb21-11dc-81bf-005056c00008} systemroot \Windows


And, last of all, tell the bootmgr bootloader to list the new entry or else it’ll remain hidden:
bcdedit.exe /displayorder {c0dfc4fa-cb21-11dc-81bf-005056c00008}


ERROR:
But then, it booted, but when I ran bcdedit, I was not getting any output,
But I was getting this error, when I ran bcdedit.
bcdedit error
The boot configuration data store could not be opened.
The volume for a file has been externally altered so that the opened file is no longer valid.


So, I figured that it needs to imported to main drive's(where Windows is Installed) Boot configuration from the System Reserved Folder.


IMPORTING_BCD_FROM_SYSTEM_RESERVED_PARTITION_TO_MAIN_DRIVE_THAT_HAS_WINDOWS:


1. C:\Windows\System32\diskmgmt.msc
2. Manually assigned D: drive to my system reserved partition.
3. cd D:\Boot
4. rename BCD BCD.bak
5. bcdedit /import C:\Boot\BCD.bak


RESULT:
So, now if I run bcdedit command, then I can see the bootmgr and Windows osloader configuration correctly.


NEW_PROBLEM_WITH_BCD:
And now my current problem is that, I am not able to enable debugsettings in my local PC, this is the error I am getting:
bcdedit /dbgsettings local
An error occurred while attempting to access the boot configuration data. The system cannot find the file specified.


Can someone let me know, if I made a mistake in re-creating my BCD or importing,and why this problem exists.
 

My Computer

System One

  • OS
    windows 8.1
Back
Top