Grub Shell Boot
Sometimes an installation of Grub bootloader fails on the halfway, probably caused by changing partitions order or so. In cases like this either Grub Shell or Grub Rescue shell is presented.
This section shows how to manually boot a system from the Grub Shell. The Grub shell offers an autocomplete feature, so utilize it to save your fingers.
1/ list disks and partitions
2/ identify your partition by listing partion contents like this:
grub> ls (hd0,gpt5)/
3/ Set root partition. No spaces around equals sign!
grub> set root=(hd0,gpt5)
4/ Set path to a linux image. Autocomplete your way out or use symlinks generated to system root in case your GNU/Linux distro prepares them for you. (if not, use
grub> linux /vmlinuz root=/dev/nvme0n1p5
linuxeficommand for UEFI native mode partitions
- root param must not be forgotten!
5/ Set path to an initrd. Autocomplete your way out or use symlinks generated to system root in case your GNU/Linux distro prepares them for you. (if not, use
grub> initrd /initrd.img
initrdeficommand for UEFI native mode partitions
- Your system should be booting right now in case everything went OK.