Ubuntu 12.04 LTS boots only from USB

This is classic but I bet it is going to be hot.

When
After installing Ubuntu 12.04 LTS as the only Operating System using a USB stick.

Issue
The computer boots only when the USB drive ( used to install Ubuntu 12.04 LTS ) is plugged in.

Why
The boot manager Grub is written in the USB stick but not in the Hard Drive.

Solution
Install Grub on the Hard Drive

Assumptions
On this scenario I assume that the Hard Drive ( containing the OS ) is /dev/sda and that the boot order on BIOS contains this HD.

To find out the boot order for sure check the BIOS settings. To enter BIOS follow the instructions on the splash screen --hit one of these keys F2 , F12 , DEL , ESC , F10 while booting.

To figure out the name of the hard drive containing the OS hit Dash Home - Type "Terminal" -Fire up a Terminal and list your Hard Drive(s) Partitions with fdisk.
$ sudo fdisk -l


How
To Install Grub on /dev/sda
$ sudo grub-install /dev/sda
$ sudo update-grub


Now check
$ sudo grub-install --recheck /dev/sda
Remove the USB stick and reboot.
$ sudo shutdown -r now


Done!



ubuntu 12.04 LTS boots only from USB