[ubuntu-in] Unable to install GRUB

Manish Sinha manishsinha.tech at gmail.com
Fri Mar 6 11:07:10 GMT 2009


Ankur Lachhiramka wrote:
> heyy no problem for that. There is a very standard process for this problem...
> U gota insert the Ubuntu cd again and select the option "try Ubuntu
> without making any change to ur pc" this will get in ubuntu in trail
> mode.
> then u gota start the terminal and then type some commands...
>   
The commands are:

1) Try to mount the partition where you have installed ubuntu, hope you 
know by its number, let it be sdax

$ sudo mount   /dev/sdax   /mnt

2) chroot into this directory

$ sudo chroot /mnt

3) Now open grub inside the chrooted environment

$ grub

4) Try to find where GRUB is installed

grub> find  /boot/grub/stage2

5) You would get some output like (hdx,y) which means GRUB is on hard 
disk hdx and partition number y

Now type the two commands

grub> root  (hdx,y)


grub> setup (hdx)

And its done.....

hdx should come to hd0 in most of the cases. Please ignore "$" and 
"grub>" wen typing the commands, they are just shell and grub prompts

Regards,
Manish



More information about the ubuntu-in mailing list