Fix Bootrec Rebuild BCD System Cannot Find Path
In this article
When you run bootrec /rebuildbcd and get "The system cannot find the path specified," it usually means the Boot Configuration Data (BCD) store is missing or the boot partition is not accessible. This guide walks you through fixing it using Windows Recovery Environment (WinRE) commands, without needing third-party tools.
What You'll Need
- A Windows installation media (USB or DVD) or access to the Windows Recovery Environment (WinRE) on your PC.
- Basic comfort with typing commands in a Command Prompt.
- If your PC uses BitLocker, have the recovery key ready—you may need it to access drives.
Step-by-Step
- Boot into Windows Recovery Environment. Insert your Windows installation media, restart your PC, and boot from it. If you don't have media, try restarting while holding Shift and clicking Restart from the sign-in screen to enter WinRE. From the recovery menu, choose Troubleshoot > Advanced options > Command Prompt.
- Identify your system and EFI partitions. At the Command Prompt, type
diskpartand press Enter. Then typelist diskand press Enter. Note the disk number that contains your Windows installation (usually Disk 0). Typeselect disk 0(replace 0 with your disk number) and press Enter. Then typelist partitionand press Enter. Look for the partition labeled System (usually 100–500 MB, FAT32) and the partition labeled Primary (where Windows is installed, NTFS). Note their partition numbers. Typeexitto leave DiskPart. - Assign drive letters to the partitions. Back at the Command Prompt, type
diskpartagain, thenselect disk 0(your disk), thenselect partition 1(replace 1 with the System partition number). Typeassign letter=Sand press Enter. Thenselect partition 2(replace 2 with the Primary partition number) and typeassign letter=Cand press Enter. Typeexitto leave DiskPart. - Format the System partition (if needed). If the System partition is corrupted or empty, you may need to format it. Type
format S: /FS:FAT32and press Enter. Confirm withYwhen prompted. If you get an error like "The volume is in use," skip this step—your BCD may still be recoverable without formatting. - Rebuild the BCD store. Type the following commands one at a time, pressing Enter after each:
bootrec /fixmbr bootrec /fixboot bootrec /scanos bootrec /rebuildbcd
When prompted to add an installation to the boot list, typeYand press Enter. If you get the "system cannot find the path specified" error again, proceed to the next step. - Manually create the BCD store. If the rebuild fails, you can create a new BCD store manually. Type these commands:
bcdedit /createstore C:\Boot\BCD bcdedit /store C:\Boot\BCD /create {bootmgr} /d "Windows Boot Manager" bcdedit /store C:\Boot\BCD /set {bootmgr} device partition=S: bcdedit /store C:\Boot\BCD /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi bcdedit /store C:\Boot\BCD /create {default} /d "Windows 10" /application osloader bcdedit /store C:\Boot\BCD /set {default} device partition=C: bcdedit /store C:\Boot\BCD /set {default} osdevice partition=C: bcdedit /store C:\Boot\BCD /set {default} path \Windows\system32\winload.efi bcdedit /store C:\Boot\BCD /set {default} systemroot \WindowsReplace "Windows 10" with your actual Windows version if you know it (e.g., "Windows 11"). If you're on a legacy BIOS system (not UEFI), usewinload.exeinstead ofwinload.efiand skip the{bootmgr}path line. - Copy the BCD store to the System partition. Type
copy C:\Boot\BCD S:\Boot\BCDand press Enter. If the S:\Boot folder doesn't exist, create it withmkdir S:\Bootfirst. - Exit and restart. Type
exitto close Command Prompt, then restart your PC. Remove the installation media if you used it. Windows should boot normally.
Common Mistakes
- Assigning the wrong drive letters. If you accidentally assign C: to the System partition and S: to the primary, the commands will fail. Double-check with
dir C:\Windows—if it shows the Windows folder, you have the right primary partition. - Skipping the format step. If the System partition is corrupted, the BCD store may not write correctly. Formatting it clears the corruption, but make sure you have the correct partition (the small FAT32 one).
- Using the wrong bootloader path. On UEFI systems, the path is
\EFI\Microsoft\Boot\bootmgfw.efi. On legacy BIOS, it's\Windows\system32\winload.exefor the OS loader, and the BCD store is on the active partition, not a separate System partition. - Not running as administrator. The Command Prompt from WinRE should already be elevated, but if you're trying these steps from within Windows, you must right-click Command Prompt and select "Run as administrator."
Tips
- Always back up important data before running diskpart commands, especially if you plan to format partitions.
- If you have multiple Windows installations, the
/scanosstep will list them—make sure you add the correct one. - Write down the partition numbers and letters you assign—you'll need them for the manual BCD creation.
- If your PC uses UEFI, ensure the System partition is FAT32 and the primary is NTFS. Using the wrong filesystem can cause boot errors.
Troubleshooting
If the error persists after following all steps:
- Check the drive order. In BIOS/UEFI, ensure the disk with Windows is set as the first boot device. Sometimes the boot order changes after a repair.
- Run Startup Repair. From WinRE, go to Troubleshoot > Advanced options > Startup Repair. This can fix boot issues that commands miss.
- Verify the BCD store location. After copying, type
dir S:\Boot\BCDto confirm the file exists. If it doesn't, the copy command may have failed—check the drive letter assignments. - Check for disk errors. Run
chkdsk C: /ffrom the Command Prompt to scan the primary partition for errors. This may take a while. - If you have a Linux dual-boot, the boot manager may be GRUB. In that case, you may need to reinstall GRUB instead of using bootrec. This guide is for Windows-only setups.
Frequently Asked Questions
Why do I get "The system cannot find the path specified"?
This error usually means the BCD store is missing or the path to it is invalid. The bootrec /rebuildbcd command looks for a BCD store in a specific location, and if the System partition isn't properly identified, it can't find it.
Will formatting the System partition erase my files?
No, the System partition only contains boot files (like BCD and bootmgr). Your personal files are on the primary partition (C:). Formatting the System partition will not touch your documents or programs.
Can I use this method on a legacy BIOS system?
Yes, but the steps differ slightly. On legacy BIOS, there is no separate EFI System partition—the boot files are on the active partition (often C:). You can run bootrec /rebuildbcd directly without assigning letters, and the manual BCD creation uses winload.exe instead of winload.efi.
What if I don't have a Windows installation media?
You can create one using the Microsoft Media Creation Tool from another PC. Alternatively, if your PC can boot to the login screen, you can access WinRE by holding Shift and clicking Restart, then navigating to Command Prompt.
Is there a way to back up the BCD store before making changes?
Yes. Before rebuilding, you can copy the existing BCD store to a safe location. From the Command Prompt, type copy S:\Boot\BCD S:\Boot\BCD.backup (adjust the drive letter if needed). This way you can restore it if something goes wrong.
After fixing, Windows boots but shows a black screen—what now?
This could be a graphics driver issue or a corrupted system file. Try booting into Safe Mode (press F8 during boot, or use WinRE > Advanced options > Startup Settings > Restart > press 4). From Safe Mode, run sfc /scannow to repair system files.