Grub
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