"An operating system wasn't found" When Booting Windows? Here's the Fix
Your PC stops at a black screen reading “An operating system wasn’t found. Try disconnecting any drives that don’t contain an operating system. Press Ctrl+Alt+Del to restart.”
Why: The firmware looked for something bootable and either tried the wrong drive or couldn’t find valid boot files on the right one. The most common causes are a stray USB/DVD changing the boot order, a wrong boot device in BIOS/UEFI, or damaged boot files on the Windows disk.
Fix 1: Disconnect other drives and check boot order
- Remove any USB drives, SD cards, and DVDs — Windows literally suggests this on the error screen.
- Restart and tap your firmware key (often F2, F10, Del, or Esc) to enter BIOS/UEFI setup.
- Open the Boot / Boot Order menu and make sure the drive with your Windows installation is listed first.
- Save and exit. If Windows boots, you’re done.
Fix 2: Find your Windows drive in the Command Prompt
If the boot order is right but the error remains, the boot files need rebuilding. Boot from a Windows installation USB, and at the Install Windows screen press Shift + F10 to open a Command Prompt. Identify whether your disk is MBR or GPT:
diskpart
list disk
A * in the Gpt column means GPT (UEFI); no asterisk means MBR (legacy). Note the drive letter holding the \Windows folder, then type exit to leave diskpart.
Fix 3: Recreate the boot files
On an MBR disk, recreate the boot files and mark the volume active:
bcdboot C:\Windows /S C:
diskpart
list vol
sel vol C
active
exit
shutdown -f -r -t 00
On a GPT/UEFI disk, find the System (EFI) partition, give it a letter, back up the old BCD, and rebuild:
diskpart
list vol
Find the small partition labeled System (the FAT32 EFI partition), select it, and assign a letter:
sel vol <number>
assign letter=r:
exit
cd /d r:\EFI\Microsoft\Boot\
ren BCD BCD.bak
bcdboot c:\Windows /l en-us /s r: /f UEFI
Restart and remove the installation media. (Replace C: with whatever letter holds your \Windows folder.)
FAQ
Does this wipe my data? No. bcdboot only recreates the boot files. Your Windows installation and personal files stay in place.
The drive isn’t listed at all in BIOS. That points to a hardware problem — a loose SATA/NVMe connection or a failing disk — not just boot files. Reseat the drive and test it on another machine if you can.
What if there really is no Windows on the disk? If \Windows doesn’t exist on any drive, the installation is gone and you’ll need to reinstall Windows.
Sources: Microsoft Support — “An operating system wasn’t found” error when booting Windows