In this article, we will learn how to boot Linux from grub rescue screen. If you are looking to boot windows from grub rescue you can refer to this article.
First, we need to find out our EFI partition or the partition where your boot files are stored. In order to find that we need to see all the available partitions, so simply execute the ls
command.
ls
After getting our directory listing, we need to find the boot partition. Generally, the boot partition has a very small size (less than 1GB) and having an EFI/ partition in it. So, In order to locate that you can simply execute the ls (hdx,gpty)/
one by one.
Note: The x and y are for illustration, replace x with the hard disk number, and y with the partition number.
ls (hdx,gpty)/
For me, the same is found in (hd0,gpt1)
Since we have located the partition, now we need to set the root of grub rescue to the boot partition. So simply execute the below command.
set root=(hdx,gpty)
Now, we have set the root of the grub rescue to the partition in which our boot files are present, now we need to execute the command chainloader
for loading a boot file, and we will boot from that.
chainloader /efi/<Linux_Distro>/grubx64.efi
Finally, Let's boot to Linux by just executing the below command:
boot
ls
ls (hdx,gpty)/
set root=(hdx,gpty)
chainloader /efi/<Linux_Distro>/grubx64.efi
boot
That's it for this article, If you have any queries or suggestion please write down in comment section below.
Leave a Comment