I have an HP Laptop, a Pavilion 15-cs1000tx, recently bought in February. It came with Windows 10 preinstalled. Since it was not working well for me, I thought of installing Ubuntu 18.04 to use in a second partition, after I did that, I was not able to boot in any of the OS.
When I checked the BIOS setting, I found there was an entry before "OS Boot Manager", that was gone and there is no option that says - "Boot from harddisk" in UEFI boot order.
Even when I change to "Legacy Support", it never boots up. So I thought of installing the clean Ubuntu 18.04 in the whole partition, removing the whole Windows from my machine, still, there is no change, I still get "there is no boot device or boot loader failed".
I have applied all of my knowledge whatever I gained from the internet to fix this. I also tried - efibootmgr to change the boot order, but nothing worked for me, finally now I logged in using Ubuntu Live USB and change the boot order to Ubuntu first (using efibootmgr -n XXXX), but now I can't shut down or restart my machine. It is running from the installed ubuntu from the hard disk, but it is a temporary fix, until I find a solution to boot from my hard disk.
I am pretty sure there is no problem with the hard disk because I can access my installed Ubuntu, but to access that I need to use the Live USB to change the boot order for the next time. But the boot order is not retained if I shutdown or restart.
I will be very glad if someone can help me with this. If there is any way we can disable the UEFI from the BIOS or we can add Ubuntu in the UEFI boot order list, anything that can fix this.
I have no idea why this Windows Boot Loader went away. Because I am pretty sure while installing Ubuntu in the first place, I did not touch anything related to Windows.
Additional Info:
I installed Ubuntu in the UEFI mode, instead of Legacy Support. Images have been added in the comment section. Please help.
sda
drive is configured with the app gparted? https://gparted.org/ Often, large manufacturers will put a 'recovery partition' there which may help you recover your Windows. Once Windows is back, then installing Ubuntu side-by-side alongside Windows is easy. You can upload the screenshot to https://imgur.com and then put a web link to the picture in the original question by clicking [edit]. Good night, Chesty. – K7AAY May 30 '19 at 23:39