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

This question already has an answer here:

I've been using Ubuntu to for years now, I'm an EE and love the system. This week I was having trouble with Ubuntu so I decided to do a fresh install parallel with Win XP. The install crashed midstream and now I can not boot at all. I believe all I need to do is repair the grub.cfg file, or maybe another file?

So, I booted from my liveCD and went into the file structure and everything seems intact, However, the grub.cfg file looks like it's a mess. I don't remember how to gain access to GRUB via permissions. I did it once before a year ago.

Any one with any ideas?

share|improve this question

marked as duplicate by chaskes, Braiam, Amith KK, Seth, belacqua Feb 23 '14 at 5:53

This question was marked as an exact duplicate of an existing question.

You're an EE? You might be interested in Electrical Engineering – Seth Feb 23 '14 at 4:41

These are the steps I would suggest.

  1. Boot from live CD.
  2. Locate the previous Ubuntu partition and mount it.
  3. chroot into the mounted partition.
  4. Run the grub-install command.

Exact commands may vary depending upon your partitions and directory structure.

share|improve this answer

You could just install Ubuntu again. The installer will ask you if you want to overwrite Ubuntu and install alongside Windows; you should choose that option. It will install Grub properly.

If you simply decide to repair Grub now, you will probably wind up with a half-baked Linux installation.

share|improve this answer

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