Repairing the GRUB Bootloader

GRUB (GRand Unified Bootloader) is the software that loads your Linux operating system when the server starts. If GRUB becomes corrupted or misconfigured, your server will not be able to boot. This guide explains how to reinstall and repair GRUB using the Linux Rescue System.


Prerequisites: This entire process must be performed from the Linux Rescue System.
→ Full Guide: How to Start Rescue Mode


Step-by-Step Guide

After booting into recovery and connecting via SSH, you must mount your server's partitions to access them.

  1. Identify your root (/) and boot (/boot) partitions using lsblk.
  2. Mount the root partition to /mnt.
  3. Mount the boot partition to /mnt/boot.
Mount Partitions (Example)
# This example assumes a non-RAID setup. # Adjust device names based on your 'lsblk' output. mount /dev/sda3 /mnt mount /dev/sda1 /mnt/boot