You can learn how to fix BCDBoot failure when attempting to copy boot files in 3 useful ways as well as the best way to prevent the error. Please read on for more details.
BCDBoot is a command-line tool that knows where to boot from or where Windows is located when you turn on your computer, so it can help you configure the operating system's boot file. And it can also repair system partitions, fix boot menus and even set your computer to boot from a virtual hard drive.
But sometimes user report this error “Failure when attempting to copy boot files". This may be caused by various reasons and the most common ones are in the following.
Next, this article will introduce you 3 solutions in turn. You can follow the graphic tutorials provided in each method to fix the BCDBoot failure when attempting to copy boot files error. Please read on.
An inactive system partition is the most common reason for this error, so this method can help many users, you can follow the graphic tutorial below to set the system partition as active with the Windows diskpart utility.
By the way, to use this method, you need Windows installation media (a bootable USB drive or DVD). If you don't have one, you can download the Media Creation Tool from the Microsoft website to create one.
Step 1. Insert your Windows installation media and use it to boot your system.
Step 2. You will enter the Windows setup wizard. Select the language and other preferences. Then click Next.
Step 3. Click Repair Your Computer in the bottom-left corner.
Step 4. Then select Troubleshoot > Advanced Options > Command Prompt.
Step 5. When you're in the command prompt window, type Diskpart and press Enter to launch the Diskpart utility.
Step 6. Type select disk 0 (assuming you only have one hard disk attached to your system). If you are using multiple disks, select the disk where the Windows files reside.
Step 7. Type list partition.
Step 8. Type select partition X (X being the partition where Windows is installed).
Step 9. Type active to mark the selected partition as active.
Step 10. Type exit to exit the DiskPart utility. Then remove the installation media and try to reboot your system to see if the error is fixed.
MBR (Master Boot Record) is responsible for the initial boot of the system. If an error occurs in the MBR or a corrupt boot file causes "Failure when attempting to copy boot files" error, you can fix it by rebuilding the MBR. You can follow the steps below.
Step 1. Boot your computer from the installation media and select the language and other preferences in the Windows Setup page. Then, click Repair Your Computer and select Troubleshoot > Advanced Options > Command Prompt.
Step 2. In the command prompt window, execute the following commands in sequence. You need to press Enter after typing each command line.
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
Only the path is different for different operating systems. If you are using Windows 7, you can follow the steps below.
Step 1. Boot the computer from the installation media and choose language and other preferences in the Windows Setup page. Then, click Repair Your Computer and select Troubleshoot > Advanced Options > Command Prompt.
Step 2. In the Choose a recovery tool window, select Command Prompt.
Step 3. Execute the following commands in sequence. Press Enter after typing each command line.
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
Finally, remove the installation media from your PC and you'll be able to reboot your PC without encountering the BCDBoot failure when attempting to copy boot files error.
The third method is to check if you have BIOS or UEFI, the command is set to work with it by default when you boot into Advanced Recovery. If you boot to BIOS but mention UEFI in the command, then it will cause the above error. When using this method, please don't just copy any command to execute it. If you are not sure about your computer boot mode, you can use the following command.
bcdboot c:\windows /s Z: /f ALL
Note:
Z is the volume letter of the system partition, and /s has to be used for that. The option /f is for firmware type. You can use BIOS or EFI to replace the ALL if you are sure.
The corruption of these files such as MBR or BCD will cause data loss, system unbootable, etc. If you don't want to encounter problems due to the corrupted files, you may consider making a file backup.
You can select a free and professional backup software to help you, such as AOMEI Backupper Standard. It can help you backup anything easily, not only files, but also system, disk and partitions. And either backup solution, you can enjoy the following advantages.
Then you can download this software and follow the steps below to backup your files with just a few clicks.
Step 1. Open AOMEI Backupper Standard and then click Backup > File Backup.
Step 2. Click Add File or Add Folder to select the files or folders you want to backup.
Step 3. Choose a destination for your file backup.
Step 4. Confirm all your operations and click Start Backup to execute this task. In daily use, you can set schedule backup to backup files automatically and prevent potential disk full issues with other useful options.
If you are troubled by BCDBoot failure when attempting to copy boot files error, you can choose any of the methods mentioned in this article. To prevent this error from file corruption, I recommend you to backup your files regularly.
The free and safe backup software AOMEI Backupper Standard could be a great helper. It can backup your files easily with different frequencies and you can use its incremental backup to backup only changed files. Also, you can enjoy other disk space savior features, such as, high compression level, automatic backup cleanup, etc. If you encounters an error due to file corrution, you can use the file backup to restore it and make it go back to the normal situation.