I would suggest to first boot into Ubuntu, and then reinstall Grub from Ubuntu.
You should be able to boot into Ubuntu with either of the following methods.
1) Hold down the "shift" key during boot up (or press "esc" during the count down) to get to the Grub Menu.
If you have an entry for Ubuntu on the Grub menu, use it.
If you don't have an entry for Ubuntu, press "c" to get to the grub shell. Type:
Code:
insmod ext2
search -f --set /vmlinuz
probe -u --set=uuid $root
linux /vmlinuz root=UUID=$uuid ro
initrd /initrd.img
boot
2) Boot from the Live CD. Open a terminal and type
Code:
sudo mount /dev/sda1 /mnt
Here /dev/sda1 needs to be replaced by the device name of the Ubuntu partition.If you don't know the device name you can usually figure it out via "sudo fdisk -lu"
Code:
cd /mnt/boot/grub
sudo mv grub.cfg grub.cfg.old
gksudo gedit grub.cfg
This will open a blank file.
Type this into the file
Code:
default=0
menuentry "Ubuntu" {
insmod ext2
search -f --set /vmlinuz
probe -u --set=uuid $root
linux /vmlinuz root=UUID=$uuid ro
initrd /initrd.img
}
Save the file. Reboot. You should get a Grub menu with just one entry and you should be able to boot into Ubuntu.
Once you booted into Ubuntu, you could try to undo your changes, or you can just reinstall Grub from scratch:
Code:
sudo apt-get purge grub-pc grub-common
sudo apt-get install grub-pc grub-common
sudo update-grub
Bookmarks