• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

“error: can’t find command ‘ffffffffff…..” GRUB2 error CentOS/RHEL 7

by admin

The Error

While trying to boot grub2 shows:

error: can't find command 'ffffffffff.....

and the system is unable to boot.

The Solution

It is possible that the grub2 modules in

/boot/grub2/fonts/
/boot/grub2/i386-pc/
/boot/grub2/locale/

have become corrupted.

To remedy any bootloader corruption, boot the server into rescue mode and reinstall the grub2 package:

1. Boot the VM from the install ISO image and enter rescue mode ( Troubleshooting -> Rescue a linux system ).

2. Do not allow rescue mode to mount the root filesystem.

3. Activate any LVM devices.

# lvm pvscan
# lvm vgscan
# lvm lvscan
# vgchange -ay

The LVM devices should appear in the /dev/mapper directory.

4. Mount the devices to make their content accessible.

# mount /dev/mapper/xxxx-root-lvm-xxx /mnt/sysimage
# mount /dev/mapper/xxxx-var-lvm-xxx  /mnt/sysimage/var
# mount /dev/mapper/xxxx-usr-lvm-xxx  /mnt/sysimage/usr

include procfs, sysfs, dev via a bind mount.

# mount /proc /mnt/sysimage/proc/ -o bind
# mount /dev /mnt/sysimage/dev/ -o bind
# mount /sys /mnt/sysimage/sys/ -o bind

and mount the boot partition:

# mount /dev/xvda1 /mnt/sysimage/boot

5. Make the newly-mounted partitions the current working context.

# chroot /mnt/sysimage
Note: At this stage verify /boot/grub2/grub.cfg, it should not contain any garbage.

6. Enable the network so the grub2-tools TPM can be re-installed via yum(8) if not already installed.

# ifup eth0

7. Re-install the grub2-tools RPM package.

# yum reinstall grub2-tools

8. Re-install grub2:

# grub2-install /dev/xvda

9. And then reboot:

# echo Exit from chroot shell
# exit
# echo Exit from rescue shell to reboot
# exit

Filed Under: CentOS/RHEL, CentOS/RHEL 7

Some more articles you might also be interested in …

  1. Getting “parsing errors” When Running ‘yum repolist’
  2. chcon command examples in Linux
  3. CentOS / RHEL 7 : How to Enable the Old ethX Style Network Interfaces Names
  4. “passwd: Module is unknown” – error while changing the password in CentOS/RHEL 6
  5. How to set custom device names using udev in CentOS/RHEL 7
  6. Beginners Guide to DHCP – Install and configure DHCP server and client
  7. How to configure AD group in sudoers file to provide sudo access to users on Linux system
  8. CentOS / RHEL : How to install Open Virtual Machine Tools for Virtual machines Hosted on VMWare
  9. Unable to login with GUI on CentOS/RHEL 7
  10. How To Migrate Existing Iptables rules to Nftables In CentOS/RHEL 8

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright