Grub

From I Will Fear No Evil
Revision as of 12:08, 26 October 2023 by Chubbard (talk | contribs) (Created page with "== GRUB commands == == Recovery from Grub Prompt == Find the uefi path in your drive [https://forums.linuxmint.com/viewtopic.php?t=362388 Stuck in grub hell] <pre> grub> ls (proc) (hd0) (hd0,gpt2) (hd0,gpt1) (cd0) grub> ls (hd0,gpt1)/ efi/ EFI-old/ grub>_ </pre> Now run the commands to use the partition * After the "normal" command many times grub will boot at that point * Have not needed the linux /boot, or the initrd /boot done yet <pre> grub rescue> set prefix=(hd0,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GRUB commands

Recovery from Grub Prompt

Find the uefi path in your drive Stuck in grub hell

grub> ls
(proc) (hd0) (hd0,gpt2) (hd0,gpt1) (cd0)
grub> ls (hd0,gpt1)/
efi/ EFI-old/
grub>_

Now run the commands to use the partition

  • After the "normal" command many times grub will boot at that point
  • Have not needed the linux /boot, or the initrd /boot done yet
grub rescue> set prefix=(hd0,2)/boot/grub
grub rescue> set root=(hd0,2)
grub rescue> insmod normal
grub rescue> normal
grub rescue> insmod linux
grub rescue> linux /boot/vmlinuz root=/dev/sda2
grub rescue> initrd /boot/initrd.img
grub rescue> boot

Once the boot works, fix grub now!

sudo grub-update
sudo grub-install