0

Laptop: HP probook 450 G

Main Hard drive: SSD 120 GB (Windows 10)

Secondary hard drive: 1TB (Ubuntu installed recently)

My laptop had Windows 10 on C drive and I tried to install Ubuntu on the other hard drive where I had created an extended partition for it (/, swap, home and root). After installation I could not boot into any operating system and it just goes into an infinite loop of restarting.

After some trial and error, I figured out I can select custom file from boot options and I managed to boot into Ubuntu by selecting the /EFI/Ubuntu/shimx64.efi file and it is working and booting me into Ubuntu directly, but there's no GRUB menu so I cannot get into my Windows.

GRUB menu entry

I have already tried updating my /etc/grub/40_custom and no luck. Also tried boot repair with MBR and without it (not relevant but tried).

Boot Repair

I have run boot repair multiple times with different configs, including to update the Windows files. You can access the boot repair report here.

Re-installing Windows

Finally I was trying to repair Windows again and it says drive is locked.

  • Windows is installed and configured to boot via UEFI.
  • Ubuntu is installed and configured to boot via UEFI.

So currently following is situation of HD

  • HD0
    • Partition1 - 800 MB reserved and contains /EFI/Microsoft/Boot file
    • Partition2 - 110 GB windows installation with other programs
  • HD1
    • Partition 5,6,7,8 - ubuntu
    • Partition 2 - ntfs windows file drive with my personal data

I have used a USB to boot into Windows troubleshoot command prompt and tried -/fixmbr, rebuildOS but it is not working; even scanOS can find the Windows installation folder.

Currently I have only UEFI is enabled in my BIOS settings

Can someone help me to boot into my windows installation?


Just to add if I don't select the Ubuntu shim file manually, my computer doesn't boot at all and it throws the following error only when I have my HD1 enabled as boot drive as well

System boot order not found. Initializing defaults
Creating boot entry "Boot0010" with label ubuntu for file "EFI\Ubuntu\shimx64.efi"

Reset System
Zanna
  • 72,312
Haseeb Asif
  • 101
  • 2

1 Answers1

0

During installation of ubuntu two option come to us: One of them "Install alongside windows" another procedure is customizing hard drive partition and installing which is mentioned as "something else" during installation. The process you are going on is not right.Whatever you do you have to install grub boot loader on same drive so that u can boot windows and ubuntu. In bios option you must select ubuntu system boot loader as a first priority.