|
Reinstalling GRUB on the root Partition |
|
|
|
|
Written by Trevor Gontz
|
The following instructions are for restoring / reinstalling GRUB on the root partition of a Linux installation. Note: This is NOT the typical location for GRUB as it is usually installed on the MBR (Master Boot Record). This method is only for those who are already using or plan to install GRUB or other bootloader on the MBR. (This would typically be for booting multiple Linux installations on the same system.)
1. Boot from a Live CD, like Ubuntu Live, Knoppix, Mepis, or similar. 2. Open a Terminal. Go SuperUser (that is, type "su"). Enter root passwords as necessary. 3. Type "grub" which makes a GRUB prompt appear. 4. Type "find /boot/grub/stage1". You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out for the following lines. 5. Type "root (hd0,3)". 6. Type "setup (hd0,3)". This is key. Other instructions say to use "(hd0)", and that's fine if you want to write GRUB to the MBR. If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,3)". 7. Type "quit". 8. Restart the system. Remove the bootable CD.
|
|
Last Updated ( Friday, 15 February 2008 )
|