1

So when I was starting my computer, I pressed F8 and then it said there was no such partition and now it only shows GRUB rescue. How do I fix GRUB to run normally again?

Maythux
  • 84,289
Shempklong
  • 41
  • 1
  • 1
  • 8

2 Answers2

0

Run those commands replacing with suitable for your system

grub rescue> set prefix=(hd0,1)/boot/grub
grub rescue> set root=(hd0,1)
grub rescue> insmod linux
grub rescue> linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1
grub rescue> initrd /boot/initrd.img-3.13.0-29-generic
grub rescue> boot

Please taek a look for my answer here GNU GRUB Terminal - Instead of Ubuntu login screen

Also Please take a look for this link https://www.linux.com/learn/tutorials/776643-how-to-rescue-a-non-booting-grub-2-on-linux/


Another solution to boot from livecd and reinstall the Grub

  • put ubuntu live cd of the same version of your sysetm
  • boot with try ubuntu without installing

Then run those commands:

sudo fdisk -l

Identify the boot partition with * besied suppose /dev/sda1

sudo mount /dev/sda1 /mnt 
sudo grub-install --root-directory=/mnt /dev/sda
sudo reboot
sudo update-grub
Maythux
  • 84,289
0

To rescue your grub, you can use boot-repair tool.This tool helps me lot, every time i troubleshoot grub problems.

Before starting rescue operation, first you need a Ubuntu in bootable USB flash drive or Ubuntu Disk .

  • Plug Disk or Flash drive and enter into Try Ubuntu mode.
  • Connect your system with internet.
  • Open Terminal by pressing CTRL+ALT+T.
  • Type these commands in terminal.

    $ sudo add-apt-repository ppa:yannubuntu/boot-repair
    $ sudo apt-get update
    $ sudo apt-get install -y boot-repair && (boot-repair &)
    
  • Click on the options which will shown in the boot-repair window.

  • Wait for some minutes, and it will repair you grub automatically.You don't need to worry about anything.Just click on options and move forward.