- Posted on
- • Tips
How to repair dual boot via grub rescue
- Author
-
-
- User
- maintainer
- Posts by this author
- Posts by this author
-
If a windows update destroyed your normal grub startup and you are landing in grub rescue you can quite easily restore the grub menu and repair your linux windows dual boot setup.
Following steps from today's google AI search summary worked for me:
Manual Boot Steps from GRUB Rescue
If you are stuck at the grub rescue> prompt, follow these steps to load your system:
List Partitions: Type
lsto see available partitions (e.g., (hd0), (hd0,gpt1), (hd0,gpt2)).lsFind Root Partition: Search for the partition containing /boot/grub. Type
ls (hdX,gptY)/for each partition until you see boot/, etc/, or home/. Example:ls (hd0,gpt2)/Set Root and Prefix: Set the variables to the partition found in step 2.
set root=(hd0,gpt2) set prefix=(hd0,gpt2)/boot/grubLoad Normal Module: Switch to the normal boot mode.
insmod normal normalBoot System: The standard GRUB menu should appear, allowing you to select your linux kernel.
Permanent Fix (once inside linux)
Once you have successfully booted into your linux, you must reinstall GRUB to fix the issue permanently:
Open a terminal.
Run the following commands to reinstall and update GRUB (replace /dev/sda with your actual disk, e.g., nvme0n1):
# sudo grub-install /dev/sda sudo grub-install /dev/nvme0n1 sudo update-grub