Tools: The "Windows Update Ate My Grub" Fix: A One-Line Lifesaver (2026)

Tools: The "Windows Update Ate My Grub" Fix: A One-Line Lifesaver (2026)

The Magic Command

What does this actually do?

Step-by-Step Guide

"It didn't work!" (Troubleshooting)

Why does this happen? It’s a tale as old as time (or at least as old as UEFI). You spend your morning updating Windows, hit restart, and instead of your familiar GRUB menu offering a choice between Linux and Windows, you’re booted straight into Windows. Your Linux partition isn't gone, and your files are safe—Windows has simply "reclaimed" the boot priority, effectively hiding the door to your Ubuntu installation. While many guides suggest booting from a Live USB and re-installing GRUB (which takes ages), there is a surgical, one-line fix you can run right from inside Windows. If you are using Ubuntu (or most Ubuntu-based distros like Mint or Pop!_OS), open the Command Prompt as Administrator and run: Windows uses a tool called bcdedit (Boot Configuration Data editor) to manage how the computer starts. If the command runs but nothing changes, or if you get an error, check these two things: Windows updates occasionally overwrite the "Boot Order" stored in your motherboard’s NVRAM to ensure Windows remains the default OS. By running this command, you aren't "breaking" Windows; you're just politely telling the motherboard that GRUB is the rightful conductor of the orchestra. Pro-tip: Keep this command in a Note or a physical sticky note. Windows updates are inevitable, and having this shortcut saves you from a 30-minute troubleshooting session down the road! Templates let you quickly answer FAQs or store snippets for re-use. Hide child comments as well For further actions, you may consider blocking this person and/or reporting abuse

Code Block

Copy

bcdedit /set {bootmgr} path \efi\ubuntu\grubx64.efi bcdedit /set {bootmgr} path \efi\ubuntu\grubx64.efi bcdedit /set {bootmgr} path \efi\ubuntu\grubx64.efi - {bootmgr}: This targets the Windows Boot Manager. - path \efi\ubuntu\grubx64.efi: This tells the Windows Boot Manager that instead of looking for the Windows startup file, it should point directly to the GRUB bootloader file located on your EFI partition. - Boot into Windows: Since GRUB is missing, you’re likely already here. - Open CMD as Admin: Press the Win key, type cmd, right-click it, and select Run as Administrator. This is crucial; the command will fail without elevated permissions. - Run the Command: Copy and paste the command above and hit Enter. You should see a message saying "The operation completed successfully." - Restart: Reboot your machine. Your GRUB menu should reappear, giving you back access to your Linux world. - Secure Boot: Sometimes Secure Boot prevents the handoff to GRUB. Try disabling it in your BIOS/UEFI settings if the problem persists. - Path Variation: If you aren't using Ubuntu, the folder name might be different. For example, Fedora users would likely use \efi\fedora\grubx64.efi.