This question is related to dual booting of windows and ubuntu 20.04 on separate hdd in the same laptop. I have been using ubuntu 20.04 on a very old stand alone desktop tower which has finally stopped working. I have now installed ubuntu 20.04 on the second hdd2 in a slightly younger HP Envy laptop with windows installed on the other hdd1. I followed the instructions to the letter when installing ubuntu 20.04 including the need to ensure that the hdd1 was specified for the boot function. However, after installing ubuntu 20.04, when I first switched the laptop on it would only booted to Windows. I then used the Windows Command to install the grub using command "bcdedit /set {bootmgr} path \EFI\ubuntu\grubX64.efi". Now I get a black panel in which the first line in the box is "grub>" which is clearly expecting me to enter something. Nothing I enter helps.
When I checked the Boot Order Menu (press F10 on boot up) I noted that there is no hard drive option (just a boot manager option plus cd drive and network drive options) mentioned in the UEFI boot order list. The boot manager is at the top of the list. However below in the Legacy boot order list a hard drive option is shown. Note that I switched off legacy, fast boot, and secure boot as per the ubuntu 20.04 installation instructions so they are greyed out. Note that a ubuntu option does not appear in the UEFI boot order list
If I press F9 on boot up I get the Boot Selection Menu. If I select the EFI option I get another panel with a long string. If I select the string I get another panel with a EFI option at the bottom of the list. If I select the EFI option then I get yet another panel where the list has a grubX64.efi option. If I select the grubX64.efi option I then get the black panel listing various boot options including the windows option with ubuntu at the top. Hey presto ubuntu 20.04 is launched and runs beautifully! However this is a long winded way to get there.
I have also run Boot Repair which tells me that it has repaired the boot. However still does the same thing.
I noted that when I installed ubuntu I left the entry for the boot drive as it was. Should I have selected one of the other hdd1 directories listed (there were a number of them)? Note that the ubuntu install instructions were not specific about making such a selection. How do I get the grub into the windows boot manager option in the boot order panel where I presume I would then get the correct behaviour when I switch the laptop on.