Ubuntu – No bootable device error after failed to install Ubuntu alongside Windows

bootdual-bootwindows

I was trying to dual boot by installing Ubuntu on D:/ partition of my hard disk while as having windows 10 already installed on C:/ partition. So for that I did the following steps to install Ubuntu 18 alongside with windows 10:

  1. Created a bootable USB of Ubuntu 18 LTS with Rufus on windows.
  2. Reboot the system and boot from USB.
  3. Install the Ubuntu by creating necessary partitions (/ /home swap and efi) in ubuntu installation wizard.
  4. Hit install now to install ubuntu. After a while the installation failed and didn't proceed due to some error.

So after unable to install ubuntu I decided to check if windows is working so I rebooted and removed the USB and Guess what ? windows didn't load instead I get error:

No bootable device -- insert boot disk and press any key.

What happened with windows ? Did ubuntu messed with windows bootloader or anything ?

I also tried to Load Setup Defaults from my BIOS configuration but that didn't helped. Does loading to defaults remove windows completely as my laptop came with no operating system pre-installed.

Please help I don't want to format with new windows as I have some data on C:/ and I don't want to install all the softwares all over again. Is there a way to get rid of above error ? With repair or something else ? Any help would be highly appreciated.

Edit:

I tried to install ubuntu again by replacing previous partitions with just swap and / partitions and now when I hit install now it shows a warning message:

No EFI System Partition was found. This system will likely not be able to boot successfully, and the installation process may fail. Please go back and add an EFI System Partition, or continue at your own risk.

My BIOS Configuration:

My BIOS info

I also confirmed that Windows is using BIOS by going to C:/Windows/Panther/setupact.log in my ubuntu live USB and finding a line saying IBS Callback_BootEnvironmentDetect: Detected boot environment: BIOS

Moreover I ran sudo gdisk -l /dev/sda and I got the output as:

output of gdisk

The EFI System in the above photo was created when installing Ubuntu the first time which didn't succeed.

After Using Boot-Repair from my ubuntu live USB I now get Missing Operating System error.

What I can understand (correct me if I am wrong). My windows 10 was installed with BIOS mode. While as I tried to install Ubuntu 18 LTS 64bit alongside with windows 10 which failed to install but created an EFI partition on my disk. Now the reason I cannot boot into windows 10 is because it looking into EFI partition (as it has first priority than BIOS mode) which maybe corrupted. That is why windows 10 doesn't boot.

I removed the EFI system partition and other linux partitions using gparted now I am getting no error but just a black screen with blinking cursor.

Best Answer