1. Boot Ubuntu Live CD
2. Open Terminal
3. sudo -i
4. mount /dev/your_ubuntu_partition /mnt
5. grub-install --root-directory=/mnt/ /dev/your_HDD_Device
6. shutdown -r now
7. if your menu doesn't correct
go to synaptic and then install grub-pc for reconfig your boot menu again
and restart for finish.
8. if you have BSD OS. /boot/grub/grub.cfg require editing. see example on referlink
referlink : http://www.gggcomputer.com/index.php?topic=2388.0;wap2