Put in LIve CD (Ubuntu install Cd using Try Ubuntu) get internet working (firefox gets online)
Open a terminal and copy and paste these, going to install grub2 (grub-pc) from 12.04 and then update
and upgrade system while there and check for broken packages.
I am using sda5 for this use your own install sda number.
Can get it by using this below in terminal
(lower case L above)
Copy and paste these now in terminal using your own sda# of Ubuntu Linux install in first copy and paste.
Code:
sudo mount /dev/sda5 /mnt
Code:
sudo mount -o bind /dev /mnt/dev; sudo mount -o bind /dev/pts /mnt/dev/pts; sudo mount -o bind /proc /mnt/proc; sudo mount -o bind /sys /mnt/sys
Code:
sudo cp /etc/resolv.conf /mnt/etc/resolv.conf
Code:
apt-get purge grub grub-pc
Code:
grub-install /dev/sda
Code:
dpkg --configure -a
Code:
apt-get update; apt-get upgrade
Code:
dpkg --configure -a
Code:
sudo umount /mnt/dev/pts; sudo umount /mnt/dev; sudo umount /mnt/proc; sudo umount /mnt/sys; sudo umount /mnt
Now reboot into hard drive and grub2 (grub-pc) from 12.04 should be in mbr of drive (first few sectors of drive where grub resides) and looking in your linux partition for boot files. (sda# your Ubuntu Linux install is in)
Bookmarks