0

GRUB is abbreviated as GRand Unified Bootloader is the Boot Loader for Linux OS. The GRUB is the most important part of the Linux OS. GRUB is the Boot Loader for Linux, hence without these Linux OS cannot be booted or start. why it is called as the most important part in the Linux Booting process. When this GRUB is damaged or corrupted its core files your Linux OS cannot be booted. Sometimes it may happen that you found your grub corrupted so that you can’t log in into your Enterprise Linux OS. So for that I am providing a technique to recover and rescue your corrupted GRUB into new one.

Step-I(Select and Hit Rescue Installed System)

Insert the RHEL/CentOS/Scientific/Oracle Linux installation DVD and Boot with the DVD and follow the given Steps:

The following window will open So then press on Rescue installed system or Boot from local drive (It will Boot from your local drive it takes previous stage of your) but in this tutorial I am trying it using Rescue Installed System.
Step-ISelect-and-Hit-Rescue-Installed-System1-1024x605

Step-II(Choose the Language)

Choose the Language and hit Enter
Step-IIChoose-the-Language1-1024x389

Step-III(Select Keyboard Type)

Select the Keyboard Type and hit Enter
Step-IIISelect-Keyboard-Type-1024x460

Step-IV(Starting of Rescue Mode Select the Rescue Image or Media)

Select Local CD/DVD
Step-IVStarting-of-Rescue-Mode-Select-the-Rescue-Image-or-Media-1024x603

Step-V(Setup of Networking)

It will ask you about to setup Networking. To set a network you can watch my other tutorial, actually you should setup a network, but right now we are just learning about grub so don’t setup your network we will do it later. Just press on NO and proceed to further process.
Step-VSetup-of-Networking-1024x527

Step-VI(Starting of Rescue Screen)

Now it will take you to the Rescue screen. So let’s discuss about the options which it provide.If you have a problem in the file system area I recommend Skip option. But here we want to recover our grub so we use Continue option so that it will mount your system under /mnt/sysimage.
Step-VIStarting-of-Rescue-Screen-1024x559

Step-VII(Select Mount point for Rescue)

Click on OK to Mount your system under /mnt/sysimage. Now to work in the root environment runs chroot /mnt/sysimage command.
Step-VIISelect-Mount-point-for-Rescue-1024x512

Step-VIII(Final Mount Point for Rescue Screen)

Read the info and hit OK.
Step-VIIIFinal-Mount-Point-for-Rescue-Screen-1024x567

Step-IX(First Aid Kit for Recovery and rescue)

After this Hit on start shell to enter in the shell prompt.
Step-IXFirst-Aid-Kit-for-Recovery-and-rescue-1024x545

Step-X(Rescue and Recover the corrupted GRUB)

After hitting you will see the following lines below this.Now to work in root environment just press in front of bash prompt.
Step-XRescue-and-Recover-the-corrupted-GRUB-1024x594
In Bash prompt use this command

bash-4.1# chroot /mnt/sysimage
sh-4.1# grub-install /dev/sda
sh-4.1# exit
bash-4.1# exit
Step-XI(Exit from the Rescue Mode)

Just hit on Reboot to restart the systems.
Step-XIExit-from-the-Rescue-Mode-1024x552
After this just let the system reboot and don’t panic if you see the overwritten screen just let it be. It will take 3 to 4 minutes, so in meanwhile hear a song and be happy. After all this process, you are now free to use your Linux.

That’s all for now.

How to Reset and Change Forgotten Root Password on CentOS / RHEL

Previous article

How to Install Latest Linux Mint OS

Next article

You may also like

Comments

Leave a reply

Your email address will not be published. Required fields are marked *

More in Linux