How do i restore GRUB on a dual boot (vista/ubuntu) system?

Associate
Joined
28 Oct 2002
Posts
1,510
Hi

I installed Ubuntu 8.04 but then had to reinstall vista so my GRUB menu no longer appears

i have tried a GRUB live CD but can't seem to boot from it - is there anyway i can restore grub from within Ubuntu if i can get that to boot form the CD?

thanks

Diss
 
Just out of curiosity.. Because I've never had to do that... What exactly do you have to do with the liveCD ?
 
when it boots you get various menus
not sure i can remember it all but it must have been fairly intuitive for me to be able to do it :)

i think there was a linux sub menu and under that a grub menu and under that something that fixes the MBR, then reboot (i think you may have to reboot into the live cd again first) and hey presto your grub menu is back

Diss
 
In short, boot into liveCD, mount your /boot partition, then run:
Code:
# grub
> root (hd0,0)
> setup (hd0)
> quit
and you're done. Don't forget to change the hd0,0 and hd0 to be relevant to the primary drive and boot parition. (and that they are indexed from 0.. /dev/sda is 0, /dev/sdb is 1 etc. so /dev/sda1 would be hd0,0)
 
In short, boot into liveCD, mount your /boot partition, then run:
Code:
# grub
> root (hd0,0)
> setup (hd0)
> quit
and you're done. Don't forget to change the hd0,0 and hd0 to be relevant to the primary drive and boot parition. (and that they are indexed from 0.. /dev/sda is 0, /dev/sdb is 1 etc. so /dev/sda1 would be hd0,0)

this is the manual way to do it with the Ubuntu live CD i assume?

Diss
 
Back
Top Bottom