PDA

View Full Version : Dual boot


Daniel114
12th July 2007, 12:26 AM
Hello People.

I recently made teh mistake of formatting a windows drive which unfortunatley (although not the c drive) means I can no longer boot into XP (which is untouched)

So I'm wondering... I have my Fedora set up as I want it, but need to reinstall windows. I remmember last time installing windows after Fedora over wrote the grub boot, therefore I had to reinstall fedora again. So I'm wondering if theres a way around this? I was thinking I could use this oppertunity to also install Ubuntu (as I've never tried it and quite curious)

Therefore Im assuming Ubuntu uses the grub boot? so can I install xp then install ubuntu to get grub back?

dan

bob
12th July 2007, 01:05 AM
Yes, you can install Windows and then Ubuntu which should pick up your Fedora install as well as Windows. Ubuntu's grub insists on being installed on the mbr so I'd let it, especially since a Debian distro such as Ubuntu does the best job of handling other distros and multiple boots.

Alternatively, if you simply wanted to install windows and then reinstall grub without Ubuntu, try this:

1. Boot off the 1st Fedora CD or use the Fedora Rescue CD
2. At the boot prompt type 'linux rescue'
3. The rescue mode will find the fedora installation
4. Type 'chroot /mnt/sysimage' (without quotes)
5. Type 'grub-install /dev/hda' (to install Grub to the MBR of the 1st HD)
6. Restart and you should get the boot menu

Daniel114
12th July 2007, 01:07 AM

Thanks bob that is exactly what I was after.

I seem to remmember last time trying the above to get grub back, but to no avail (Im certain my rig is cursed), however I might give that another go first.

Thanks again,

Dan