I try to set up windows+linux on lenvo p50. Installation:
- windows installation, installer also made 100mb efi partition
- ubuntu installation, same disk
After that I would like to choose boot from "Windows Boot Loader" and "Ubuntu/Grub". However from the uefi I can only choose "Windows Boot Loader".
To overcome this I tried:
- use efibootmgr (https://wiki.gentoo.org/wiki/Efibootmgr) + install-grub from ubuntu live usb, to change boot order, but without effect
- reinstall ubuntu
- add ubuntu entry to Windows Boot Manager via bcdedit from windows (https://www.linuxquestions.org/questions/linux-general-1/using-bcdedit-to-configure-a-multiboot-system-and-add-linux-4175644308/)
Did I made correct assumption that uefi can have both grub and windows boot loader entries to choose? Did anyone had similar problem?
ubuntudirectory under/EFIof the EFI partition, assuming you only have one on that drive. – Tom Yan Nov 15 '23 at 15:35ubuntudir in/EFI– Michal Kurtys Nov 15 '23 at 15:57efibootmgrright after your attempt, and also, whether the new entry vanish after a reboot? – Tom Yan Nov 15 '23 at 16:10efibootmgrdo not appear in UEFI menu – Michal Kurtys Nov 15 '23 at 17:04Boot0001andBoot0002are indeed NOT inBootOrder, while they are apparently considered "active" (*). Some "inactive" boot entries are somehow inBootOrder. On the other hand,Boot0000points to the the/some second partition (2) instead the first one of the/some drive. (While it's weird anyway, you could have been relying onBoot0019to boot Windows.) – Tom Yan Nov 15 '23 at 19:12BootOrderwithefibootmgrif I were you. I do NOT guarantee it is safe (They should all come back after a reboot. Except the Ubuntu / manual ones of course. The Windows one (Boot0000) should also come back after you boot Windows once. You'll need to make sure/EFI/Boot/bootx64.efiis a duplicate of/EFI/Microsoft/Boot/bootmgfw.efibeforehand though, which should allows you to use the "(NVMe) drive entry" to boot to Windows before it comes back, assuming you can see it on the boot menu. – Tom Yan Nov 15 '23 at 19:21BootNextto boot to Ubuntu. (efibootmgr -n 0001orefibootmgr -n 0002) – Tom Yan Nov 15 '23 at 19:22