Windows Error 0xc0000225: An Unexpected Error Has Occurred / Boot Selection Failed

Illustration of a laptop on a blue recovery screen with a USB recovery stick plugged in

Error 0xc0000225 appears on the blue or black recovery screen when Windows cannot find or load a valid boot entry, so the PC never reaches the sign-in screen. In most cases the boot configuration data is damaged or points at the wrong place, and it can be rebuilt from a recovery USB with bootrec and bcdboot. The files in your Windows folder are usually still intact.

Key takeaways

  • The message is about the boot menu entry, not the whole operating system: Windows is often still on the disk.
  • A recovery USB made on another PC is the main tool, and Startup Repair is the first thing to try.
  • bootrec /rebuildbcd and bcdboot rebuild the entry, but the correct partition letters matter.
  • A firmware change (UEFI versus legacy, Secure Boot, boot order) can trigger the error with no damage at all.
  • If the drive is not listed in the firmware or in diskpart, treat it as a hardware problem and stop experimenting.

Decoding the screen

You will usually see a recovery screen with the title "Recovery" and a message such as "An unexpected error has occurred" or "The boot selection failed because a required device is inaccessible", with the code 0xc0000225 near the bottom. The wording varies by firmware and build. Pressing a key often offers to open the firmware settings or the recovery tools.

Windows starts by reading the Boot Configuration Data store, called BCD, which lives on a small system partition. The BCD tells the boot manager which Windows installation to load and on which partition it sits. Error 0xc0000225 means that lookup came back empty or invalid. Either the store is missing or damaged, the system partition cannot be read, or the firmware is trying to boot from a disk layout that does not match what is installed.

What tends to trigger it

What is probably going on: a quick table

Likely causeWhat you will noticeWhere to look
Corrupted or missing BCD storeError after an update or crash, drive is visible in recoveryStartup Repair, then bootrec
EFI system partition lost its boot filesDrive is GPT, a small FAT32 partition shows up in diskpartbcdboot step
Firmware set to the wrong modeAppeared right after a BIOS reset or updateUEFI versus legacy section
Wrong boot order or first device is a USB or networkError changes when you unplug USB devicesBoot order section
Secure Boot refusing the loaderAppears after a firmware update or key resetSecure Boot section
Dying drive or loose cableDisk not listed, or listed with the wrong sizeHardware check

Before touching commands: simple checks

Remove every USB stick, SD card and external drive. If the firmware tries to boot from a device that has no loader, you can get this exact message. Then turn the PC fully off, wait a few seconds and start it again. If it is a desktop, reseat the drive data cable. If it is a laptop that was moved or dropped, think about the drive connection.

Enter the firmware setup (usually Del, F2 or F10, depending on the maker) and check that the internal drive is listed. If it is not, no software step will help, and you are dealing with the drive, its cable or the controller mode.

Make a recovery USB

You need a working Windows PC and a USB stick of at least 8 GB. Download the official Windows installation media tool from Microsoft, choose to create installation media for another PC, and select the same edition and architecture as the broken machine. When it finishes, plug the stick into the broken PC and boot from it by tapping the one-time boot menu key at power-on.

At the first setup screen choose your language and then Repair your computer, not Install now. Go to Troubleshoot and Advanced options. That menu gives you Startup Repair, Command Prompt and System Restore, which is everything the next section needs.

Repair steps, from least to most invasive

Step 1: Startup Repair

In the recovery environment choose Startup Repair and pick your Windows installation. It can take several minutes, and it may restart the PC once or twice. If it reports that it could not repair the PC, do not repeat it endlessly. Move to the manual steps.

Step 2: Check what the disk looks like

Open Command Prompt from Advanced options and look at the disks and partitions.

diskpart
list disk
select disk 0
list partition
list volume
exit

Note two things. First, whether the disk is marked with an asterisk under the GPT column, which means a UEFI-style disk, or not, which means MBR. Second, the letter of the volume that contains your Windows folder. Inside the recovery environment the letters are often shifted, so the Windows drive may be D: rather than C:. Check with:

dir D:\

Try other letters until you see the Windows, Users and Program Files folders.

Step 3: Use bootrec

Run these in order. They rewrite the boot sector and rescan for installations:

bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd

On a legacy BIOS/MBR disk only, you can also run bootrec /fixmbr first. Skip it on a UEFI/GPT disk, where it is not needed. If you are comparing with another boot error, the guide for error 0xc000000e (boot device not found) covers the case where the drive itself is missing.

If bootrec /rebuildbcd says "Total identified Windows installations: 1", answer Y to add it to the boot list. If it finds zero, the store may be missing or the disk layout is unusual, and the next step is the more reliable one. On some systems bootrec /fixboot returns "Access is denied". That is common on UEFI disks, and it is one reason people move on to bcdboot.

Not sure what is wrong? Get a diagnosis first.

Our certified tech can connect remotely, check your software, drivers and backups, and tell you honestly whether the problem needs a hands-on repair.

Step 4: Recreate the boot files with bcdboot

bcdboot copies fresh boot files from your Windows folder and builds a new store. You need to know which partition holds the boot files. On a UEFI (GPT) disk that is the small FAT32 EFI partition. On an MBR disk it is the system reserved partition or the Windows partition itself.

The diskpart commands below only assign a letter and do not erase anything. Never type clean or format here.

For a UEFI disk, assign a letter to the EFI partition first. Replace the partition number with the one that shows about 100 to 500 MB, type System, in list partition:

diskpart
select disk 0
select partition 1
assign letter=S
exit
bcdboot D:\Windows /s S: /f UEFI

If the firmware does not list Windows Boot Manager after the restart, open the firmware setup and choose the disk's UEFI entry manually.

For an MBR disk with legacy boot, use the matching firmware flag:

bcdboot D:\Windows /s C: /f BIOS

Here C: stands for the active partition that holds the boot files in your layout. In recovery that partition often does not have the letter C:. To confirm it, run list volume in diskpart, select the candidate (the small System Reserved volume, or the one with System in the Info column) and run detail partition, which shows whether it is Active. If you are unsure, do not guess: an incorrect letter on a working second Windows installation can overwrite its boot data. Get advice before you run it.

When the command reports that boot files were created successfully, close the prompt, remove the USB and restart.

UEFI versus legacy: the quiet culprit

A GPT disk needs the firmware in UEFI mode. An MBR disk needs legacy or CSM mode. If a BIOS update or reset flipped that setting, you can see 0xc0000225 on a perfectly healthy installation. Open the firmware setup and compare. If the PC always ran Windows 11, it was almost certainly UEFI with GPT. If it is an older Windows 10 machine, it may be either. Switch the mode, save, and test. If you cannot tell, test one mode, and if it fails, put it back and try the other, noting the original setting first.

Do not convert the disk type to match the firmware unless you have a full backup and a clear plan. Conversion tools exist, but they are a different job from fixing this error.

Secure Boot and boot order

If the error began right after a firmware update, check Secure Boot. Some firmware updates reset the key database, and the loader is then rejected. Setting Secure Boot to its default or standard keys, or turning it off temporarily to test, will show whether it is the cause. Turn it back on after the repair if the PC supports Windows 11. Microsoft says that devices that have not yet received the newer Secure Boot certificates still start normally, so an expiring certificate is not by itself a reason for this error. On the boot order screen, make sure Windows Boot Manager is first. Entries for a removed second OS, a network boot or an empty USB slot can sit at the top and produce the same message.

System Restore and the last resorts

If boot repair does not take, try System Restore from Advanced options, which can roll back a failed update. If you have no restore point, the next options are Reset this PC with the keep my files choice, or a clean install. Both change the system, so copy your data first, and confirm you have your BitLocker recovery key if the drive is encrypted. From the recovery Command Prompt you can open Notepad, use its Open dialog to browse folders, and copy files to a USB drive.

If the failed event was a feature update, our Windows Update troubleshooting guide and the page on error 0x800f0845 may help once the PC is back.

Mistakes that make this error worse

Signs you need a technician

Boot problems are tricky to do remotely when the PC cannot reach Windows, so a technician may first have you start from a recovery environment or help you recover the data, then finish the repair after the PC runs again. You can read how it works on our remote repair page and the Windows support page. For a related crash pattern, see Critical Process Died.

Keeping the boot path healthy

FAQ

Does error 0xc0000225 mean my files are gone?

No. It means Windows cannot find a valid boot entry. Your files are normally still on the drive, but make a backup before drastic steps.

Can I fix it without a USB stick?

Sometimes the PC offers recovery options after two failed starts. If it does not, you need installation media, which you can create on any other Windows PC.

Why does bootrec /fixboot say access is denied?

This is common on UEFI systems. Use bcdboot with the EFI partition mounted instead, as described above.

Can a BIOS update cause this?

Yes. A firmware reset can change UEFI or legacy mode, Secure Boot state or boot order, and any of these can make the loader unreachable.

Is my SSD failing if I see this error?

Not necessarily. But if the drive is missing from the firmware or disappears at random, a hardware fault becomes the leading suspect.

Will a reset delete my data?

The keep my files option tries to keep personal data, but it is not a backup. Copy anything important first if you can reach it.

Do I need to turn off Secure Boot permanently?

No. Turn it off only as a test. Windows 11 expects it on, so restore it after the boot repair if the firmware allows.

Can you repair it remotely?

If the PC can reach a recovery environment with network access, parts of it can be guided remotely. A PC that will not power up the disk needs hands-on work.