This will restore grub if you already had grub installed but lost it to a windows install or some other occurrence that erased/changed your MBR so that grub no longer appears at start up or it returns an error.
(This how to is written for Ubuntu but should work on other systems. The only thing to take note of when you see “sudo” is, you have to enter the following command at a root terminal.)
Boot into the live Ubuntu cd. This can be the live installer cd or the older live session Ubuntu cds.
When you get to the desktop, open a terminal and enter.
This will get you a “grub>” prompt (i.e. the grub shell). At grub>. enter these commands
This will return a location. If you have more than one, select the installation that you want to provide the grub files.
View original post 94 more words