Ubuntu – How to manually install GRUB?

grub2installation

I was installing Ubuntu 11.10 and the bootloader install failed. I tried installing it again but it didn't work so I want to know how to install grub manually.
Thanks.

Best Answer

I think this technique will not work. Because you don't know in which position you installer crashed. Check your disk first.

If you want to install grub manually then: Login using livecd. Open terminal, login as root:

sudo -i

find out your linux disk :

fdisk -l

mount it:

mount /dev/sdaX /mnt

Recover:

grub-install --root-directory=/mnt /dev/sda

For more information http://shantanucse.blogspot.com/2011/10/how-to-recover-ubuntu-904-or-higher.html