2

I installed ubuntu 11.04 alongside windows 7 on a partition that previously had ubuntu 10.04. It installed perfectly but on completion, after the reboot, the boot menu shows just 'memtest' and windows 7 as options - no option for loading ubuntu.

2
  • Assuming that ubuntu is actually installed, you should be able boot into the live cd and then rerun the autoconf for grub. (Does anyone know how to run that autoconfig script?)
    – user606723
    Jul 22, 2011 at 20:40
  • How did you install? This is a known issue with Wubi installs when the user hits SKIP during the install.
    – bcbc
    Jul 23, 2011 at 5:04

4 Answers 4

1

(I expect this question will be moved to Ask Ubuntu, but I'll throw this answer on while we wait).

First, boot to a live cd to make sure your installed Ubuntu partition is still there (I fully expect it to be).

Second, (assuming the 1st step showed you that you still have an Ubuntu install) look at your partition table and your grub.conf file - make sure it's the grub.conf file of your installed system, not the live cd :) You may just have to manually write in the line for your Ubuntu partition. It's odd that the generated grub.conf file would be broken.

0

On the bootloader, type "c". Then type:

title [x]
root (hd[y],[z])
makeactive
chainloader +1 

Replace [x] with the visible name (like 'Ubuntu 11.04'), [y] with the hard drive number (probably 0), and [z] with the partition (probably 3).

0

In case you have more than one hard drives, you could have installed the new bootloader on the other (or one of the others, if you have more than two) drive. Changing the boot device priority can grant you access to that bootloader.

If that is not the problem, you should try restoring grub following this tutorial http://ubuntuguide.net/how-to-restore-grub-2-after-reinstalling-windows-xpvistawin7

(i know that its title says "after installing windows" but , of course, the steps used there are just as good for reinstalling grub after any problem)

0

If you've got a live CD, you can try the following command out in the terminal after choosing Trying Ubuntu:

sudo apt-get install grub //firstly install grub
sudo grub //launch it
find /boot/grub/menu.lst
root (hdx,y) //this depends on where you install you ubuntu
setup (hdx) //now install the grub into the mbr
quit

restart if you load into the grub prompt

root (hdx,y) kernel /boot/vmlinuz--generic ro root=/dev/sda7 //sda7=(hd0,6), replace it with your own
initrd /boot/initrd.img-
-generic
boot

no need to remember the kernel version, just use tab to help you

I've just done this to dual boot my win7 (on sda1) and ubuntu 11.04 (on sda5)
It will be helpful if you post your /boot/grub/menu.lst here.

Well, without the Live CD try to search for grub4dos to boot ubuntu with the windows bootloader

You must log in to answer this question.