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?

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:

  • 1
    ... and don't let Windows "repair" your computer again ;) – jmetz Jul 27 '12 at 16:34
  • Do I have to buy a livecd? – Joscine Jul 27 '12 at 16:34
  • No. You can download it for free in Ubuntu.com Follow this link: ubuntu.com/download/desktop – LnxSlck Jul 27 '12 at 16:35
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.