Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.


More information on reinstalling grub:

share|improve this answer
... 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 Follow this link: – LnxSlck Jul 27 '12 at 16:35

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 the terminal? ) 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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