• Webconn Technology
    • GPU Server
      • Dedicated GPU Servers with NVIDIA RTX/A100 GPUs for accelerated AI training, rendering, and scientific computing. Features CUDA cores, 24GB-141GB VRAM, and parallel processing. Pre-configured with TensorFlow/PyTorch.

      • nvidia rtx A6000
    • Dedicated Server
      • Experience blazing-fast speeds & ironclad security with your own dedicated server. No shared resources. Fully customizable plans for gaming, e-commerce, and big data. Start now!

      • datacenter
    • Shared Hosting
      • Get user-friendly DirectAdmin shared hosting for your website. Enjoy an intuitive control panel, one-click app installs, and reliable performance. Perfect for blogs, small business sites, and portfolios.

      • shared hosting web
    • Domains
      • Search and register the perfect domain name for your website. Get a memorable .com, .net, .org or niche TLD to start building your brand online. Includes free privacy protection.

    • VPS
      • Experience the power of a dedicated server without the high cost. Our VPS hosting guarantees CPU, RAM, and storage for your site, ensuring optimal performance and stability.

      • data center
  • Blog
  • Dashboard

Restore the /boot directory after corruption or missing files

  • Enable the network so yum can function.
  • Mount /boot from your disk.
#mount /dev/sda1 /boot
  • Make a directory grub2 on /boot as follows.
#mkdir /boot/grub2
  • Copy the modules as or copy the entire things from an identical system as fonts locale directive.
#cp -r /usr/lib/grub/i386-pc /boot/grub2/i386-pc
  • Reinstall the kernel packages
# yum remove kernel-<release>
# yum install kernel-<release>

It is anticipated to have grubby fatal error: unable to find a suitable template, which can be ignored at this time because /boot does not yet have /boot/grub2/grub.cfg.

  • Install the grub2 package as follows.
#yum reinstall $(rpm -qa | grep grub)
  • Recreate the grub configuration as follows.
#grub2-mkconfig -o /boot/grub2/grub.cfg
  • Check if /etc/grub2.cfg has a symbolic link to /boot/grub2/grub.cfg
  • Finally, reinstall the grub on new created partition as follows.
#grub2-install <disk>
Ex:
#grub2-install /dev/sda

This should be sufficient to create the /boot directory and boot the system, but if you have a backup of /boot, you should restore it from the backup.

Comments

Leave a Reply