Восстановление загрузчика Windows 10: ручное пересоздание файла конфигурация загрузки BCD
Диспетчер загрузки современных версий Windows использует для загрузки операционных систем, установленных на компьютере, файл BCD (Boot Configuratin Data) , в котором хранятся данные об ОС и параметрах их загрузки. В том случае, если файл BCD удален или поврежден, Windows перестает загружаться. В этой статье мы покажем способ ручного пересоздания файла хранилища данных конфигурации загрузки на примере Windows 10.
В том случае, если файл BCD поврежден или отсутствует, скорее всего, при попытке загрузить Windows, пользователь увидит такое сообщение:
Your PC needs to be repaired
The Boot Configuration Data file is missing some required information
File: \Boot\BCD
Error code: 0xc0000034
При появлении такой ошибки, в первую очередь попытайтесь исправить проблему с загрузкой ОС с помощью режима Startup Repair , который можно запустить из среды восстановления Windows RE .
Совет . Желательно периодически проверять работоспособность среды WinRE, и если она не работает, воспользоваться для ее восстановления методикой из статьи Восстановление среды WinRE в Windows 10.
В том случае, если автоматическое восстановление с помощью Startup Repair не помогло решить проблему, необходимо загрузиться с загрузочного / установочного диска с Windows или в среде WinRe (Repair your computer -> Troubleshoot -> Advanced options -> Command Prompt), запустить командную строку и попытаться создать новый файл конфигурации BCD «с нуля».
Очень важно . Все инструкции, описанные ниже, подходят для обычных MBR+BIOS систем. На системах с UEFI для пересоздания BCD нужно воспользоваться следующими инструкциями по восстановлению загрузчика в Windows 10/8 c EFI или Windows 7 .
В этом примере я буду использовать установочный диск с Windows 10. Загрузившись с него, нужно нажать на экране выбора языка сочетание клавиш Shift+F10 .
Попробуйте восстановить BCD файл автоматически, выполнив команду:
Перезагрузите компьютер и проверьте, загружается ли Windows, если нет, опять загрузитесь с установочного диска и откройте окно командной строки. Нам нужно идентифицировать диски системы (скорее всего назначенные им буквы дисков будут отличаться от дисков, которые вы видели при работе в Windows). Проще всего это сделать с помощью утилиты diskpart. Выполните следующие команды:
Перед вами появится список разделов в системе, назначенные им буквы и их размер. В нашем случае, на диске имеются всего два раздела:
- Раздел System Reserved размером 500 Мб, которому назначена буква диска C: . На этом небольшом служебном разделе по-умолчанию хранится файл конфигурации загрузки BCD ( подробнее )
- NTFS раздел размером 39 Гб, которому назначена буква D:. На этом разделе находится Window и данные пользователя
Важно . Запомните назначенные буквы дисков, т.к. в они будут использоваться в последующих командах.
С помощью следующих команд мы добьемся того, чтобы в MBR и загрузочном секторе имелись нужные ссылки на загрузчик Windows (bootloader).
bootrec.exe /fixmbr
bootsect.exe /nt60 all /force
Совет . Если команда bootsect.exe не будет найдена, попробуйте указать путь
X:\boot\bootsect.exe /nt60 all /force
Далее с помощью команды BCDedit создадим новый файл с конфигурацией загрузки (предполагается, что у вас нет резервной копии BCD ).
Удалите старый (поврежденный) файл BCD на разделе System Reserved и создайте вместо него новый.
del c:\boot\bcd
Создайте временный пустой файл bcd.tmp
bcdedit /createstore c:\boot\bcd.tmp
Создайте запись для диспетчера загрузки bootmgr.
bcdedit.exe /store c:\boot\bcd.tmp /create
Импортируйте в BCD настройки из файла bcd.tmp
bcdedit.exe /import c:\boot\bcd.tmp
Укажите, что загрузчик находится на служебном разделе System Reserved (ему назначена буква диска C: )
bcdedit.exe /set
Настройте время ожидания при выборе ОС
bcdedit.exe /timeout 10
Удалите временный файл
del c:\boot\bcd.tmp
Итак, у нас имеется пустой файл с параметрами загрузчика. Теперь в него нужно добавить записи об имеющихся на компьютере ОС. Создадим в хранилище BCD новую запись для Windows 10 bcdedit.exe /create /d «Windows 10» /application osloader
Команда должна вернуть уникальный идентификатор (GUID) данной записи загрузчика.
The entry <8a7f03d0-5338-11e7-b495-c7fffbb9ccfs>was successfully created.
Укажем, что bootmgr должен использовать данную запись по-умолчанию (после истечения времени ожидания для загрузки используется именно эта запись).
Теперь в новой записи загрузчика осталось указать пути к имеющейся на диске установленной копии Windows (ранее мы определении, что в среде WinPe диску с Windows присвоена буква D: )
bcdedit.exe /set
bcdedit.exe /set
bcdedit.exe /set
bcdedit.exe /set
Осталось сделать данную запись видимой (по умолчанию она скрыта)
bcdedit.exe /displayorder
Итак, мы полностью пересоздали хранилище конфигурации загрузки. Теперь можно перезагрузить компьютер и убедится, что Windows 10 загружается в штатном режиме.
Windows 10 Error «The Boot Configuration Data for your PC is missing or contains errors Error code: 0xc000014c»
Original title: Computer crashed since updating to Win 10. Error code: 0xc000014c
Had my Lenovo laptop for a while and I recently updated from windows 7 to windows 10 with the automatic update, it was fine for about a week and now it won’t start up. I just get this error screen. My laptop didn’t come with an installation disk or ish drive with Windows7, so I’m not sure what to do.
This is what the FULL message says:
Recovery
Your PC needs to be repaired
The Boot Configuration Data for your PC is missing or contains errors.
File: \EFI\Microsoft\Boot\BCD
Error code: 0xc000014c
You’ll need to use the recovery tools on your installation media. If you don’t have any installation media ( like a disc or USB device ), contact your system administrator or PC manufacturer
PLEASE HELP.
Replies (33)
* Please try a lower page number.
* Please enter only numbers.
* Please try a lower page number.
* Please enter only numbers.
Welcome to Microsoft Community.
Sorry to know that you are facing issue on Windows 10. I will certainly help you.
This issue might occur if the BCD ( Boot Configuration Data) files which contains boot configuration parameters and Windows startup files goes corrupted or the Boot\BCD file on the active partition is damaged or missing.
I suggest you to repair your computer by creating a Windows 10 Bootable media (i.e. USB or DVD) using Media Creation Tool . Once you’re ready with Bootable Media, follow the below mentioned steps.
1. Insert the Windows installation disc in the disc drive or connect USB media and then start the computer.
2. Press a key when you are prompted.
3. Select a language, a time, a currency, a keyboard or an input method, and then click Next.
4. Click Repair your computer.
5. Click the operating system that you want to repair and then click Next.
6. On the Choose an option screen, select Troubleshoot > Advanced options > Command Prompt and type
Type bootrec /fixmbr and press Enter.
(This command will write a Windows 10 compatible Master Boot Record to the system partition)
Type bootrec /fixboot and press Enter.
(This command writes a new boot sector to the system partition by using a boot sector that’s compatible with Windows 10)
Type bootrec /scanos and press Enter.
Type bootrec /rebuildbcd and press Enter.
(These two commands scans all disks for installations that are compatible with Windows 10)
7. Restart the computer and check if the issue is resolved.
Hope this helps. If the issue remains unresolved, please get back to us and we would be happy to help.
78 people were helped by this reply
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
Thankyou, will give it the above steps a try and get back to you if I have any more questions.
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
I did everything as you said with the usb and then the command prompt.
After typing the final command ‘rebuildbcd’ it came up with
«Successfully scanned windows installations.
Total identified windows installations:2
Add installation to boot list? Yes(Y)/No(N)/all(a):
Add installation boot to list? Yes(Y)/No(N)/All(A):
The requested system device cannot be found.»
I have tried all combinations of Y/N/A when grtti to this point, but nothing seems to work. The only way i can restart my laptop from this point is to hold the power button. Any advice on what to do from here?
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
Just wondering if I should use the Windows 7 mediacreationtool (if there is one) seeing as that it the version I had been using for years before the free upgrade to windows 10.
I’d really appreciate some help, pc is in fine condition, the problem arose due to the free upgrade to windows 10
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
My apologies for the delayed response.
I suggest you to use the Windows 10 Media Creation tool in future if you face any issues similar to this. Moreover the Windows 7 Media Creation tool is not compatibile for advanced troubleshooting on Windows 10.
Please post back with the status of the issue and we will be glad to assist you further.
2 people were helped by this reply
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
I already have. I’ll copy and paste the response from earlier in the thread in case you missed it.
I did everything as you said with the usb and then the command prompt.
After typing the final command ‘rebuildbcd’ it came up with
«Successfully scanned windows installations.
Total identified windows installations:2
Add installation to boot list? Yes(Y)/No(N)/all(a):
Add installation boot to list? Yes(Y)/No(N)/All(A):
The requested system device cannot be found.»
I have tried all combinations of Y/N/A when getting to this point, but nothing seems to work. Any advice on what to do from here?»
Thank you for your help.
2 people were helped by this reply
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
Apologize for the difficulties that you’re experiencing regarding this issue and also for the delay in getting back to you.
You can use the Startup Repair option in the Windows Recovery Environment to repair the BCD store. Startup Repair is a Windows Recovery tool that can fix certain system problems that might prevent Windows from starting. Startup Repair scans your computer for the problem, and then tries to fix it so your computer can start correctly.
To do this, follow these steps:
1. Insert the Windows 10 installation disc in the disc drive or connect USB media and then start the computer.
2. Press a key when you are prompted.
3. Select a language, a time, a currency, a keyboard or an input method, and then click Next.
4. Click Repair your computer.
5. Click the operating system that you want to repair and then click Next.
6. On the Choose an option screen, select Troubleshoot > Advanced options > Startup Repair
Please post back with the status of the issue and we will be glad to assist you further.