How to fix Windows boot error code 0xc0000229 (BlInitializeLibrary failed)

Prefer to fix it yourself? The manual steps follow.

  • 9methods
  • 15 to 90 minutes
  • Intermediate
Start fixing

Applies to Windows 11 and Windows 10 PCs that stop at a black screen with BlInitializeLibrary failed 0xc0000229

9 methods in this guide
  1. What the error means
  2. Causes, ranked
  3. Where the cause is logged
  4. The fixes
  5. 1. Reset the BIOS
  6. 2. Check the system disk
  7. 3. Run Startup Repair
  8. 4. Rebuild the boot files
  9. 5. Check the disk for errors
  10. 6. Update the BIOS
  11. 7. Test the hardware
  12. 8. Use System Restore
  13. 9. Reinstall Windows
  14. Still not starting
  15. Prevent it
  16. FAQ
Question

For some reason, my PC stopped working today. When I tried booting it up this morning, it failed to boot and showed error code 0xc0000229. I tried restarting several times, but the result is always the same. Could you help me?

BlInitializeLibrary failed 0xc0000229 appears in white text on a black screen right after the PC maker's logo, before Windows starts to load. The code means a consistency check failed, and it most often follows a freeze, a power loss or a changed BIOS setting. Reset the BIOS to its defaults and remove extra devices first.

Short answer

The message comes from the Windows boot loader, and 0xc0000229 is Microsoft's STATUS_FAIL_CHECK: a consistency check failed. Your files are usually fine. Turn the PC off, unplug extra drives and USB devices, and load the BIOS defaults (Fix 1). Then check that the system disk shows in the BIOS (Fix 2), run Startup Repair (Fix 3) and rebuild the boot files (Fix 4).

At a glance
ErrorWhite text on a black screen: BlInitializeLibrary failed 0xc0000229. The PC stops there or restarts into the same message.
Where it appearsRight after the PC or motherboard logo, before the Windows logo and the spinning dots. Users report that a Windows USB drive can stop at the same point.
Main causeThe boot loader could not start: a BIOS setting, a disk the firmware reads badly, damaged boot files after a freeze or power loss, or failing hardware.
Fastest fixLoad the BIOS defaults and disconnect extra devices (Fix 1), then reseat or check the system disk (Fix 2).
Also written asB1InitializeLibrary failed, BI initializeLibrary failed, Bl initialize library failed, B1 initialize library failed, B1InitializedLibrary failed. The first letters are B and a lower case L.
What the code means0xC0000229 is STATUS_FAIL_CHECK, "A consistency check failed", in Microsoft's list of NTSTATUS values.
Related codes0xc00000bb (not supported), 0xc0000001 (unsuccessful), 0xc000009a (insufficient resources). Same message, same fixes.
AffectsWindows 11 and Windows 10 PCs, desktops and laptops. Windows 10 left support on 14 October 2025.
Vendor statusNo Microsoft known issue or support article for this message. Microsoft documents only the status code.
Time to fix15 to 30 minutes for Fix 1 to 4. An hour or more when hardware must be tested or Windows reinstalled.

Facts checked on 15 October 2026. Steps written for Windows 11 (25H2 and 26H2) and Windows 10 22H2.

What BlInitializeLibrary failed 0xc0000229 means

The message has two parts. BlInitializeLibrary is the name of a routine in the Windows boot loader, the code that runs after the firmware and before Windows itself. 0xc0000229 is the reason it gave up. Microsoft's list of NTSTATUS values names it STATUS_FAIL_CHECK with the text "A consistency check failed".

We could not find a Microsoft page that documents the message itself. What the code tells you is that the boot loader found something it did not expect while it set itself up: the firmware, the disk or its own files. On screen the lower case L looks like the digit 1, so most people search for B1InitializeLibrary failed. In other languages people simply describe it as the same error at every start.

Decision chart for BlInitializeLibrary failed 0xc0000229: freeze or power loss, BIOS change, missing disk, no change and failing Windows USB, each pointing to a fix number
Pick the first fix by what happened just before the message appeared for the first time.
The codes that follow BlInitializeLibrary failed, as Microsoft names them
Code on screenMicrosoft's nameWhat it says
0xc0000229STATUS_FAIL_CHECKA consistency check failed
0xc00000bbSTATUS_NOT_SUPPORTEDThe request is not supported
0xc0000001STATUS_UNSUCCESSFULThe requested operation was unsuccessful
0xc000009aSTATUS_INSUFFICIENT_RESOURCESInsufficient system resources exist to complete the API
One message, several codes, the same fixes

All four codes stop the same boot loader at the same moment, so the fixes on this page apply to each of them. Only the order changes a little: with 0xc000009a, test the memory early (Fix 7).

Why BlInitializeLibrary fails: the causes, most common first

The boot loader depends on three things: the firmware that hands over to it, the disk it reads from and its own boot files. When the error seems to come out of nowhere, one of them changed without you noticing, often at the last shutdown. Users on Microsoft Q&A and the MSI forum report it after a game froze and the PC turned off, and on a new build with an NVMe drive.

Causes ranked by how often they explain the message, each with its fix
How oftenCauseSignFix
Most oftenA firmware setting or a connected device the boot loader does not expectThe message started after a BIOS change, a BIOS reset, a new part or a USB drive left plugged inFix 1
OftenThe system disk is read badly: a loose cable, an M.2 drive not seated, a failing SSDThe disk is sometimes missing in the BIOS, or Windows starts once in a while and then acts strangelyFix 2, Fix 5
OftenBoot files damaged by a freeze, a power loss or a forced shutdownThe PC froze or lost power during the last sessionFix 3, Fix 4
Less oftenOld firmware that does not work well with a newer disk or graphics cardA new build or a new part, and the BIOS is older than the partFix 6
RarelyFailing memory, motherboard or processorA Windows USB drive also stops, or other errors keep changingFix 7

Where the cause is written

The boot loader stops before Windows can write a crash dump, so there is usually no log of the moment itself. These are the places that still help:

  • The BIOS or UEFI setup: does it list the system disk, and is the boot mode UEFI? A disk that vanishes from this list is a hardware sign.
  • C:\Windows\System32\Logfiles\Srt\SrtTrail.txt: the log that Startup Repair writes in Fix 3. It names the problem it found, for example a boot configuration or a disk error.
  • Event Viewer > Windows Logs > System: if Windows starts again later, look for Disk, Ntfs and Kernel-Power events around the first failed start.
  • What happened last: a freeze, a power cut, a BIOS update, a new drive or graphics card. The timing is often the best clue you have.

How to fix BlInitializeLibrary failed 0xc0000229

Start with Fix 1 and Fix 2: they cost nothing and touch no files. Fixes 3 to 5 repair the boot files and the disk from the recovery screen. Fix 6 and Fix 7 deal with firmware and hardware, and Fixes 8 and 9 are the last resort.

What you see or what happenedStart withThen
The PC froze, lost power or was switched off with the power buttonFix 1Fix 4
You changed or updated the BIOS, or added a drive or a graphics cardFix 1Fix 6
The system disk is sometimes missing in the BIOS, or Windows starts now and thenFix 2Fix 5
Nothing changed and the message appears at every startFix 3Fix 4
A Windows USB drive also stops or cannot install WindowsFix 7Fix 6

Fix 1. Load the BIOS defaults and disconnect extra devices

10 minutesLow riskEveryone, first. Most of all when the message followed a freeze, a BIOS change or a new part.

The boot loader checks what the firmware hands over to it. A changed setting, an overclock or an extra drive with its own boot files can fail that consistency check; the defaults and a bare setup remove those variables.

  1. Shut the PC down completely. On a desktop, switch off the power supply for 30 seconds.
  2. Unplug every USB drive, memory card, external disk and dock. Keep only the keyboard, the mouse and one monitor.
  3. Turn the PC on and press the setup key shown on the logo screen, often Del, F2 or F10.
  4. Choose Load Optimized Defaults or Load Setup Defaults (the name depends on the maker).
  5. Check that Boot Mode is UEFI and that Windows Boot Manager on your system disk is first in the boot order.
  6. Select Save and Exit and watch whether the PC passes the logo.
Keep Secure Boot and the TPM as they are

Older advice says to clear the TPM and switch Secure Boot off. Do not: clearing the TPM can make BitLocker ask for its recovery key, and turning Secure Boot off lowers your protection without fixing the boot loader. Loading the defaults keeps both in their factory state.

It worked if: The PC passes the maker's logo and shows the Windows logo with the spinning dots.

If not: If the message is still there, check the system disk in Fix 2.

Fix 2. Check that the BIOS sees the system disk, and reseat it

15 minutesLow riskThe disk is sometimes missing in the BIOS, Windows starts now and then, or Fix 1 did not help.

BlInitializeLibrary reads its settings from the system disk. A drive that answers badly through a loose cable or a badly seated M.2 slot makes that read fail; in the MSI forum thread, support first asked the user to test another storage device.

  1. Open the BIOS setup and find the storage or boot page. Check that your system disk is listed by its model name.
  2. If it is missing, or appears only sometimes, shut the PC down and unplug it.
  3. On a desktop, reseat the SATA data and power cables, or take the M.2 drive out and push it back in firmly. Try another SATA port or M.2 slot.
  4. On a laptop, leave the inside to a repair shop unless the maker's manual shows how to open it.
  5. Start the PC again and check the BIOS list once more.

If the disk stays missing after this, it may be failing. Your files may still be readable from another PC, so copy them before any repair that writes to the disk: Back up your files (Windows Backup, File History, Time Machine)

It worked if: The BIOS lists the system disk every time, and the next start passes the message.

If not: If the disk is listed but the message stays, repair the boot from the recovery screen in Fix 3.

Fix 3. Run Startup Repair from the recovery screen or a Windows USB drive

20 minutesLow riskThe disk is visible in the BIOS and the message appears at every start.

Startup Repair checks the boot configuration and the system partition and fixes what it can. It runs from the recovery environment, which does not need the boot files that failed.

  1. Turn the PC on and, when the logo appears, hold the power button until it turns off. Do this twice; the third start opens Automatic Repair.
  2. If the recovery screen never appears, make a Windows 11 USB drive with the Media Creation Tool on another PC, boot from it with the boot menu key (often F8, F11 or F12) and select Repair your computer.
  3. Select Troubleshoot > Advanced options > Startup Repair.
  4. Pick your account if asked and wait until it finishes. Step by step: Run Startup Repair
  5. Restart and see whether the message is gone.
Windows recovery screens Choose an option, Troubleshoot and Advanced options, with the Startup Repair tile selected
Choose an option leads to Troubleshoot, then Advanced options, where Startup Repair lives; the screens are the same on Windows 10 and 11.
Windows 11 Setup in the Media Creation Tool with Use the recommended options for this PC ticked and the Choose which media to use page
On another PC, the Media Creation Tool makes the Windows USB drive you need when the recovery screen does not open; choose USB flash drive.
BitLocker recovery key

The recovery screen may ask for a BitLocker recovery key. With a Microsoft account, the key is listed at account.microsoft.com/devices/recoverykey. Look it up on a phone or another PC.

It worked if: Startup Repair reports that it repaired the PC, and the next start reaches the sign-in screen.

If not: If it says it could not repair the PC, note what SrtTrail.txt says and rebuild the boot files in Fix 4.

Fix 4. Rebuild the UEFI boot files with bcdboot

15 minutesLow riskStartup Repair failed, or the PC froze or lost power during the last session.

The boot loader reads its configuration and libraries from the small EFI system partition. If they were half written when the PC lost power, bcdboot writes a fresh copy from the Windows folder.

  1. Open Troubleshoot > Advanced options > Command Prompt from the recovery screen or the Windows USB drive.
  2. Type diskpart, then list volume. Find the Windows volume (NTFS, the largest) and the small FAT32 volume, often labelled System.
  3. Type select volume 2 with the number of the FAT32 volume, then assign letter=Z, then exit.
  4. Find the Windows drive letter: dir C:\Windows, dir D:\Windows until one lists the folder. In recovery it is often not C:.
  5. Run bcdboot C:\Windows /s Z: /f UEFI with that letter in place of C:.
  6. Type exit and select Continue.

In the recovery Command Prompt (replace 2 and C: with your volume number and Windows drive):

diskpart
list volume
select volume 2
assign letter=Z
exit
bcdboot C:\Windows /s Z: /f UEFI
Administrator Command Prompt window on Windows 10 with a CHKDSK command typed at the prompt
Commands go into a plain Command Prompt window like this one; in recovery the prompt starts at X:\ instead.
Old BIOS mode PCs and bootrec

On a PC that starts in legacy BIOS mode, use bcdboot C:\Windows without /s and /f, and then bootrec /rebuildbcd. Users report Access is denied for bootrec /fixboot on newer PCs; on UEFI, bcdboot does that job.

It worked if: The command reports Boot files successfully created, and the PC starts without the message.

If not: If the message stays, check the disk in Fix 5.

Fix 5. Check the system disk for errors with CHKDSK

30 to 90 minutesLow riskThe PC lost power, the disk was slow before the error, or Startup Repair names a disk problem.

A file system damaged by a hard shutdown can make the boot loader read wrong data and fail its check. CHKDSK repairs the file system and, with /r, marks bad sectors.

  1. Open the recovery Command Prompt as in Fix 4.
  2. Find the Windows drive letter with dir C:\Windows and dir D:\Windows.
  3. Run chkdsk C: /f /r with that letter. The /r pass can take an hour or more on a large disk.
  4. Read the result, type exit and select Continue. Step by step: Check a disk for errors (chkdsk)
chkdsk report ending with Windows has scanned the file system and found no problems: screenshot taken on Windows 11 26H2
A CHKDSK result on Windows 11: errors here after a freeze or a power loss explain why the boot loader failed.

It worked if: CHKDSK reports that it made corrections or found no problems, and the next start reaches Windows.

If not: If CHKDSK reports bad sectors, back up the disk and plan to replace it. If it is clean, go to Fix 6.

Fix 6. Update the BIOS from the PC or motherboard maker

20 minutesRead the warningA new build, a new disk or graphics card, or a BIOS much older than your parts.

The boot loader works with what the firmware gives it. A newer BIOS can fix how it handles a newer disk or graphics card; in the MSI forum thread, the first advice was to flash the latest BIOS with M-Flash.

What can go wrong

A BIOS update that is cut off by a power loss can leave the board unable to start. Your files are not touched, but your BIOS settings return to the defaults. Plug a laptop in, use the exact file for your model and never turn the PC off during the update.

  1. On another PC, open your PC or motherboard maker's support page and find your exact model.
  2. Download the latest BIOS file and read the maker's instructions that come with it.
  3. Copy the file to a USB drive formatted as the maker asks, often FAT32.
  4. Start the BIOS update tool from the setup screen (for example M-Flash on MSI boards, EZ Flash on ASUS, Q-Flash on Gigabyte) and pick the file.
  5. Wait until the PC restarts on its own, then load the defaults again as in Fix 1.
System Information on Windows 11 with the BIOS Version/Date and BaseBoard Product rows marked
On a PC that still starts, System Information shows the BIOS version and the board model you need to find the right BIOS file.

It worked if: The setup screen shows the new BIOS version, and the PC passes the logo without the message.

If not: If the message is the same with the newest BIOS, test the hardware in Fix 7.

Fix 7. Test the memory, the disk and the other parts

60 minutes or moreLow riskA Windows USB drive also stops, errors keep changing, the code is 0xc000009a, or nothing above helped.

If the boot loader of a USB drive fails too, the fault is in the PC and not in the Windows on the disk. In the MSI forum thread, a new SSD and a repaired motherboard did not help, and the user suspected the processor.

  1. Turn off any CPU or memory overclock and the memory profile (XMP or EXPO) in the BIOS.
  2. Start with one memory module, then the other, in the slot the board's manual marks as first.
  3. If you have a graphics card and the processor has graphics too, connect the monitor to the motherboard and remove the card for one test.
  4. Connect another disk with a fresh Windows, or try your disk in another PC.
  5. If Windows starts at all, test the memory with How to test your RAM with Windows Memory Diagnostic and check the disk with its maker's tool.

It worked if: You find the part without which the PC starts normally, or every test is clean.

If not: If a part is faulty, replace it or claim the warranty. If every test is clean, go to Fix 8.

Fix 8. Return Windows to an earlier state with System Restore

20 minutesRead the warningThe recovery screen opens, the hardware is fine and System Protection was on.

A restore point brings back drivers and system settings from before the first failed start. It does not rewrite the boot loader, so it helps only when a change inside Windows broke the start.

What can be lost

System Restore does not touch your documents and photos. It removes apps, drivers and updates installed after the restore point. Note them so you can install them again.

  1. Open the recovery screen as in Fix 3 and select Troubleshoot > Advanced options > System Restore.
  2. Pick your account and enter its password.
  3. Select a restore point dated before the first failed start, then Next and Finish.
  4. Do not turn the PC off while it restores. Step by step: Undo recent changes with System Restore
Advanced options recovery screen with Startup Repair, Uninstall Updates, Command Prompt and the System Restore tile selected
System Restore sits on the same Advanced options screen as Startup Repair and Command Prompt.

It worked if: Windows reports that System Restore completed successfully and starts to the sign-in screen.

If not: If there is no restore point or it fails, reinstall Windows in Fix 9.

Fix 9. Reinstall Windows and keep your files

60 to 90 minutesRead the warningEvery fix above failed, the hardware tests are clean and a Windows USB drive does load.

A reinstall writes a new boot loader, a new system partition and a fresh Windows. A Microsoft Q&A answer to this error points to Reset this PC with Keep my files.

Back up first

Reset this PC with Keep my files keeps documents, pictures and the desktop, but removes the apps you installed. If Windows does not start, copy your files first from a Windows USB drive or by connecting the disk to another PC: Back up your files (Windows Backup, File History, Time Machine)

  1. In the recovery screen, select Troubleshoot > Reset this PC > Keep my files.
  2. Choose Cloud download for fresh files from Microsoft, or Local reinstall.
  3. If the reset cannot start, boot from the Windows USB drive from Fix 3 and install Windows from there.
  4. After the reinstall, install the chipset and storage drivers from your PC maker first. Full method: Reinstall Windows without losing files

It worked if: Windows starts to a fresh desktop with your files in place, and the message does not come back.

If not: If the message appears even during Windows Setup, the board, the processor or the memory is at fault. Contact your PC maker or a repair shop.

Still stuck at BlInitializeLibrary failed: what to collect and whom to ask

Support can help only with the facts around the failure, because the boot loader leaves no dump. Collect these once:

  • The exact code after the message (0xc0000229, 0xc00000bb, 0xc0000001 or 0xc000009a) and a photo of the screen.
  • What happened before the first failure: a freeze, a power cut, a BIOS update, a new part.
  • Your BIOS version, the board or PC model and the system disk model.
  • Whether a Windows USB drive loads, and the text of SrtTrail.txt from Fix 3.
  • The CHKDSK and memory test results from Fix 5 and Fix 7.
Where to askWhen
Your PC or motherboard maker's supportA Windows USB drive also fails, or the error began after a BIOS update or a new part
Your disk's maker or a repair shopThe disk disappears from the BIOS, or CHKDSK reports bad sectors
Microsoft SupportThe hardware tests are clean and only the installed Windows fails

How to keep BlInitializeLibrary failed from coming back

Do
  • Shut Windows down from the Start menu, and wait for a frozen PC as long as you can before you cut the power.
  • Use a UPS on a desktop where power cuts are common.
  • Write down your BIOS settings before a BIOS update and check them after it.
  • Keep System Protection on for the system drive and a recent backup of your files.
Do not
  • Leave USB drives and external disks plugged in at every start.
  • Run an unstable overclock or memory profile on the PC you need every day.
  • Ignore a disk that is sometimes missing in the BIOS or suddenly slow.
  • Clear the TPM or turn Secure Boot off as a fix.

Windows 10 left support on 14 October 2025. A Windows 10 PC gets boot fixes only through Extended Security Updates, so moving to Windows 11 keeps them coming.

Frequently asked questions

What does BlInitializeLibrary failed 0xc0000229 mean?

It means the Windows boot loader could not set itself up and stopped before Windows began to load. BlInitializeLibrary is the name of the routine that failed, and 0xc0000229 is the reason. Microsoft's list of NTSTATUS values names that code STATUS_FAIL_CHECK, "A consistency check failed". In practice the boot loader found something it did not expect in the firmware, the disk or its own boot files.

Is B1InitializeLibrary failed the same error?

Yes. The message uses a lower case L after the B, and on the plain boot font it looks like the digit 1. B1InitializeLibrary, BI initializeLibrary, Bl initialize library and B1 initialize library failed are all the same message. People also type B1InitializedLibrary. The fixes on this page are the same for every spelling, on Windows 10 and Windows 11.

How do I fix B1InitializeLibrary failed on Windows 10?

The fixes are the same as on Windows 11, because the boot loader works the same way. Load the BIOS defaults and remove extra devices, check that the BIOS sees the system disk, then run Startup Repair and rebuild the boot files with bcdboot from the recovery Command Prompt. Windows 10 left support on 14 October 2025, so after the PC starts again, plan the move to Windows 11.

Does B1InitializeLibrary failed happen on Windows 11?

Yes. Windows 11 uses the same boot loader, so the message and the codes are the same. On Windows 11 the boot mode is UEFI, so the boot files sit on the small FAT32 system partition and Fix 4 rebuilds them with bcdboot and the /f UEFI switch. Newer Windows 11 builds may call Startup Repair Quick machine recovery on the recovery screen.

What is BlInitializeLibrary failed 0xc000009a?

It is the same message with another code. Microsoft names 0xc000009a STATUS_INSUFFICIENT_RESOURCES: there were not enough system resources to finish the request. At boot that points to memory more than to files, so remove any memory profile or overclock and test one memory module at a time (Fix 7) early. The other fixes on this page apply as well.

Why did the error appear out of nowhere?

It rarely comes out of nowhere; the change happened at the last shutdown or start. A game that froze and a PC that was turned off with the power button, a power cut, a BIOS that reset itself or a disk that began to fail can all leave the boot loader with something it does not expect. Users on Microsoft Q&A and the MSI forum report exactly these cases.

Will I lose my files?

Usually not. The message stops the boot loader, not the disk, so your documents and photos are normally still there. Fixes 1 to 7 do not touch personal files. System Restore removes only apps and drivers installed after the restore point, and Reset this PC with Keep my files keeps personal files. If the disk is failing, copy your files from another PC or a Windows USB drive before you repair anything.

Should I switch Secure Boot off or clear the TPM?

No. Some guides suggest it, but neither one repairs the boot loader. Clearing the TPM can make BitLocker ask for its recovery key at the next start, and a PC without Secure Boot is easier for boot level malware to attack. Load the BIOS defaults instead (Fix 1), which puts both back to the factory state the PC was built for.

Is BlInitializeLibrary failed a hardware problem?

Sometimes. If a Windows USB drive also stops, or Windows will not even install, the fault is in the PC and not in the installed Windows. In the MSI forum thread, a new SSD and a repaired motherboard did not help, and the user suspected the processor. A disk that vanishes from the BIOS, CHKDSK bad sectors or memory test errors also point to hardware.

What can I do if the PC restarts before I reach the recovery screen?

Interrupt the start twice: when the logo appears, hold the power button until the PC turns off. On the third start Windows should open Automatic Repair. If it hangs on Preparing Automatic Repair, as one user on Microsoft Q&A reports, make a Windows 11 USB drive with the Media Creation Tool on another PC, boot from it and select Repair your computer.

Sources

  1. Microsoft Learn: [MS-ERREF] NTSTATUS Values (learn.microsoft.com)
  2. Microsoft Q&A: BI initializeLibrary failed 0xc0000229 (learn.microsoft.com)
  3. MSI Global English Forum: B1InitializedLibrary failed 0xc0000229 (forum-en.msi.com)

Did this fix work?

One click, no account. It tells the next reader which guides are worth their time.

We show the result once 20 readers have answered.
Still broken? Describe your case with the exact error text.

Questions and experiences: fix Windows boot error code 0xc0000229 (BlInitializeLibrary failed)

Still broken, or found a fix we did not cover? Ask here: members and our editors answer. Reading is open; writing needs a free account.

0 comments

…

4,322 members already hereThey read, write, comment and vote. 0 verified · 31 joined this year