I'm just new to Linux
I'm using HP Envy 13, installed Windows 10 and Ubuntu.
After installed Ubuntu, I had to press F9 to get to window boot manager, which is inconvenient so I had done some changes.
I wanted to use grub, but currently grub didn't show Windows option
First, I tried with sudo os-prober
and sudo update-grub
, it found Window boot files, add done but I still couldn't see Window option on grub
Second, I tried after wisbucky's comment in How do I get my HP laptop to boot into grub from my new efi file?
$ sudo efibootmgr -v
$ sudo cp /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi /boot/efi/EFI/Microsoft/bootmgfw.efi
$ sudo cp /boot/efi/EFI/ubuntu/grubx64.efi /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
And then it got worse. I restarted and found in grub Window OS Manager entering will refresh the grub.
(At this point, I didn't check whether F9 when start can go to Window)
Next, I have tried create Custom EFI choice to go to Windows 10 bootmgfw.efi
in grub, but apparently something has been overridden in former steps so now I got choice in grub but when enter Windows 10 choice it refresh grub.
I went back to F9 and chose Windows option but instead it went to grub.
I think my bootmgfw has been replace by grubx64.efi
I also try repair boot by
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
in:
GRUB doesn't show Windows 10
it repaired successfully but result is still the same.
I tried to copy back $ sudo cp /boot/efi/EFI/Microsoft/bootmgfw.efi /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
but not working.
Totally screwed it up and don't know what next step should be to able to start windows again, I'm really apprreciate if any can help.
My current bootmgfw.efi
file status: