How to boot Linux from grub rescue?

Gaurav Bhardwaj
Gaurav Bhardwaj
Published on
#linux
Cover Image for How to boot Linux from grub rescue?

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.

boot windows from grub rescue - ittwist

Steps for how to boot linux from grub rescue.

Step 1 – Listing Partitions from Grub Rescue:

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
boot windows from grub rescue - ittwist

Step 2 – Listing EFI Partition

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)/
boot windows from grub rescue - ittwist

For me, the same is found in (hd0,gpt1)

Step 3 – Set the Root of Grub Rescue to the EFI Partition – Selection

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)
boot windows from grub rescue - ittwist

Step 4 – Chainloading the Installed Linux Grub EFI File.

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
GNU Grub Terminal

Step 5 – Boot Linux from Grub rescue:

Finally, Let’s boot to Linux by just executing the below command:

boot
GNU Grub Terminal

Conclusion – Boot Linux:

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.

Check out our Latest Best Linux Picks


0 Comments

Leave a Comment

Note : Your Email ID will not be published. Enter all the Required Fields *