0

I was using the computer and I went back to Windows and it launched in start-up repair. Now when I try to start Ubuntu this screen comes up that says something about grub files and talks about giving some command. Then it has grub> and a blinking cursor.

I honestly don't know how to get rid of it and I would just uninstall and reinstall Ubuntu but I don't want to lose my files which I hadn't backed up. Help?

Peachy
  • 7,117
  • 10
  • 38
  • 46

2 Answers2

2

You don't need to reinstall Ubuntu, only reinstall Grub. You can boot from a LiveCD of Ubuntu and try reinstall it:

Open the live version. Open the terminal and run sudo fdisk -l to see where Linux is installed.

Run sudo mount /dev/sdaX /mnt where X is the number you have found Linux word in.

Run sudo grub-install --root-directory=/mnt /dev/sda to install grub.

Run sudo update-grub to update grub.

Reboot.

More information on reinstalling grub:

LnxSlck
  • 12,256
0

Here's a method that doesn't require you to run a large number of commands.

Try the following:

  1. Boot with Ubuntu latest version LiveCD

  2. When you get to the Live Desktop, open the terminal ( What is a terminal and how do I open and use it? ) and type these commands:

    • sudo grub-install /dev/sda

    • sudo update-grub

You are done. Reboot the machine and grub is installed to hard disk MBR.

Amit Rane
  • 1,310
  • 4
  • 13
  • 26