Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

So I think I've possibly done something pretty dumb. Basically I was running out of space on my ubuntu partition and I knew i had a 40GB partition at the end of the disk which was called OS2.

I'm 99% sure this was one I created years ago when I first had the idea of dualbooting my computer (long before I actually got around to doing it) and I double checked on the drive, there was nothing on it.

So I installed GParted live USB, ran it, formatted the NTFS OS2 partition into ext2 format and rebooted computer.

Now I get the following error from grub:

error: file '/boot/grub/i386-pc/normal.mod' not found.
grub rescue>

Obviously the "grub rescue" bit is a command prompt, but other than that, there's nothing I can do with the computer.

What can I do to get my computer back?

Many thanks!

Luke

share|improve this question

marked as duplicate by Radu Rădeanu, aquaherd, Alvar, Kevin Bowen, Eric Carvalho Jun 17 '13 at 2:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Have you tried to repair grub as per this? askubuntu.com/questions/88384/… –  fossfreedom Jun 16 '13 at 10:26
add comment

1 Answer 1

Whenever my GRUB breaks, I do the following to reinstall GRUB:

Prepare a bootable USB Stick (e.g. with unetbootin) with the current Ubuntu image or burn a DVD. Now boot from it into a live system and open a terminal. Then type

sudo grub-install /dev/sda
sudo grub-update

This assumes /dev/sda is your primary hard drive and you want to install GRUB there ;). Afterwards you should have a working GRUB again.

Note: Sometimes GRUB fails to detect other operating systems. Mount the relevant partitions with Nautilus by simply clicking on them, if they don't show up in terminal, while executing grub-update.

share|improve this answer
add comment

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