Saturday, September 30, 2023

Grub not Found, Issue Resolution in Linux Server


Sometimes we are facing grub not found as per screenshot, while booting in a Linux Server.

So, we resolve this issue by using below simple steps: -


 


1. We need to boot in rescue mode using RHEL iso image.


(Note: - We need to mount same version of Linux server iso image.

After booting server from Iso image, need to select troubleshooting option as per shown in image.

In next screen, we need to select Rescue a Linux server. )



2. In next screen, select 1 option to enter in read write mode.


3. Run "chroot /mnt/sysimage" command.


4. We need to configure the network for grub installation.


5. To activate the eth0 device, run -


# ip link set dev eth0 up


6. To configure ip address and fetch configuration


# ip addr add 192.168.122.250/24 dev eth0

# ip route add default via 192.168.122.1

# ip addr


7. After network configuration, we need to validate the connection from our satellite server.


# subscription-manager refresh


8. After validating the connection, we need to install grub package -


# yum install grub2-efi-x64


9. Once it is installed then we need to reboot the server.


# init 6


Post that server will boot up normally.



No comments:

Post a Comment

Introduction to Linux Part 1

Introduction to Linux Part 1

Introduction to Linux Linux is an operating system that works just like Windows and Mac OS X. As an operating system, Linux is a very h...