https://drive.google.com/file/d/17FKA29d_pwvzxX8FAwB4gjBx8aO0boSj/view?usp=sharing

Scenario Overview

⚠️ Critical: This procedure only works if:


Step-by-Step Recovery Procedure

1. Boot from CentOS 8 Installation Media

  1. Attach CentOS 8 ISO to VM/physical machine
  2. Reboot and boot from ISO
  3. At installation menu:

2. Reinstall Kernel Packages

# Navigate to BaseOS packages
cd /mnt/install/repo/BaseOS/Packages

# Find exact kernel-core version (match your system)
ls kernel-core-*.rpm

# Reinstall kernel-core (replace with your version)
rpm -ivh --root=/mnt/sysimage --replacepkgs kernel-core-4.18.0-80.el8.x86_64.rpm

💡 Note:


3. Rebuild GRUB Bootloader

# Chroot into your system
chroot /mnt/sysimage

# Reinstall GRUB to MBR
grub2-install /dev/sda    # Replace sda with your boot disk

# Regenerate GRUB configuration
grub2-mkconfig -o /boot/grub2/grub.cfg