Grub: Difference between revisions
Jump to navigation
Jump to search
(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,...") |
(No difference)
|
Latest revision as of 12:08, 26 October 2023
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