Are you having issues with error "An Operating System Wasnt Found in the process of booting Windows"?
This guide will help you.
Sometimes, your computer cannot find and start the Windows bootloader or the bootloader of any other OS installed on your computer.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to fix Windows related errors.
In this context, you shall learn the main causes of this error and how to tackle it now.
What triggers the error "An Operating System Wasnt Found in the process of booting Windows"?
You will experience this error if there is no operating system bootloader found on the current disk. So, the computer can’t find and start the Windows bootloader.
As a result, it will throw the below error message;
An Operating System Wasnt Found. Try disconnecting any drives that don't contain an operating system.
Press Ctrl_Alt_Del to restart
The main causes of this Windows error includes;
i. The system partition is damaged, missing, or damaged MBR (master boot record).
ii. No active partition or an incorrect disk partition is marked as active
iii. Boot configuration data (BCD) is corrupted
iv. The HDD that has an OS installed it not connected.
How to fix the error "An Operating System Wasnt Found in the process of booting Windows"?
Note the following points before reading the fix;
i. The hard drive and the OS must be connected.
ii. You have connected the power and ribbon cables properly.
iii. Generally, the hard drive is detected in the BIOS/UEFI of the computer. Make it the primary boot device;
iv. Finally, check the Secure Boot settings in UEFI. They may have been changed (check if Windows is booted with the Secure Boot mode enabled/disabled and in the Legacy mode).
After checking the above details, if the Windows still doesn't boot then restore the Windows bootloader and disk boot record.
Identify Disk Partition Table & Windows Partition
First, you need a Windows to install media (on a CD/DVD/ bootable USB drive) or rescue disk with the same OS version you have installed on your drive.
Now change the boot order in BIOS(UEFI). For that, boot from your installation/rescue disk and run the command prompt.
You must need to detect the type of the partition table on the disk whether it is GPT or MBR. Because the method for restoring the Windows bootloader depends on it.
So run the below command;
Then enter the below command.
As the result of the above command, if there is an asterisk(*) in the Gpt column then the GPT partition table is used, otherwise it is MBR.
Display the list of volumes on the disk. For that, run the below command;
Exit the diskpart session by entering the following command;
By looking at the disk size, Windows is likely to be installed on E: drive. So, confirm it by running this command;
If Windows is present then you must see Windows, Program Files, Users, and other standard folders on the drive.
Finally, now we have found the disk layout type and the drive letter of the disk Windows is installed on.
How to Repair the Windows Bootloader on the MBR Disk?
Here we are considering that the computer is using BIOS and the disk partition table is MBR.
First, create bootloader configuration files on the E:\ drive:
bcdboot E:\Windows /S E:
As a result, the "Boot files successfully created" message will appear.
Next, re-create a Master Boot Record (MBR):
Now, make the Windows partition active by running the below commands.
sel disk 0
select volume 2 (earlier we detected that Windows is installed on this volume)
Finally, restart the computer and ensure that Windows has booted correctly and the “Operating system not found” error has not appeared.
How to Repair the EFI Bootloader on a GPT Disk of UEFI Computer
In case, if your disk has the GPT partition layout, then your computer must be using the UEFI architecture instead of BIOS.
First, find a FAT32 hidden partition and assign a drive letter to it (the size of this partition is 100-300MB, it is used to store the Windows bootloader which is called the EFI bootloader).
Consider that you’ve detected it as volume 1 with the label BOOTSTRAP.
Now select this EFI partition and assign a drive letter to it:
select volume 2
assign letter M:
Then re-create the BCD bootloader configuration file:
cd /d m:\efi\microsoft\boot\
ren BCD BCD.bak
bcdboot E:\Windows /l en-us /s M: /f ALL
Finally, reboot the computer. Then remove the boot media (USB flash drive) and make sure that Windows has booted correctly.