How to Re-enable Grub Bootloader
By techmygeek
This is a brief tutorial on how to re enable the GRUB Bootloader for most of the linux distribution. If you have both linux and widows on your PC i.e you've enabled dual booting, and someday you found out your linux bootloader disappeared. What would you do? Well, here is a way to get out of this and just at your fingertip. The reason for this in most cases is that Windows might have wiped the Grub Bootloader from your PC usually due to a reinstall of the OS. The fact is your distribution of linux is still present but something went wrong with the bootlader, just follow these steps to re enable your bootloader.
1) Insert your LiveCD and reboot
2) Open a Terminal and type in the following commands:
sudo grub
root (hd0,0)
setup (hd0)
exit
The first command "sudo grub" is to take you where grub resides and also note that you must be an administrator or root user to issue the "sudo" and "root" commands. The second command "root (hd0,0)" works on the grub file and (hd0,0) means you're working on the first hard disk and the first partition where the bootlader resides in most case by default. So if you installed grub to another location during previous installation, then adjust as appropriate. The third command "setup (hd0)" makes grub become active again. and the last command "exit" takes you out of the terminal. Remove the LiveCD and reboot your PC again and by now, you should have the bootlader and bootmenu back in place.
Comments
No comments yet.