Score:0

I need to boot-repair Grub after each Windows boot

gb flag

I have dual boot on my PC: Ubuntu 21.04 and Windows 10. The last Windows 10 update broke the GRUB boot menu: I was unable to boot Ubuntu (same error like this question). Then I discovered and used successfully the boot-repair utility to boot again in Ubuntu. I was having no problems, until ... I had to log again in Windows. After I boot Ubuntu and restart, I have the GRUB menu. After I boot Windows, I have to repair GRUB again.

How could I cope with this? Is there any way to permanently repair GRUB? Prevent Windows from accessing its settings?

ChanganAuto avatar
us flag
When dual-booting with Windows, disabling its Fast Startup feature is a MUST. So, start with that. Additionally you need to understand that any Windows feature update - those huge update packs that take a long time to install and several reboots - always change the UEFI boot order back to Windows. When it happens it's ONLY a matter of changing it back to "Ubuntu", no Boot-Repair needed.
gb flag
Thanks for your comment: this might help me in future. I note the boot order change, this sounds like a good practice indeed. Well for now, I have disabled Fast Startup feature, as you have suggested, and repaired the boot again. After booting Windows, GRUB has been broken again. Also, I have tried with using the "purge GRUB" option: same behavior again, unfortunately.
ChanganAuto avatar
us flag
Please stop messing with Grub. Whenever Windows boots directly it means the boot order in UEFI (unrelated to Grub) has been changed. Open UEFI settings > Boot and change it back to "Ubuntu" where it now says "Windows bootloader manager".\
gb flag
Well, this is not the case: in boot order, the second priority option (after USB Hard Disk) is "Hard Disk: ubuntu" and in "Hard Disk drive BBS Priorities", I have: Boot Option 1: Ubuntu, Boot Option 2: Windows. When boot menu is broken, it tries to boot with the first boot option, fails, and switches to the second.
ChanganAuto avatar
us flag
There are 2 different settings to account for. One is the drive order > Should be set with the drive containing the ESP as the first priority; and another for the actual OS boot order (OS entries read from the .efi files in the ESP)
heynnema avatar
ru flag
In Windows, have you installed a driver/software that allows you to read/write to Linux ext2/3/4 partitions? If so, remove it asap, as it's corrupting your Linux/Ubuntu.
oldfred avatar
cn flag
Some computers (HP for one), do not seem to recognized UEFI settings made by efibootmgr. It boots once & then it resets to Windows first. Maybe syncing Windows BCD. But most are able to go into UEFI settings & boot tab (not UEFI boot menu) and change boot order there.
gb flag
Thanks for the latest comments, but once again, the computer is clearly trying to boot the ubuntu boot manager, then is failing (error message as the one in the link from my question), and only then the Windows boot manager. And no, at the moment this happened for a first time, I didn't install anything in particular, just a (major) windows update.
pierrely avatar
cn flag
wild guess but what if you made the ubuntu grub file immutable using 'sudo chattr +i <grubfilename> https://www.tecmint.com/chattr-command-examples/
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.