How to Fix the Operating System Not Found Error

The ‘operating system not found’ error means the computer cannot locate a bootable operating system on any connected drive. It almost always points to a boot configuration, cable, or BIOS setting problem rather than actual damage to Windows itself. This guide breaks down the most common causes and walks through the exact steps needed to get a PC or laptop booting normally again.

Key Takeaways

  • The operating system not found error usually comes from a boot order, drive connection, or boot record problem, not a dead hard drive.
  • Checking the BIOS boot order and drive detection is the fastest first step and solves many cases on its own.
  • Rebuilding the boot files with Windows Recovery Environment commands fixes most software-side boot failures.
  • A loose or failing drive cable is one of the most overlooked causes, especially on desktops that were recently moved or opened.
  • If the drive is not detected anywhere, including in BIOS, that points toward a hardware failure that needs further testing.

Common Causes of the Operating System Not Found Error

This error shows up for a handful of predictable reasons, and narrowing down the cause first saves a lot of wasted troubleshooting time.

Boot Order Pointing to the Wrong Device

Most people run into this after connecting a new USB drive, swapping a secondary disk, or updating the BIOS, which can quietly reset the boot priority list. The computer then tries to boot from a device with no operating system on it and throws the error.

Loose or Failing Drive Connection

Desktops that get moved, cleaned, or opened for an upgrade sometimes end up with a slightly loose SATA or power cable. Laptops are not immune either, since a drop or bump can jar an internal connector just enough to break contact.

Corrupted Boot Configuration Data

A forced shutdown during a Windows update, a failed installation, or a sudden power loss can corrupt the boot files Windows relies on to start. The drive and the operating system files may be perfectly intact, but the boot loader cannot find them.

Incorrect BIOS Storage Mode

Switching the SATA controller mode between AHCI and RAID, or enabling Secure Boot and CSM in the wrong combination, can make an otherwise healthy drive invisible to the boot process.

Drive Partition Marked Inactive

Every bootable Windows drive needs one partition flagged as active. Partitioning tools, dual-boot setups, or third-party cloning software can sometimes clear that flag by mistake.

Physical Drive Failure

Less commonly, the drive itself has failed or is failing. This becomes the likely explanation once BIOS stops detecting the drive at all, rather than just failing to boot from it.

Before You Start

A couple of these fixes involve opening the case to check a cable, so a little prep goes a long way.

  • Power off the computer completely and unplug it from the wall before touching any internal components.
  • Touch a bare metal part of the case or use an anti-static wrist strap before handling the drive or cables.
  • Have a USB drive with Windows installation media ready in case Startup Repair or command-line fixes are needed.
  • Note that opening a desktop or laptop case may affect the manufacturer warranty, so check the terms first if the machine is still covered.

Before You Start

Tip: If strange noises, burning smells, or repeated BIOS detection failures show up, that is a sign to stop and have a qualified technician inspect the drive rather than continuing troubleshooting alone.

How to Fix the Operating System Not Found Error

  • Step 1: Restart the computer and enter the BIOS or UEFI setup, usually by pressing Delete, F2, F10, or Esc during startup. Check the Boot menu and confirm the correct internal drive is listed first in the boot order.
  • Step 2: Look at the storage or drive detection screen in BIOS. If the drive does not appear there at all, shut the system down, unplug it, and reseat the SATA and power cables, or the M.2 drive, making sure each connector clicks fully into place.
  • Step 3: If the drive is now detected but still will not boot, insert Windows installation media and boot from it by selecting the USB drive in the boot menu.
  • Step 4: On the Windows Setup screen, choose Repair your computer, then go to Troubleshoot, followed by Advanced options, and select Startup Repair. Let the tool scan and attempt an automatic fix.
  • Step 5: If Startup Repair does not resolve it, open Command Prompt from the same Advanced options menu and run bootrec /fixmbr, then bootrec /fixboot, then bootrec /rebuildbcd. These commands rebuild the boot loader and boot configuration data that Windows depends on to start.
  • Step 6: Run diskpart from the same command prompt, select the correct disk and partition with select disk and select partition, then type active to confirm the Windows partition is marked as bootable.
  • Step 7: Run chkdsk /f /r on the affected drive to scan for and attempt to repair file system errors that could be interfering with the boot process.
  • Step 8: Back in BIOS, check the SATA mode setting. If it was recently changed between AHCI and RAID, switch it back to whichever mode the drive was originally installed under, since changing it after installation can make Windows unbootable.
  • Step 9: Restart normally without the installation media and confirm the system boots directly into Windows.

How to Fix the Operating System Not Found Error

Tip: Run through Steps 1 and 2 before anything else. A surprising number of operating system not found errors turn out to be nothing more than a wrong boot order or a cable that needs reseating.

Common Problems and Fixes

BIOS Still Does Not Detect the Drive

Try a different SATA port and a different cable if one is available, since a failing cable or port is a common culprit. If the drive still does not appear on another port, test it in a different computer or an external enclosure to determine whether the drive itself has failed.

Bootrec Commands Return an Error

A message such as ‘element not found’ after running bootrec usually means the EFI system partition is missing or damaged. Rebuilding it typically requires additional diskpart commands to recreate the partition, which is a good point to involve a professional if unfamiliar with partition management.

Error Returns After a Successful Repair

If the error comes back after a reboot, suspect a failing drive rather than a one-time software glitch. Running the manufacturer’s drive diagnostic tool will confirm whether the drive is developing bad sectors or nearing failure.

Dual-Boot System Cannot Find Either Operating System

This often happens when one operating system’s installer overwrites the shared boot loader. Rebuilding the boot configuration data through bootrec, then using a tool like bcdedit to re-add the missing entry, usually restores both boot options.

Frequently Asked Questions

What causes the operating system not found error?

It is most often caused by an incorrect BIOS boot order, a loose or failed drive connection, corrupted boot configuration data, or a drive partition that lost its active flag.

Does this error always mean the hard drive has failed?

No. In most cases the drive is fine and the issue is with the boot configuration, connection, or BIOS settings. Drive failure is only likely if BIOS cannot detect the drive at all.

Will reinstalling Windows fix the operating system not found error?

A repair install or Startup Repair usually fixes it without needing a full reinstall. A clean reinstall should be treated as a last resort after boot repair steps have been tried.

Can a loose cable really cause this error?

Yes. A partially disconnected SATA or power cable can prevent BIOS from detecting the drive, which produces the exact same error as a missing operating system.

Why did this error appear right after a BIOS update?

BIOS updates can reset the boot order and sometimes change SATA mode settings back to a default value, which can make an existing Windows installation temporarily unbootable until those settings are corrected.

Is it safe to switch SATA mode from RAID to AHCI to fix this?

Not after Windows is already installed under one mode. Switching it afterward frequently causes this exact error, since Windows loses the correct storage driver at boot. Reverting to the original mode is usually the fix.

Will fixing this error delete any files?

The boot repair steps in this guide, including bootrec and Startup Repair, do not delete personal files. They only rebuild boot files and configuration data.

What if BIOS shows the drive but the error still appears?

This points toward corrupted boot configuration data or an inactive partition rather than a hardware issue, so the bootrec and diskpart steps in this guide are the next move.

Can a virus cause the operating system not found error?

It is uncommon but possible if malware corrupts the master boot record. Running the boot repair steps first is reasonable, and a full malware scan from installation media is worth doing afterward if the problem keeps recurring.

When should a professional take over instead?

If the drive is not detected in BIOS on any port, in another computer, or in an external enclosure, that points to a hardware failure best handled by a professional data recovery or repair service, especially if the data on the drive matters.

Picture of Roberto Gregoire
Roberto Gregoire

Roberto Gregoire is a Desktop Support Technician with over 7 years of experience fixing Windows and Microsoft Office problems for real users. He writes the way he troubleshoots: step by step, in order, with every instruction tested first. More about Roberto