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 installed Ubuntu via usb with no problems, but when I restart, I get an error message:

error out of disk" 'grub rescue.

How can I fix this?

share|improve this question
May be you are out of disk space.Boot from a live cd and post the output of sudo df -h also post the results of bootscript – karthick87 Dec 22 '10 at 17:05
Also see How do I investigate boot and partition issues? – belacqua May 21 '12 at 16:11

Apparently this error occurs when GRUB can't find a usable grub.cfg. Since the boot configuration isn't there, GRUB drops you to the grub-rescue prompt. Following these instructions you should be able to boot Ubuntu.

Once you've booted Ubuntu, reinstall GRUB2 by running

sudo grub-install
sudo update-grub2
share|improve this answer

For anyone who might be searching for a solution: I had this problem after a fresh install of Ubuntu 11.04 on my HP nc6400 laptop. The problem was solved by installing Ubuntu via the alternate installation cd.

share|improve this answer

Its sounds like you have made a partition for the install files that is small enough that is is getting the messages Ubuntu added to make users aware of running out of space. It shouldn't hurt anything unless the OS grows beyond the amount of extra you have. The simple solution is to install GParted found in the Ubuntu Software-Center. You can simply drag the portion used as the swap space to make it a little bigger and stop the warnings. It's best to do it soon since there's always a small possibility of data loss when changing partition sizes.

share|improve this answer

protected by Braiam Mar 1 '14 at 17:10

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?