sodcalculator

10 Tech How-To

Fix Windows Could Not Prepare the Computer to Boot

Guide 10-44924 · Updated · Step by step

This guide walks you through the most effective fixes for the Windows error “Windows could not prepare the computer to boot to the next phase of installation.” It usually appears during a clean install or upgrade, often after the first reboot, and it stops the setup dead in its tracks. The steps below cover the common causes—boot configuration issues, disconnected or misconfigured storage, and corrupted installation media—and they work for Windows 10 and Windows 11.

What You’ll Need

  • A Windows installation USB drive or DVD (the same one you used to start setup).
  • Access to the computer’s BIOS/UEFI firmware (usually by pressing Del, F2, F10, or Esc during startup).
  • A second computer to create a new installation media if yours is corrupted (optional, but helpful).
  • A backup of any important data on the target drive, because some steps involve deleting partitions.

Step-by-Step

  1. Boot from the installation media. Insert your USB or DVD and restart the PC. Press the key that opens the boot menu (often F12, F11, or Esc) and select your media. If you don’t see it, enter BIOS and set the USB/DVD as the first boot device.
  2. Start Windows Setup. Choose your language and click Next, then click Install now. When you see the error “Windows could not prepare the computer to boot,” do not close the window—leave it open.
  3. Open Command Prompt. Press Shift+F10 on your keyboard. This opens a Command Prompt window. If it doesn’t work, press Shift+Fn+F10 on some laptops.
  4. Identify the system drive. In the Command Prompt, type diskpart and press Enter. Then type list disk and press Enter. Note the disk number that corresponds to your primary hard drive (usually Disk 0). Type exit to leave diskpart.
  5. Run the boot repair commands. Type the following commands one at a time, pressing Enter after each. Replace X with your disk number if it’s not 0.

    bootrec /fixmbr
    bootrec /fixboot
    bootrec /scanos
    bootrec /rebuildbcd

    If bootrec /fixboot gives an “Access is denied” error, skip it and continue with the others.

  6. Rebuild the BCD manually (if needed). If rebuildbcd doesn’t work, type the following to create a new Boot Configuration Data store:

    bcdedit /export C:\BCD_Backup
    ren C:\boot\BCD BCD.old
    bootrec /rebuildbcd

    If the ren command fails because the file doesn’t exist, just run bootrec /rebuildbcd.

  7. Check the partition style. The error often appears when the disk is GPT but the firmware is set to Legacy/CSM, or vice versa. In the Command Prompt, type diskpart, then list disk. Look at the “Gpt” column—if it has an asterisk (*), the disk is GPT. If not, it’s MBR. Then restart and enter BIOS. Under Boot Mode or UEFI/Legacy settings, choose the matching mode: UEFI for GPT, Legacy for MBR. Save and exit.
  8. Disconnect extra drives. If you have more than one hard drive or SSD, shut down the PC, disconnect all drives except the one you’re installing Windows to, and try the installation again. Multiple drives with existing boot partitions can confuse Windows Setup.
  9. Delete all partitions on the target drive. This is a last resort because it erases everything. Boot from the media, go to Custom install, select each partition on the target drive, and click Delete. Then select the unallocated space and click Next. Windows will recreate the correct partitions.
  10. Recreate the installation media. If nothing above works, the USB drive itself is likely corrupted. Use the Windows Media Creation Tool on another computer to create a fresh USB. Try the installation again.

Common Mistakes

  • Using the wrong boot mode. The most frequent cause—mixing UEFI with MBR or Legacy with GPT. Always match the disk’s partition style to the firmware mode.
  • Leaving other drives connected. Windows may write boot files to a secondary drive, causing the error. Disconnect all other drives before installing.
  • Running bootrec on the wrong drive. If you have multiple disks, bootrec might repair the wrong one. Always verify which disk is the system drive.
  • Not removing the installation media after the first reboot. Some systems try to boot from the USB again, which can interrupt the setup. Remove the USB when the PC restarts.
  • Using a USB 3.0 port on older systems. Some older BIOS versions don’t recognize USB 3.0 during setup. Use a USB 2.0 port if available.

Tips

  • Back up your data first. The partition deletion step will wipe everything. Have a backup before you start.
  • Use the latest Windows installation media. Microsoft updates the Media Creation Tool regularly; an older USB may have bugs.
  • Check your BIOS version. If your motherboard has a BIOS update that addresses boot issues, apply it before reinstalling.
  • Try a different USB port. A flaky port can cause read errors that lead to this problem.
  • If you’re using a laptop, disable Fast Boot in BIOS. Fast Boot can skip the boot device check and cause setup to fail.

Troubleshooting

If the error persists after trying all the steps above, here are additional things to check:

  • Check the hard drive health. Use a tool like chkdsk from the Command Prompt: chkdsk C: /f. If the drive has bad sectors, it may be failing. Replace it if necessary.
  • Reset the BIOS to defaults. Enter BIOS and select “Load Optimized Defaults” or “Reset to Default.” Save and exit. This can clear any misconfigured settings.
  • Try a different SATA port. If your drive is connected via SATA, switch to another port on the motherboard. A faulty port can cause boot issues.
  • Disable Secure Boot temporarily. In BIOS, find Secure Boot and set it to Disabled. Some systems have issues with Secure Boot during installation. You can re-enable it later.
  • If you’re installing Windows 11, check TPM and CPU compatibility. Use the PC Health Check app on another computer to verify your hardware meets the requirements.

Frequently Asked Questions

Will this erase my files?

Most steps (bootrec, bcdedit, changing BIOS) do not touch your personal files. Only step 9, deleting partitions, erases everything. Back up before doing that.

Why does this error happen on a brand new SSD?

New SSDs often come uninitialized or with the wrong partition style. The fix is to delete all partitions during setup and let Windows create the correct ones.

Can I fix this without a Windows installation USB?

Yes, if you have a recovery drive or can access the Advanced Startup Options from Windows. But if Windows won’t boot at all, you’ll need a bootable media.

How long does the repair take?

The bootrec commands take about 5 minutes. The partition deletion and reinstall can take 30-60 minutes depending on your drive speed.

Is this error caused by a virus?

Rarely. It’s almost always a configuration issue with the boot files or firmware settings. A virus could corrupt boot files, but the bootrec repair usually fixes that.

What if I don’t know if my disk is GPT or MBR?

You can check in the Command Prompt with diskpart and list disk. The Gpt column shows an asterisk for GPT. Or just use the UEFI boot mode if your PC is from 2012 or later.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →