I've been using a dual-boot pc for a few years now. I'm used to having to use bcdedit to update the boot manager after installing Windows updates, but after the most recent one, this doesn't seem to work any more.
I would normally run:
bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi
This time, I've also tried:
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
Either way, the computer always boots straight into Windows 10. I can still get to the Grub menu by:
- Restart the PC, and hold down ESC to pause startup
- From the startup menu, select F9: Boot Device Options
- From the boot option menu, select ubuntu (ST1000LM023 HN-M101MBB)
Can anyone recommend anything I should be checking, or the best next steps?
The computer is a HP Pavilion15 that I've had since 2014.
I'll probably remove Windows from this machine once I've fixed it - maintaining a Windows partition is becoming more trouble than it's worth! :)
Update
Based on this answer I found, perhaps this is affected by the same firmware bug as that user described. The following steps restore the grub menu on startup:
`cd /boot/efi/EFI
#back up the old bootmgrfile
mv Microsoft/Boot/bootmgrfw.efi Microsoft/Boot/bootmgrfw.old.efi
#replace the Windows boot manager with grub
cp ubuntu/shimx64.efi Microsoft/Boot/bootmgrfw.efi
for some reason it complains if this file isn't present too...
cp ubuntu.grub64.efi Microsoft/Boot/grub64.efi`
Problem with this approach is that the entry in the Grub menu for windows of course reloads Grub, rather than booting into Windows. Doesn't entirely bother me that I can't get into Windows at the moment, but I'd really like to know how to make this work correctly.
I've tried running os-prober and update-grub in the hope that it finds the windows bootloader at bootmgrfw.old.efi, but that's clearly not a thing!
Can anyone suggest a way of correcting the entry for Windows in the Grub menu, or generally a better approach to configure?