Article 4R4G2 CentOS7 Grub2 Boot Error

CentOS7 Grub2 Boot Error

by
BeeRich
from LinuxQuestions.org on (#4R4G2)
HI folks.

CentOS7 box with a CMOS reset (so I could get back into the BIOS settings), I came back to a box that couldn't boot properly.

So I read about replacing the boot stuff, and went into rescue mode with a USB thumb drive (CentOS7 v1908).

Code:$ lsblk
sda # disk 1, CentOS
sda1 # /boot/efi partition
sda2 # /boot partition
sda3 # partition
centos-root # /
centos-home # /home
centos-swap # [SWAP]
sdb # disk 2, blank
shadowneb-shadow_neb # /home/backups
sdc # USB thumb drive
sdc1 # partition
sdc2 # partition

$ ls /sbin | grep grub2 # show install command (grub2-install)
$ /sbin/grub2-install /dev/sda
/sbin/grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.So very true.

Code:$ locate modinfo.sh
/usr/lib/grub/i386-pc/modinfo.shAt this point I don't know what to do. My backups indicate this directory was never there in the first place, only the one that's being reported now. Why this isn't loading, is very strange.

Any advice as to how to get this to boot? Any insight appreciated.

Cheerslatest?d=yIl2AUoC8zA latest?i=PYhjDhKLBQs:4Kjq3wpDvKo:F7zBnMy latest?i=PYhjDhKLBQs:4Kjq3wpDvKo:V_sGLiP latest?d=qj6IDK7rITs latest?i=PYhjDhKLBQs:4Kjq3wpDvKo:gIN9vFwPYhjDhKLBQs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments