Here is my another post on how to solve Grub rescue problem. Here I am going to describe a method of recovering grub without booting from the LiveCD.
Grub Rescue Mode is available only four commands:
Grub Rescue Mode is available only four commands:
- ls
- set
- unset
- insmod
And Grub consists of two parts:
- The first part of GRUB recorded in the MBR of the disk. It contains the basic functionality and no more. This is exactly these 4 commands.
- The second part GRUB - she lies in the directory /boot/grub and contains modules to boot the system.
By using command ls look what devices we have available in GRUB2.
Now, the from the given sections, we need to find the drive with the installed Linux os. Here, the correct disk number 6
ls (hd0,msdos6)/
I guessed section, and if you will not know what's where, have to try few times. Try with different sections until you find the desired one.
When the desired partition is found, you need to specify the path to the modules Grub2:
set prefix=(hd0,6)/boot/grub
And the path to the file system kernel image:
set root=(hd0,6)
Check the proper ways:
ls /
and mind the spaces. There should not be any space before and after '=' sign.
After connecting the module with the command normal, Grub will go into full operations.
It will automatically find all operating systems, and displays the boot menu.
To secure the changes you must boot to Linux Mint and execute the following commands in terminal:
sudo update-grub
sudo grub-install /dev/sda
sda - our drive with the installed system
These commands will reinstall the code in the MBR Grub, and it will automatically pick up the second part of the partition from which you booted.
Thats all! Good Luck.
No comments:
Post a Comment