GRUB Installation Via Ubuntu Live CD

Boot from Ubuntu Live CD until the desktop appear.
Open terminal
$ sudo grub

We will enter to the GRUB prompt

grub>

After that we must look for the location from the first time GRUB installation.

grub> find /boot/grub/stage1

the result is location where the GRUB was installed, ussualy is like this:

root(hdx,y)

Where x and y is number. Type in the GRUB prompt accordance with result, for example if the result is root(hd0,0), so we must type:

grub> root(hd0,0)

Install GRUB to hardisk MBR with this command:

grub> setup(hd0)

Why hd0? I was assumed our harddisk is primary. There is some info that showing to us if GRUB was well installed on MBR. Done, we must quit from GRUB prompt:

grub> quit

Now it’s time to add boot options for other OS, for example Windows XP.

Open terminal and then
$sudo gedit /boot/grub/menu.lst, then add this following line :

title Windows XP
root (hd0,1)
makeactive
chainloader +1

Pay attention to line root (hd0,1), it means, Windows partition is in second partition (showing by number 1) and on Primary Harddisk (showing by number 0). Change that value according to condition that exist.

Back to terminal:
$sudo reboot

Now we can see GRUB again ^_^

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.