You have to reinstall grub boot loader to fix this. Reinstalling grub can be done in 4 easy steps.
Please follow these steps to reinstall grub boot loader
- Boot your machine using Ubuntu Live CD
- After the machine is booted and ready, Open a terminal window
- Type sudo grub
- Now type find /boot/grub/stage1
- You will get some output like (hd0,4). Yours might be different. But make sure you enter it same as it appears in the next step. For ex if your output is (hd0,2), enter root (hd0,2) in the next step
- Enter root (hd0,4)
- Enter setup (hd0)
- Enter quit
Reboot the machine, Now your machine should boot using grub boot loader.
Have fun with ubuntu.
NOTE: While you enter grub> setup (hd0) your output might look like the following:-
setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,4)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.