Welcome dear viewers all!
On this video,
I will show you how to fix BCDBOOT issue when you tried to
rebuild Boot Configuration Data with the following error message:
Failure when attempting to copy boot files.
BCD BOOT is a tool used via command prompt to rebuild the boot files...
on a computer to run the Windows Operating System especially if the computer...
failed to start-up normally with BCD blue screen boot loop.
There are many sources for Failure when attempting to copy boot files error,...
such as, selecting a letter of wrong partition,...
wrong configuration of Boot partition, ...
the language option not included or incorrectly included in the command line...
and the disc scheme (GPT/MPR) options not included properly in the command line.
Therefore, the solution will be different from PC to PC based on the windows version and the disk scheme whether is GPT or MPR.
I will show you how to fix all of them step by step,
but before starting,..
you should know whether you have a GPT OR MPR system as followings:
a. Open Command Prompt.
b. Type Diskpart and hit Enter to open disk manager.
c. Type list disk and hit Enter.
d. If you have asterisk "*" under GPT column next to the Disk number 0,
then your disk scheme is GPT.
e. If there is no asterisk, then you have an MPR disk scheme.
If you have more than one disk with both GPT and MPR,
rely on the disk that Windows is installed on, depending on the size of the disks.
SOLUTIONS:
There are 4 suggested solutions that are related to each other,
so it’s important to try all of them in the same order starting by the first one.
1. MAKE SURE YOU ARE USING THE CORRECT LETTER FOR WINDOWS PARTITION AS FOLLOWINGS:
1.a Type NOTEPAD and hit Enter
1.b. Click “File” tab
1.c. Select “Open” option
1.d. Click on “This PC” icon to show all your partitions
1.e. Determine which letter is the windows partition.
Windows partition usually takes the C or D letters BUT NOT THE X letter,
and it contains the Windows and Users folders.
User folder will contain your account or profile name.
In my case, the D assigned for windows partition.
1.f. Now execute the short form of BCDBOOT command again using the correct letter: BCDBOOT D:\WINDOWS
Replace D with the letter of your windows partition.
As you can see, the boot files successfully created now without error.
2. ACTIVATING THE BOOT PARTITION IN MPR OR BIOS-BASED SYSTEMS:
2.a. Execute the following command: BOOTREC /REBUILDBCD
2.b. Type BCDEDIT and hit Enter to show the BCD data.
2.c. Determine which letter is for the boot partition from Device entry.
In my case, the D is assigned for Boot partition.
2.d. Execute the followings command: DISKPART
2.e. Type LIST VOL to show list of volumes.
2.f. Select the Boot partition using the following command: SEL VOL 1
(Replace the 1 with the volume number of your BOOT partition).
2.g. Type ACTIVE to activate boot partition.
2.f. Select the WINDOWS partition using the following command: SEL VOL 2
(Replace the 2 with the volume number of your WINDOWS partition).
2.i. Type INACTIVE to Deactivate WINDOWS partition.
2.j. Type EXIT and hit Enter to close Diskpart.
2.k. Execute the BCDBOOT command to rebuild the BCD file: BCDBOOT C:\WINDOWS Replace C with the letter of your windows partition.
It’s supposed you are able to determine which letter is the Boot partition, otherwise,
you should watch the video from links in description to learn how to identify
the Boot partition and how to differentiate it from Recovery partition.
3. SPECIFY THE DEFAULT WINDOWS LANGUAGE AND DISK SCHEME WHETHER IS GPT OR MPR IN THE COMMAND LINE AS FOLLOWINGS:
3.a. Type BCDBOOT D:\WINDOWS command without hitting Enter. Replace D with the letter of your windows partition.
3.b. Press Shift+f10 keys to open another command prompt window.
3.c. Execute the following command to know the default system language: DISM /IMAGE:D:\ /GET-INTL
3.d. In my case, the default language is the United Kingdom English, so I will add en-GB to the command line after L option as shown.
3.e. In the second CMD window, Type DISKPART and hit Enter
3.F. Type LIST DISK and hit Enter
3.g. In my case, the disk scheme is MPR, so I will add /F BIOS to the command line.
3.h. If you have a GPT system, add /F UEFI to the command line. BCDBOOT D:\Windows /L en-GB /F UEFI
In rare cases, you may need to add ALL after /F option to copy both BIOS and UEFI boot files as following: BCDBOOT D:\Windows /L en-GB /F ALL
3.i. Because we specify the /F option, we must also specify the /S option to identify the volume letter of the EFI or boot partition.
3.j. Back to the second CMD window and Execute LIST VOL command.
3.k. In my case the C is the boot partition, so I will add /S C: to the command line, so the final form of command line will be as following:
3.l. Now hit Enter to execute the command line
As you can see, the boot files successfully created without error.
4- Rebuild BCD manually - In MPR-based systems - In GPT-based systems
4.1.a. Open command prompt
4.1.b. Type Bootrec /rebuildbcd and hit Enter
4.1.c. Make a backup copy for old BCD file using the following command: bcdedit /export C:\BCDbackaup
You can replace the C with another letter to save the BCD backup to another partition without problem.
4.1.d Type the following command to remove the hidden, system attributes and read-only properties from the BCD file: Attrib C:\boot\bcd -h -s -r Replace C with the letter of your boot partition and not Windows partition.
If you received an error message saying that path not found -c:\boot,
that means you have selected a wrong boot partition or your disk table is GPT and not MPR.
4.1.e. Rename or delete the old BCD file using one of the following commands but not both: ren c:\boot\bcd bcd.old This will reanme it ins place OR del c:\boot\bcd This will delete it.
4.1.f. Type Bootrec /rebuildbcd and hit Enter
4.1.g. Type Yes or Y and hit Enter to add the windows installation configuration to boot list.
In GPT systems, the path into the BCD is different,
so to rebuild BCD using this method do the followings:
4.2.a. Type DISKPART and hit Enter
4.2.b. Type LIST DISK and hit Enter
As you can see, the system is GPT as indicated by asterisk (*) under GPT column.
4.2.c. Type LIST VOL and hit Enter
If the EFI or Boot partition didn’t has a letter, you have to assign any letter to it as followings:
4.2.d. Type SEL VOL 4 to select the EFI partition
Replace 4 with the number of EFI partition in your PC
4.2.e. Assign the V letter to the EFI partition using this command: ASSIGN LETTER=V:
4.2.f. Execute LIST VOL command again to see if the V letter assigned to EFI or not.
4.2.g. Type EXIT and hit enter to close diskpart
4.2.h. Execute the following command: Dir /a /b /s V:
If the V is the boot partition, you will see the BCD file in this path: V:\EFI\Microsoft\Boot\BCD
If you see file called WinRE.WIM, then the V is the Recovery partition and not Boot Partition.
4.2.i. Press Shift + F12 keys to open another CMD window.
4.2.j.Type Bootrec /rebuildbcd and hit Enter
4.2.k.Make a backup copy for old BCD file using the following command: bcdedit /export C:\ BCD.backup
4.2.l. Type the following command to remove the hidden, system attributes and read-only properties from the BCD file: Attrib V:\EFI\Microsoft\Boot\BCD -h -s –r
4.2.l. Type the following command to remove the hidden, system attributes and read-only properties from the BCD file: Attrib V:\EFI\Microsoft\Boot\BCD -h -s –r Copy the path of BCD from first CMD window
4.2.m. Delete the old BCD file using This command: del V:\EFI\Microsoft\Boot\BCD
4.2.n. Press the upper arrow key from keyboard to explore previously executed commands then execute BOOTREC /REBUILDBCD again.
4.2.o. Type Y and hit Enter to add the windows installation configuration to boot list.
4.2.p. Close the command prompt then click on Continue button to restart your computer into Windows operating system.
Finally, it’s important to read the video description and pinned comment to see if there is any update or modification for any method due to windows update or whatever.
If you still have an issue, don’t hesitate to add your question and we will try our best to help you.
Thanks for watching. If you liked the video, leave a comment and subscribe.