I am attempting to fix a Windows 10 boot "Error Code: 0xc0000098" using a bootable USB stick with Windows 10 ISO. During the Windows 10 installation process, I enter into "Repair your computer" > "Troubleshoot" > "Advanced options" > "Command Prompt". From here, I have run the following commands successfully:
However, when I try to run the command: "attrib c:\boot\bcd -s -h -r", I get returned with "Path not found - c:\boot". How should I proceed?
Assistant
The error message "Path not found - c:\boot" suggests that the BCD (Boot Configuration Data) store directory does not exist in the specified path. This directory is typically located under the system partition, which is often the hidden EFI system partition on newer UEFI systems.
To address this issue, you should first ensure that you are targeting the correct system partition. Here’s a step-by-step guide to help you navigate and fix the issue:
List Available Partitions:
You need to find the correct EFI partition or boot partition where the BCD store resides.
In the Command Prompt, run the following command to open the disk partition tool:
code
diskpart
Then list the available disks:
code
list disk
Select the disk that you are booting from (usually Disk 0):
code
select disk 0
List the partitions on the selected disk:
code
list partition
Identify the EFI Partition:
The EFI partition is typically a small partition, around 100 MB to 500 MB. Select the EFI partition:
code
select partition X
Replace X with the partition number identified as the EFI partition.
Assign a Drive Letter to the Partition:
Assign a temporary drive letter to the partition:
code
assign letter=Z
Use any available letter, for example, Z.
Exit DiskPart:
Exit the DiskPart tool:
code
exit
Navigate to the Boot Directory:
Try to access the boot directory on the assigned drive:
code
Z:
cd EFI\Microsoft\Boot
If the path does not exist, try:
code
cd Boot
Run Attrib Command on the BCD File:
Now run the attrib command:
code
attrib BCD -s -h -r
Rebuild the BCD Store:
Once you have successfully removed the attributes from the BCD file, you can rebuild it. Run the following commands:
code
ren BCD BCD.bak
Now rebuild the BCD store:
code
bcdboot C:\Windows /l en-us /s Z: /f ALL
Here, C:\Windows is assumed to be the directory where Windows is installed. Adjust the drive letter if your Windows installation is on a different partition.
Remove the Assigned Drive Letter (Optional):
Optionally, you can remove the assigned drive letter:
code
diskpart
select disk 0
select partition X
remove letter=Z
exit
Restart Your Computer:
After completing these steps, restart your computer and see if the error is resolved.
If these steps do not resolve the issue, double-check which partitions contain the Windows installation and BCD store, as the paths and drive letters might differ based on your system configuration.