Wednesday, January 10, 2018

Ways To Rescue Or Recover Grub Menu

​Just this very sweet morning you started your laptop and Boom! You get a
black screen with a message that “Unknown Filesystem” and a message
saying “Grub Rescue”. Now you are here at LinuxAndUbunu to see how you can tackle out of this problem and save your precious data and boot normally into Linux again. Let us start.

Ways To Rescue Or Recover Grub

​You might be thinking what has happened to distro. There may be many
reasons. You might have installed some software, might mess with GRUB2,
who knows you used some other distro trying dual booting and many other
things. No matter what the reason maybe, most of the time the problem
is with the GRUB. Below are certain ways you can use to get your distro
back from the screen of Grub Rescue.

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 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 and this is normal.

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

You should replace /dev/sda with correct partition or disk. Now update grub by typing sudo update-grub. It can take some time so wait. After successful update reboot and voila problem 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 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.

Conclusion

​We at LinuxAndUbuntu
are available to help you with your PC. If you come across any
difficulties don’t hesitate to drop a comment. Also if you got some
awesome way to recover from this situation drop a
comment, we will love to add it in the article. However despite all your
effort if you cannot save your laptop or data gets messed, We at LinuxAndUbuntu will not be responsible for Angry Mother, Furious Dad, Dead Kitten or Nuclear War.