Labels

Friday, July 25, 2008

Recovering Linux grub after Windows Installation

This will use the Desktop/Live CD to install Grub into your MBR (Master Boot Record). This option will overwrite your Windows Boot Loader It is OK to do this, in fact that is the goal of this how to (in order to boot Ubuntu)

1. Boot the Desktop/Live CD.
2. Open a terminal (Applications -> Accessories -> Terminal)
3. Start grub as root with the following command :
sudo grub

4. You will get a grub prompt (see below) which we will use to find the root partition and install grub to the MBR (hd0,0)
grub>

5. Type the following and press enter:
find /boot/grub/stage1


6.Using this information, set the root device:
grub> root (hd0,1)

7.Setup Grub:
grub> setup (hd0)

8.Exit Grub:
grub> quit

9. Reboot (to hard drive). Grub should be installed and both Ubuntu and Windows should have been automatically detected.


This is taken for the ubuntu help.
You can recover any Linux (I think so) using the ubuntu Live CD,I have recovered BOSS Linux with Ubuntu..
Thank You.