Rescue from grub_rescue>

Nikhil Kushwaha
2 min readMay 25, 2020
src: diskpart.com

If you have multi boot system you must have encountered grub rescue mode in linux. When I encountered my first grub_rescue it took me hour to get my system woking, back then there was no youtube video on it and very few post on forums like stackeroverflow. Therefore, I am making this simple post to help you get rid of grub rescue.

Note: This post assume your disk is in GPT. If your disk is not gpt then your partition will look like (hd0,msdos1). All things works the same just replace gpt with string outputted by first ls command.

“grub_rescue>” is typed to represent different line and shell. You don’t need to type it.

  1. Type ls to list partition
grub_rescue> ls

2. It will list all the partition as (hdX,gptY), where X and Y vary. X represents hard drive number where Y represents partition.

3. Now type ls with all the listed partition in output of last command as below

grub_rescue> ls (hd0,gpt1)
grub_rescue> ls (hd0,gpt2)
... #skip lines for followings paritions
...
grub_rescue> ls (hd0,gptn) #n is number representing last partition

4. Suppose (hd0,gpt3) is your linux partition then it will listed as ext4/3/2 , whereas windows will have ntfs.

5. Once you are sure that (hdX,gptY) is the correct partition to boot your linux type

grub_rescue> set root=(hdX,gptY)
grub_rescue> set prefix=(hdX,gptY)/boot/grub #assumes grub is in this folder
grub_rescue> insmod normal
grub_rescue> normal

6. After that your system will boot.

7. After booting, open the terminal and type

sudo update-grub
sudo grub-install /dev/sdX #X represents partition number of linux, use this command only if above doesn't work.

8. Reboot and check everything is working.

--

--

Nikhil Kushwaha

I am a tech enthusiast and love to learn new things.