Grub rescue

Problem

One day, after restart my PC the grub console appears:

grub rescue>

Solution

In my system I have several partitions in /dev/sda, the most important are shown bellow:

partition     mount point
/dev/sda8      /
/dev/sda5      /home
/dev/sda6      /boot

First, try to search for the boot partition where the grub.cfg file exists with the ls command:

grub rescue> ls
(hd0) (hd0,msdos8) (hd0,msdos6) (hd0,msdos5) (hd0,msdos4) 
(hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (fd0)

We know that the partition is the 6th one, we can check it with the ls command:

grub rescue> ls (hd0,msdos6)/
tboot.gz config-3.15.6-200.fc20.x86_64 lost+found  tboot-syms efi/ initramfs-3.15.6-200.fc20.x86_64.img
grub2/ System.map-3.15.6-200.fc20.x86_64/  vmlinuz-3.15.6-200.fc20.x86_64

Now it is time to set the environment variables root and prefix:

grub rescue> set prefix=(hd0,msdos6)/grub2
grub rescue> set root=(hd0,msdos6)

Now load the module with insmod by writing:

grub rescue> insmod normal
grub rescue> normal

After reboot it is required to install again the grub2:

[root@mypc /]# grub2-install /dev/sda
Advertisements

2 thoughts on “Grub rescue

  1. Hey man, I have a problem when I try to do this. When I do ls(hd0,msdos6)/ then appears
    ./ ../ lost+found/ in all the other ones appears “unknown filesystem”
    I hope you can help me with this
    Thanks.

    • So if you try ls (hd0,msdos1)/ , ls (hd0,msdos2)/ , etc.. everything appears as “unknown filesystem” except ls (hd0,msdos6)/ that appears to show an empty dir. Is that your problem?

      Have you tried to startup with a USB or CD rescue disk? In order to see if the other partitions are still working or something is broken…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s