The GRUB2 is the default boot loader for Enterprise Linux.  GRUB boot loader is the most important part of any Enterprise Linux. Most important thing it is used by millions. If the GRUB boot loader is Deleted / Corrupted / Replaced by any other OS then this guide provide you fix for this issues with ease. This tutorial shows the step by step methods that applies quickly and easily to fix this issue for your enterprise Linux.

How to Reinstall the GRUB Boot Loader

Step-1 (Check the default location GRUB configuration files)
[root@techbrown ~]# rpm -qc grub2-tools
Sample Output
Step-2 (Remove the Default GRUB configuration file)
[root@techbrown ~]# rm -rf /etc/default/grub
Step-3 (Remove the grub-tools configuration files)
[root@techbrown ~]# rm -rf /etc/grub.d/*
Step-4 (Reinstall the GRUB using yum command)
[root@techbrown ~]# yum reinstall grub2-tools
Step-5 (Regenerate and save the GRUB configuration file)
[root@techbrown ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Sample Output
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-229.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-229.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-7e890c03ebb940a9a67163adaef14894
Found initrd image: /boot/initramfs-0-rescue-7e890c03ebb940a9a67163adaef14894.img

That’s all for now.

How to Fix Installation Failed at Boot /dev/root Does Not Exist on CentOS / RHEL

Previous article

How to Install Apache Web Server on CentOS / RHEL

Next article

You may also like


Leave a reply

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

More in Linux