1

After installing Ubuntu 22.04 on a machine which already had Windows installed I can only boot into Ubuntu, but not Windows anymore.

Here is what I did:

I already tried boot-repair, here is the Boot-Info Summary: https://paste.ubuntu.com/p/ywwXxswTqg/

I can see the following text quickly before Ubuntu starts (not sure if it's related or if it helps though): error while booting

I also checked the Windows Boot Loader is before ubuntu in my UEFI settings.

How can I boot into Windows again? It would be nice if I got the option to choose what OS to boot (which is what GRUB is for from what I understand). If that's not possible I would at least like to boot into Windows again like before installing Ubuntu.

  • update: I was able to boot into windows by setting the default OS to boot to Windows using boot-repair. But now only Windows boots without the option to select the OS. – tiefenauer Aug 26 '22 at 17:45
  • you need to go into Ubuntu, run sudo os-prober and then sudo update-grub, see https://askubuntu.com/questions/1425637/how-can-i-add-windows-11-to-grub-menu/1425655#1425655 – Esther Aug 26 '22 at 18:54
  • 2
    If you looks at UEFI entry: Boot0012* Windows Boot Manager it is booting: \EFI\ubuntu\grubx64.efi It should be booting a Windows boot file. You had to manually change that, as that is not normal (anymore). sudo efibootmgr -c -L "Windows Boot Manager" -l "\EFI\Microsoft\Boot\bootmgfw.efi" -d /dev/sda -p 2 See man efibootmgr – oldfred Aug 26 '22 at 19:33
  • @oldfred 's answer is true, but it still didn't solve my problem. Turned out it was an issue with grub itself. This post did the trick for me. – tiefenauer Sep 24 '22 at 12:53

1 Answers1

2

Turns out the Grub menu didn't show up because of an issue with Grub itself. I had to modify Grub as described in this post:

GRUB_TIMEOUT_STYLE=menu
GRUB_TERMINAL=console