Linux Tutorials

Ways To Rescue Grub Or Recover Grub Menu

You started your laptop this fine morning, and Bam! You will see a black screen with the message “Unknown Filesystem” and grub rescue. You’ve arrived at LinuxAndUbunu to learn how to solve this problem, save your valuable data, and boot into Linux normally once more. Let’s go over some grub rescue commands.

Ways To Rescue Or Recover Grub

You might be wondering what happened to the distro. There could be several explanations for this. You may have installed some software, experimented with GRUB2, or used another distro to try dual booting, among other things. Whatever the reason, the GRUB is usually the source of the problem. The methods listed below can help you get your distribution back from the Grub Rescue screen.

Before we continue, we’d like to tell you about Contabo. We host LinuxAndUbuntu on Contabo VPS. Check them out if you need web hosting. Prices start at $6.99 per month for an 8GB RAM and 4 Core CPU VPS.

contabo vps

Method 1 To Rescue Grub

  • Type ls and hit enter.
  • You will now see many partitions which are present on your PC. [e.g. (hd0),(hd0,msdos1)(hd0,msdos2)]. Select the partition in which your Linux distro is installed.
  • Assuming that you have installed distro in 2nd option, enter this command set prefix=(hd0,msdos1)/boot/grub  (Tip: – if you don’t remember the partition, try entering the command with every option. If wrong you will get an error message. If right you will proceed)
  • After you’ve found the drive, enter this command insmod normal and then normal.

​Now your PC/Laptop will reboot, and you will be on your desktop. Now hit Ctrl+Alt+T and open the terminal and type sudo update-grub and then sudo grub-install /dev/sda. You may be asked for your password; type it, the password will remain invisible, which is normal.

You may be asked for a data connection if GRUB files are lost and the system wants to download them. Your error is fixed, and the distro is back.

Method 2 To Rescue Grub

  • Get a Live USB stick. I will prefer the Ubuntu Live USB stick.
  • Open terminal after booting up into the live desktop.
  • Mount the root partition by typing /mnt and boot to /mnt/boot and hit enter. [e.g. sudo grub-install –root-directory=/mnt –boot-directory=/mnt/boot /dev/sda]

You should replace /dev/sda with the correct partition or disk. Now update grub by typing sudo update-grub.  It can take some time, so wait. After a successful update, reboot, and voila problem was solved.

Method 3 To Rescue Grub

​If you have dual boot and any of the above steps aren’t working, this might come in handy for you.

  • Get a Windows OS installation DVD, borrow it from your friend or anyone. (Don’t get Windows XP or Vista DVD.)
  • Launch it on your PC and run the installer. This can be done by selecting a boot medium either by pressing F12 or by setting boot order in your bootloader. It can be accessed by pressing F2 or Del. or any key your manufacturer suggests.
  • After all your Windows files are loaded then select repair your computer. Usually, this option appears at bottom of dialog box after selecting a couple of options.
  • If prompted select OS, then in system recovery option choose command prompt. Now enter this command one by one –
bootrec /fixboot
bootrec /fixmbr
  • Now quit setup and reboot the PC/Laptop. The window is restored and has overridden GRUB.

Still, your Linux distro is present there. Only GRUB has overridden. You may again get back it by following method 2 above.

Method 4 To Rescue Grub

sudo add-apt-repository -y ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
  • Boot repair tool will appear. Select the recommended option and follow all steps exactly as it says. Your PC will be repaired and Nothing will be lost.

Remember, repair speed will vary according to your internet connection.

​Pro Tips:-

If you are wondering where to get a Live USB stick, you can visit your friend and download Ubuntu iso and create a bootable USB stick with Rufus and bootable DVD using PowerISO.

You can visit a public place if you need WiFi. There are many places like Airports, Railway Stations, Hospitals offering open wifi. It only helps if you have a Laptop.

If your PC does not support booting from a USB stick and the DVD drive is toasted, you can use Plop boot manager to boot from a USB stick forcefully.


I’m always here to assist you with your computer. If you encounter any difficulties, please join discord server or leave a comment below. Also, if you have a great approach to recover from this circumstance, please leave a comment; I would love to include it in the article. However, despite your best efforts, if you are unable to rescue your laptop or your data is corrupted, we at LinuxAndUbuntu will not be held liable for Angry Mother, Furious Dad, Dead Kitten, or Nuclear War.


Riccardo June 21, 2019 at 10:37 pm

I had a win10/debian dual boot, with grub launching windows. Debian was freshly installed but I wasn’t happy with it. From win10 partition I formatted the debian partitions and I reset the pc with another debian live usb inserted. I insert UEFI password but there is no grub because I formatted the partition (genius…) I’m stuck in grub rescue> and I dont have any grub to load and I can’t access boot order because I can’t access UEFI without booting windows so my liveUSB is not read. What can I do?

Cho April 14, 2020 at 4:42 pm

Same happened to me, where you able to solve it?
yes i know… genius

Din September 14, 2020 at 12:04 am

Feels good to know am not the only genius out there.

Luis Sánchez February 8, 2021 at 8:52 pm

Me admira el buen trabajo que lleváis a cabo. Soy un fan de Linux y todos los artículos relacionados con el sistema operativo que me encantan cada aprender más y más. Saludos y salud para todos

m March 12, 2021 at 4:01 am

for new lunix users still not very helpfull

See_bee June 30, 2019 at 4:43 pm

Thanks for helping. It worked and i knew that it is in (hd0,gpt16)

Rajat Chaurasia July 15, 2019 at 11:28 am

There is a dual boot in my system.
Problem is
error: unknown filesystem
Entering rescue mode…
grub rescue>
I tried all above method but fail. Help me

Rengend April 25, 2020 at 7:51 pm

I aslo, I stuck at insmod normal, it says:
error:no such partition

Nirmal July 29, 2019 at 2:18 pm

Thank You Method 4 worked for me by ubuntu stick

Sohail July 30, 2019 at 1:33 am

That’s great! I am glad it helped you.

H.M HENRY May 25, 2020 at 10:17 pm

There is a dual boot in my system.
Problem is
error: unknown filesystem
Entering rescue mode…
grub rescue>

I tried all above method but fail. Help me

A June 12, 2020 at 8:54 pm

I had the same issue. I deleted the linux from the boot menu after doing the above, saved the changes and restarted and problem is fixed.

Juan Eugenio September 5, 2019 at 8:36 pm

Thank you a zillion times. : Method #1 worked like a charm, and you saved me from loosing all my work! 🙂

Collince Otieno Ogada October 1, 2019 at 10:37 pm

Thank you. The first method worked very fine like a charm.

Sohail October 3, 2019 at 6:10 am

Great! I am glad it worked for you… 🙂

Sundar B N November 16, 2019 at 1:25 pm

Booted through LiveUSB Ubuntu 19.04.
But sudo apt install boot-repair fails to find the package … after
sudo add-apt-repository -y ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair

But, could install boot-repair on a bootable Ubuntu USB. However, boot-repair says, “Use LiveUSB” to enable this option when HDD is selected for repair …

Sohail November 16, 2019 at 2:31 pm

Hi Sundar,

I checked the repository and it has boot-repair package for 19.04. Make sure you added the repository correctly. If this step does not work, try another one please and let me know the results.

NAVEEN.R November 30, 2019 at 9:28 pm

I tried all the ways but did getout from this plz help me to get out of it
I want to run windows in my pc
Windows is already installed but not working
Plz help me for God’s sake
You can contact me through WhatsApp:8217898147

Sohail December 1, 2019 at 12:59 am

Hi Naveen,

I can help you out with Linux installation. Tell me if you have setup dual boot or you want to install Linux.

Thank you!

Navigare Nessece Est December 20, 2019 at 5:16 pm

For newbies, much more simple: “Boot Repair Live Disk”
(Use UnetBootin for USB or make a/put on a Live DVD)
Takes three minutes to fix GRUB or GRUB2.
Comes in handy wheen needed!

Dena December 21, 2019 at 1:26 am

So this is the 2nd time I have had a grub rescue after a Windows update install; I have dual Linux and Windows, my brother put together this PC; he fixed the issue last time, he’s not around, and I would like to try to fix myself. Not expert tech, but I don’t mind learning . . . I tried the Method 1, nothing . . . I don’t know how to create a ISO to DVD. I had one my brother left me, but I cannot find it . . . would appreciate your feedback. I have Windows 10 and Linux Mint

Ashley January 7, 2020 at 2:48 am

I have windows 10 dual with ubuntu and I am suck here at grub rescue
When asked it says root is msdos6
All is good until insmod normal when it comes back with no such partition.
So I am lost now what do I do?

john January 7, 2020 at 4:11 am

Hello, i used method 1, but when i type: insmod normal, i get: error: attempt to read or write outside of disk “hd0”.

Single boot of peppermint 9 on lenovo Y430 ideapad.

any ideas, thanks.


Tom January 17, 2020 at 7:28 am

Method 1 worked for me. I don’t think you want the space after prefix=

Victor February 4, 2020 at 9:08 pm

Thank you so much! 😀

Rohan Mukherjee February 6, 2020 at 1:38 pm

Hey man,
I tried the commands like ls and set.
After using set prefix=(hd0,msdos5)/boot/grub
and then when I entered insmod normal, it shows
error: no such partition.

Help me out, bro.

ASHOK GAJAPATHI February 7, 2020 at 3:44 pm

I tried every thing after uninstallation of Ubuntu on my dual boot but after restarting my Lenovo ThinkPad it was showing like grid rescue like that now it directly taking to the ThinkPad setup. What setting to be changed ?

Francisco Mora Jara February 26, 2020 at 3:41 am

Thaank you!

ab March 2, 2020 at 2:45 am

I installed kali Linux dual boot with Windows 10 pro n after I merged one of my partition with the kali linux partition after that I restarted my PC then it shows

“welcome to grub!
error no such partition
grub rescue”

and any boot key is not working it is not allowing me to boot so I couldn’t use kali live and any boot Media and I tried grub rescue commands buy any of the partitions that listed doesn’t have the grub boot but by using “set” command it show the grub bootloader is on other partition that wasn’t show on the listed partitions
when I try that partition and when I get to “insmod normal” it says “error: no such partition.” please help me

Tapta Sundar dalai March 9, 2020 at 10:38 am

I have tried the 1st method but I have checked all the drive that shown on my laptop but it show error, every drive that shown on my laptop, after checked it show unknown file system, I want urgent solution of this.

L May 2, 2020 at 1:03 pm

I don’t understand this “Mount the root partition by typing /mnt and boot to /mnt/boot and hit enter. [e.g. sudo grub-install –root-directory=/mnt –boot-directory=/mnt/boot /dev/sda]”

I don’t know what is a root partition, and the real syntax of “typing /mnt and boot to /mnt, etc…

Jeff_G May 8, 2020 at 3:26 am

Just a Linux user, not a developer. First time I ever encountered a GRUB issue. Not familiar with GRUB functions or configuration. Yet, following your first method, just blindly typing in the commands provided verbatim I was able to resolve my issue. I cannot thank you enough for sharing this information and providing my solution. Kudos for your clear and complete instructions. Well done!

Venkat May 21, 2020 at 5:52 am

Oh god thanks a lot 4th method worked..I had 2 hard disk i don’t remember which hard disk i installed Ubuntu..In method 4 after installing grub it ask is disk 2 removable device i give yes..

Lew May 22, 2020 at 4:47 pm

method 4 worked like a charm – thank you 🙂

Kelvin D. Olson June 3, 2020 at 1:59 am

Thank you, thank you, thank you. I’d never seen grub_rescue> before, and it was sickening to see.

Method 1 worked, but only on the 2nd or 3rd try, and here’s why: inconsistent formatting.

Notice where you have a bold-monospace-font that says “sudo grub-install /dev/sda”


No really, HEY!!

Please follow that convention for EVERY command that is to be typed into a console. Not regular paragraph text that might wrap to the next line because it appears to be just rhetoric.

David June 14, 2020 at 8:37 pm

I recently decided to donate my 13 year old Core2Duo T5470 notebook to a NGO running a center caring for orphans or single parent kids. The center sponsors these kids education until they graduate and always could do with computers and notebooks, and especially during the current Covid-19 pandemic where their students now mainly study online. I contacted their management and told them that my notebook is currently running Linux (Lubuntu). However, they insisted on Windows OS and MS Office as all their computers are using these and their kids are used to Windows and Office. My notebook could only handle Win7 and not later version. I informed them Win7 is no longer supported by MS but still they insisted on Windows OS.

I wiped out the HDD and installed Win7. I had forgotten how painful it was to install Win7. Took me 2 days to scourge the internet for 13-year old Win7 drivers, download Win7 and Office updates and cleaned up residual files. My Win7 version was pre-SP1.

I decided to dual boot it with Peppermint 10 so that the kids can experience Linux. Setting up dual-booting and installing Peppermint 10 was a breeze. Everything worked fine until I decided that GRUB may be too daunting for those kids that haven’t used Linux before.

I made a series of mistakes from this point (actually I made the first mistake during installation of Peppermint where I accidentally set the boot to Peppermint’s extended partition instead of main partition). I used NeoSmart EasyBCD but it didn’t work as I hadn’t realised then that I have set the GRUB boot in the wrong partition. Not wanting to spend any more time in getting Windows boot-loading screen, I decided to install Primitivistical GRUB theme. Everything was still fine with dual booting at this stage.

I then decided to uninstall EasyBCD and whatever files it has written in Win7 partition. This was a big mistake. My notebook failed to boot in Win7. Using my Win7 rescue disk didn’t work as the Win7 is now SP1 version. Not wanting to spend another 2 days in reinstalling, I decided to try Boot Repair Disk. It managed to fixed the Win7 booting and reset GRUB. I just reinstall Primitivistical theme.

Give Boot Repair Disk a try if nothing works.

Dave July 6, 2020 at 3:06 pm

I deleted a now unused partition and expanded the OS partition, Kubuntu 20.04 into the space. Note that the boot partition resides in an Extended Partition. Upon rebooting, I got the infamous “Error: no such partition – Grub Rescue screen. I found a bunch of “solutions” on the ‘net but most looked either sketchy or specific to the posters particular unique problem. Then I found this site. Solution one, quick, easy and the computer is booting again into both versions of Kubuntu I have installed on the machine

The gparted folks should really fix this bug, it appears to be fairly common.

Great work – Thanks

Frank Jones November 4, 2020 at 4:01 pm

This is a confusing situation. My LAPTOP HP 15 bw0xx will install ubuntu and linux mint CINNAMON with no problems, but when I try to install Linux Mint MATE it states there is a problem with GRUB it gives the following message.
The GRUB-EFI-AMD64-SIGNED package failed to install
into /target/.
Please can you help

Animesh Nilawar March 25, 2021 at 11:29 pm

Your blog saved my pc ????

Krigezzz May 31, 2021 at 11:30 pm


wajahat akram August 1, 2021 at 3:59 pm

I Have freshly installed Xubuntu 20.04 but it keeps freezing at the startup , I tried to get grub menue using shift and escape keys but it even don’t work, now don’t know what to do, can anyone help me with that??

Alin August 14, 2021 at 1:03 pm
I did the repair, but it shows dkpj can’t be found, can someone help me???

Rajat Bothra September 7, 2021 at 8:18 pm

Method 4 worked like a charm
Thank you very much

N.M. October 27, 2021 at 5:53 am

Thank You so much!

DEOGRATIUS EMMANUel November 22, 2021 at 4:06 pm

I tried hard but still the problem ddnt solved

Aman Sharma August 9, 2022 at 9:50 am

I love this post! I have been struggling with recovering my grub menu for a while now. This is a great guide!


Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.