Score:0

restore win11 entry in grub menu

au flag

I have a dual-boot system with win 11 and ubuntu 22.04 with the the OSs on two different drives (M2 drive for windows and ssd for ubuntu). At the begenning win 11 was pre-installed on the machine and then I installed ubuntu and all worked fine. Unfortunately I faced some trouble with win11 and I had to reinstall it. Now when I start the system I can't see win 11 entry in the grub menu anymore. First, I simply tried to update the grub with: sudo update-grub but this didn't work.

Then I tried to reinstall the grub with:

sudo grub-install /dev/sda where the grub is (and should be) and then

sudo update-grub but the win 11 entry didn't appear. How can I restore the win 11 entry?

Thanks

Additional information:

sudo os-prober successfully see win 11 and also efibootmgr successfully lists the boot order with win11 at the second place.

oldfred avatar
cn flag
Is Windows fast startup on. Or is bitlocker on? You did reinstall in UEFI boot mode?
Score:0
au flag

Just to share what was the solution for me, I reply my own question.

sudo vi /etc/default/grub

then I added the following line:

GRUB_DISABLE_OS_PROBER=false

after saved the changes, I run: sudo update-grub

and at the reboot the windows 11 entry appeared again in the grub menu.

Score:0
ch flag

Good morning, regarding your question, I have tried this way of solving the problem and it has worked for me.

Install os-prober on ubuntu.

sudo apt update -y

sudo apt install os-prober

Then you can modify the /etc/default/grub file by adding the following line to it:

GRUB_DISABLE_OS_PROBER=false

Make sure the the EFI partition where the Windows bootloader resides is mounted.

Run as root:

sudo grub-mkconfig -o /boot/grub/grub.cfg

Finally you should update the grub configuration and restart the computer so that you can check that everything works correctly.

sudo update-grub

sudo reboot
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.