Welcome to the Linux Foundation Forum!

RHEL 7.5 bootloader error. grub error

Posts: 1
edited February 2020 in Red Hat Enterprise

Hi all,

 for some reason I used the disk utility on rhel 7.5 to change the partition type of a usb,

next boot I found that my boot partition has been deleted and the system was not able to boot,


a grub error

IMG_20200223_134203_edit.jpg


I used the installation media to enter the rescue mood trying to setup the boot partition again,


I typed the following commands

ls /dev/sd*

ls /sbin | grep grub2

/sbin/grub2-install /dev/sda


and got the following error


error: /usr/lib/grub/i386-pc/modinfo.sh does not exist. please specify --target or --directory.

IMG_20200223_135854.jpg


please some one can help with that 

I googled it several times but couldn't find a solution

thank you

Hammam

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training