Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / How to Fix ‘An Operating System Wasn’t Found’ Error on Windows

August 24, 2023 VMWareWindows 10Windows 11Windows Server 2019

How to Fix ‘An Operating System Wasn’t Found’ Error on Windows

The ‘Operating system not found‘ or ‘Missing operating system‘ message at the computer boot means that there is no operating system bootloader on the current drive/media. As a result, your computer cannot find and start the Windows bootloader (or any other operating system loader installed on the computer) or the Windows Recovery Environment (WinRE).

Contents:
  • Common Fixes for Operating System not Found or Missing Errors
  • Identify Disk Partition Table and Windows Drive
  • Rebuild the Windows Bootloader on the MBR Disk
  • How to Repair the EFI Bootloader on a GPT Drive of UEFI Computer
  • Fix: Operation System Not Found in VMware VM

An error you see when trying to boot an operating system may look like this:

An operating system wasn't found. Try disconnecting any drives that don't contain an operating system. Press Ctrl+Alt+Del to restart.

An operating system wasn't found. Try disconnecting any drives that don't contain an operating system

The specific error text may vary depending on the device vendor or UEFI/BIOS version. In all cases, the error indicates that the operating system bootloader was not found on the drive.

For example, on Lenovo computers and laptops, a similar error looks like this:

Error 1962: No operating system found. Boot sequence will automatically repeat.

lenovo computer: Error 1962: No operating system found. Boot sequence will automatically repeat.

or:

Booting from Hard Disk…
Missing operating system.
No bootable device.

Missing operating system error when Windows boots

Common Fixes for Operating System not Found or Missing Errors

The most common reasons why an “Operating system not found” error can occur when you start your computer:

  • A corrupted system partition, missing or damaged MBR (master boot record), or no active partition (or an incorrect disk partition is marked as active);
  • The Windows boot loader (BCD) is corrupted or the boot partition is accidentally deleted;
  • An HDD/SSD with the OS installed is not connected. This can include problems such as a poor ribbon cable connection, or any hardware problems with the drive, RAID, or disk controller.

Therefore, to fix the problem with detecting the OS loader, you first need to check the following:

  1. The hard drive containing the operating system must be connected to the computer. Disconnect all additional drives, remove connected USB drives (this is indicated by the message Try disconnecting any drives that don’t contain an operating system);
  2. Check the reliability of the power and HDD ribbon cable connections;
  3. Make sure that your hard disk drive is detected by the BIOS/UEFI and that it is set as the primary boot device (under Hard Disk Priority / Boot Device Priority);
  4. If you changed the SATA controller mode in the BIOS before the problem occurred, for instance, from AHCI to IDE or RAID (or vice versa), revert to the original SATA mode;
  5. Resetting the BIOS settings to default may help in some cases (use the BIOS option called Restore Defaults, Load Setup Defaults, or Load Fail-Safe Defaults);
  6. Check the Secure Boot settings in UEFI – it is possible that they have been changed (check if Windows boots correctly with the Secure Boot mode enabled/disabled and in the Legacy mode).

If you have done all this and Windows still doesn’t boot, you will need to restore the Windows bootloader and the boot record.

Identify Disk Partition Table and Windows Drive

In order to repair the bootloader, you need a Windows installation media (on a CD/DVD/ISO/bootable USB drive) or LiveCD.

Change the boot order in BIOS (UEFI), boot from your installation/boot media, and open the command prompt (if you are using Windows installation media, press Shift+F10 on the language selection screen).

run command prompt from windows install media

First of all, you must detect the type of partition table on your disk: GPT or MBR. The method for restoring the Windows bootloader depends on it. Run:
diskpart
Enter this command: list disk
If there is an asterisk (*) in the Gpt column for your disk, then the GPT partition table is used, otherwise, it is MBR.

windows diskpart - get disk partition table gpt or mbr

Display the list of volumes on the disk:

list vol

list volumes

Exit the diskpart session:
exit
Judging by the volume sizes, Windows is probably installed on the E: drive. Check it by running this command:
dir e:

As you can see, Windows, Program Files, Users, and other common Windows folders are on this drive.

identify windows partition

So, you have identified the type of partition layout on your hard disk and the drive letter of the partition where Windows is installed on.  Depending on the partition table, go to the appropriate section of the article.

Rebuild the Windows Bootloader on the MBR Disk

Suppose you have determined that the MBR partition table is used on your Windows drive. This means that your computer is using BIOS firmware or has UEFI firmware but you boot the OS in compatibility mode (Legacy or CSM mode).

Check the detailed guide on how to rebuild the Windows MBR bootloader and BCD on a BIOS-based computer.

Create bootloader configuration files on the drive E:\:

bcdboot E:\Windows /S E:

The “Boot files successfully created” message should appear.

bcdboot - recreate windows boot files on mbr disk

Re-create a Master Boot Record (MBR):

bootrec.exe /FixMbr
bootrec.exe /FixBoot
bootrec.exe /RebuildBcd

You may receive an Access Denied error when you run the bootrec.exe /FixBoot command.

In this case, you must first run:

bootsect /nt60 all

This command will check and update the bootmgr code (Master Boot Code) on all partitions. Then run the command:

bootrec.exe /FixBoot

Now make the Windows partition active  (the BIOS transfers control to the OS bootloader on the active MBR partition):

In this article, we don’t show how to recreate the System Reserved partition, as the bootmgr loader may be located on the Windows drive.

diskpart
list disk
sel disk 0
list vol
select volume 2
(Windows is installed on this volume, as we discovered earlier)
active
exit

make windows partition active

Restart your computer and make sure that Windows boots correctly without the “Operating system not found” error.

How to Repair the EFI Bootloader on a GPT Drive of UEFI Computer

If your hard disk is partitioned in the GPT partition table, this means that your computer is using the UEFI firmware instead of the BIOS. You can find the complete guide on how to restore the Windows 10/11 bootloader on a UEFI-based computer in the following article How to Repair Windows EFI Bootloader on a GPT Disk. Let’s take a quick look at the main steps.

First, you need to find and assign a letter to the EFI system partition with the FAT32 file system (EFI, Extensible Firmware Interface or ESP, EFI System Partition). The default size of the EFI partition is 100MB. This partition contains the EFI bootloader and the Windows Boot Manager. The configuration file for the BCD boot loader is also stored here.

Learn more about the EFI system boot partition on Windows.

Diskpart
List vol

For example, you have detected that it is Volume 1 with the System label.

diskpart - detect efi partition

Select this EFI partition and assign a drive letter to it:

select volume 1
assign letter M:
exit

Rebuild the BCD bootloader configuration on the EFI partition:

cd /d m:\efi\microsoft\boot\
ren BCD BCD.bak
bcdboot E:\Windows /l en-us /s M: /f ALL

This command should copy the Windows boot environment files from the E:\Windows directory (as we discovered earlier, Windows is installed on drive E: in our case).

Restart your computer, remove the boot media (USB flash drive), and check that Windows boots correctly.

Fix: Operation System Not Found in VMware VM

You might encounter the ‘Operating system not found‘ error when trying to boot a virtual machine running on VMware ESXi or Workstation.

operating system not found erro on Windows boot

Check the following to fix this issue on a VMware virtual machine:

  • If you are attempting to boot the VM from an ISO file, make sure that the Connected and Connected at Power On options are enabled in the virtual CD/DVD settings. Check that the path to an existing ISO file containing the operating system installation image is specified in the Use ISO image file parameter. Ensure that the ISO image used to install the guest operating system is not corrupted; vmware vm: check the iso image connected
  • If you see the message PXE-M0F: Exiting Intel PXE ROM when you start the VM, go into the VM BIOS settings and check that the CD-ROM Drive, Hard Disk, and Removable Drives device are set to a higher boot order than Network Boot from VMware VMXNET3;boot device priority in vmware vm bios settings
  • Open the virtual machine properties and check that the storage containing the virtual machine’s VMDK files exists. It is also possible that the VM’s VMDK files may have corrupted and you may need to restore them from a backup;
  • Open the properties of the VM, go to the Options -> Advanced tab, and check that the VM’s firmware type is UEFI (used by default).vmware vm uefi and bios firmware type

18 comments
13
Facebook Twitter Google + Pinterest
previous post
Configure Remote SSH Connections in Visual Studio Code
next post
Refresh AD Groups Membership without Reboot/Logoff

Related Reading

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

Reset Root Password in VMware ESXi

October 12, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

Installing Language Pack in Windows 10/11 with PowerShell

September 15, 2023

18 comments

James September 5, 2020 - 8:57 am

Thanks a lot…Your step by step guide was great

Reply
Joe February 28, 2022 - 12:18 pm

thanks a lot – worked for me where I had tried everything else !

Reply
Lotfi November 14, 2020 - 8:07 am

Thank you so much it has solved the boot issue and computer is back on
Regards

Reply
Mitesh February 5, 2021 - 8:52 am

Thanks, Very helpfull details

Reply
Daniel Ribeiro May 10, 2021 - 11:37 am

Just a small tip of advice for you guys. It’s possible that the command “bootrec.exe /FixBoot” returns an “Access Denied” error. It happens because of the original permissions table on NTFS filesystems. If this happens, you can solve it by running this command: “bootsect /nt60 all”

Then you can run the “bootrec.exe /FixBoot” command as usual.

Reply
Ricardo June 7, 2021 - 10:54 pm

Thank you, Very helpfull

Reply
Tomi May 12, 2021 - 7:19 am

super. Your work cannot be overestimated

Reply
Tihosi June 20, 2021 - 8:03 pm

Thank you so much my pc is running again.

Reply
Ali July 9, 2021 - 1:20 am

Thank you that saved my day

Reply
Rene July 9, 2021 - 5:13 pm

what a relief..,my computer returns bac k like magic.

Reply
Raja October 24, 2021 - 3:54 pm

Thank u very much.guided step by step.Now my pc boots again Thank u.

Reply
Andrew P October 30, 2021 - 9:17 am

You guys brought my PC BACK!!!!

Reply
Alishar November 5, 2021 - 10:38 am

Thanx, i follow step by step and then solve, my VM ready to go…

Reply
wounder April 13, 2022 - 8:20 pm

Guys… thank you so much. I was losing a year of work.. after 2 days of reading and learning, this is the guide. Thank you again you saved me!!!

Reply
rohan rana September 25, 2022 - 9:21 am

saved me a lot of time and pain. thank you so much

Reply
Darren November 30, 2022 - 3:17 am

Thank you so much 🙏
i wasn’t able to boot from my HDD after making some alterations to the partition.
Following your steps got it working again!

Reply
Aaryan Kakad April 21, 2023 - 12:42 pm

Thankyousomuch means a lot

Reply
zoryox October 1, 2023 - 11:13 pm

This did it for me.
I almost gave up and took my pc to a technician but this guide finally fixed the problem, I can’t thank you enough.

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Adding Drivers into VMWare ESXi Installation Image
  • How to Access VMFS Datastore from Linux, Windows, or ESXi
  • Recovering a Deleted VMFS Datastore on VMware ESXi/vSphere
  • Using iPerf to Test Network Speed and Bandwidth
  • Windows Cannot Find the Microsoft Software License Terms
  • Updating VMware ESXi Host from the Command Line
  • VMware PowerCLI: How to Install and Manage vSphere and ESXi
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top