Bobcares

For every $500 you spend, we will provide you with a $500 credit on your account*

BLACK FRIDAY SPECIAL

*Get up to $4000, Offer valid till November 30th, 2024

For every $500 you spend, we will provide you with a $500 credit on your account*

BLACK FRIDAY SPECIAL

*Get up to $4000, Offer valid till November 30th, 2024

Grub Rescue Error In Centos | How To Fix It?

by | Feb 17, 2023

Let’s fix the Grub Rescue error in Centos systems. At Bobcares, with our Server Management Services, we can handle your server-related issues.

How to fix the Grub Rescue error in Centos systems?

Due to some human error or some patching activity, we may see the ‘Grub Rescue’ prompt. It is a common boot failure issue. The reasons behind the issue include:

  • When the bootloader of another OS has overwritten the GRUB boot configuration
  • Accidental deletion of GRUB configuration files

Here, we’ll fix Linux boot failure using the GRUB Rescue prompt.

Steps to fix Grub Rescue error

1. On the Grub Terminal, we can use the set command with no arguments to view the environment variables:

set

2. We can use the below command to display the available partitions on the disk:

ls

3. Then we use the below command to find the partition containing the boot directory:

ls [partition-name]

4. Set the boot partition as the root variable’s value. E.g.,

set root=(hd0,msdos1)        //(hd0,msdos1) is the partition.

5. Then launch the default boot mode:

insmod normal

6. Start the normal boot mode now:

normal

7. Now with the Linux command given below, load the Linux kernel:

linux /boot/vmlinuz-4.2.0-16-generic root=/dev/sda1 ro

8. Lastly, use the boot command.

boot

Now the system successfully boots. After that, we must make sure the GRUB config file is up-to-date. We can use the below command to confirm the version.

update-grub

[Looking for a solution to another query? We are just a click away.]

Conclusion

The “grub rescue” prompt can be one of the most frustrating problems. This article offers a quick workaround for the Grub Rescue error on Centos systems.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.