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.

I've installed GRUB as part of the Installation process of Ubuntu Server 13.04 LTS edition. This is the screen that I get after booting from my hard drive:

GRUB: Loading.
Welcome to GRUB!

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

I tried installing Ubuntu Server (after numerous installs) on my partitioned hard drive. I remember them as sda5 and sda6. The install was to dual boot with Windows 7. When I first install grub, I used the i386 iso, but after I found out that I could use the amd version to optimize, I installed that.

Now, grub has an error and I don't know what to do.

Almost all the help tell me to use a CD-ROM, but I used a flash drive. Now, I just want to either repair grub, or get rid of Ubuntu and grub entirely, as long as I can save my Windows7 partitioned on my sda1-3.

I'm very new, so step by step instructions help.

share|improve this question
    
Please clarify (for others): 13.04 or 12.04 LTS ? There is no 13.04 LTS. –  guntbert Aug 24 '13 at 12:23

2 Answers 2

You need to install grub2. For doing that you need a LiveCD of Ubuntu. Then:

1- Boot with your LiveCD.

2- Open a terminal.

3- Determine the partition where your Ubuntu is. (let's say it's sda6)

sudo fdisk -l

4- Mount the drive with

sudo mount /dev/sda6 /mnt/

5- Intall grub as root with

sudo grub-install /dev/sda --root-directory=/mnt

6- Reboot your system.

share|improve this answer
    
I used a flash drive. Will that be my Live CD? –  Katastrophi Aug 24 '13 at 1:51
    
I tried, but it says permission denied. –  Katastrophi Aug 24 '13 at 3:27
    
The last command must be ran as root. I'm updating the answer. –  0R10N Aug 24 '13 at 11:15

There is a very easy and interactive way to fix the grub problem.. Using this method it will start reading all your boot partition and also you will be able to use any operating system. All operating system installed in your computer will be displayed in grub menu.

You have to follow these very simple steps..

  1. Boot from LiveCD or your bootable USB, Select 'Try Ubuntu'.

  2. Install boot-repair ( a good s/w to fix grub )

    2.1: $ sudo add-apt-repository ppa:yannubuntu/boot-repair

    2.2: $ sudo apt-get update

    2.3: $ sudo apt-get install -y boot-repair

    2.4: Run boot-repair from your system or type: (boot-repair &)

  3. When started select Option 'Recommended Repair' from out of two options:

    'Recommended Repair' & 'Advanced Options'.

  4. Follow very easy onscreen instruction

  5. Reboot your system and your menus should appear on the grub menu.

Reply if something goes wrong..

share|improve this answer

Your Answer

 
discard

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.