-   Linux - Newbie (
-   -   I have lost my grub boot loadier (

dean20007 06-09-2006 01:37 AM

I have lost my grub boot loadier
Hi folks

This is probably a schoolboy mistake I have made but I successfully set up Ubuntu on a seperate partition and it worked fine. At boot time I was able to choose between booting into XP or Ubuntu. However I dedcided to set up another copy of XP on another partition and now at boot time I only get the option to boot into either of the XP partitions. Using Martititon Manager, I can see the Ubuntu partition is still there but how do get access to it?


LzW-x 06-09-2006 02:17 AM

I don't know if it can be done from windows so you might have to use a linux live cd to run grub!

run the grub command from the terminal as root or go su command first! With grub running, you can use the install or setup command to reload it into the MBR...

help lists the commands available while grub is running in the terminal.

rylan76 06-09-2006 02:29 AM

You'll need to use your distro's first CD (usually, that's the bootable one) and get into some kind of rescue console. With FC3, this can be done by inserting the CD#1 and starting up the system, or rebooting from XP. Then, at a certain point in the FC3 install cycle, you type

linux rescue

and a limited shell comes up with your Linux partition already mounted. You then change to this partition's /boot directory (if this is on a seperate partition for you, I don't know exactly what you'll do - mine is all on one physical partition) You then startup grub's console by doing


at the commandline. Then, to get the capability back to boot on choice any of my operating systems (either XP or FC3) I do at the grub console:

grub> root (hd0,1)
grub> setup (hd0)

And then I quit and reboot. When my system starts up afterward, I have the grub screen back and can choose which operating system to use...

Hope this helped!

syg00 06-09-2006 02:51 AM

Windows always over-writes the MBR. No doubt "for your convenience" ...

Start here.
When you get grub back, your XP selection will give you the (new) boot.ini to still seleect either XP install.

All times are GMT -5. The time now is 07:11 PM.