Hi there,
I dual boot XP with Fedora + rawhide, and am planning on reinstalling XP. I could just wait until Fedora 4 test 1 comes out and just reinstall everything, but might go ahead and try windows now.
Upon saying all of that, if I do reinstall XP, what needs to be done to reinstall grub to the MBR like it is now?
Mike Chambers wrote:
Hi there,
I dual boot XP with Fedora + rawhide, and am planning on reinstalling XP. I could just wait until Fedora 4 test 1 comes out and just reinstall everything, but might go ahead and try windows now.
Upon saying all of that, if I do reinstall XP, what needs to be done to reinstall grub to the MBR like it is now?
These are my notes for reinstalling grub, from a few months back. Hopefully they are still current!
1. Boot from first Fedora CD or Rescue CD 2. At boot prompt: linux rescue 3. Then: grub-install /dev/hdxx (using the device you want grub to install to)
Joel Rittvo
On Wed, 2005-02-16 at 20:00 -0500, Joel Rittvo wrote:
These are my notes for reinstalling grub, from a few months back. Hopefully they are still current!
- Boot from first Fedora CD or Rescue CD
- At boot prompt: linux rescue
- Then: grub-install /dev/hdxx (using the device you want grub to install to)
If it's going to the MBR, then it would be the first HD even if Fedora is on the 2nd HD? (does it matter which drive /boot is on?)
On Wed, 2005-02-16 at 19:06 -0600, Mike Chambers wrote:
On Wed, 2005-02-16 at 20:00 -0500, Joel Rittvo wrote:
These are my notes for reinstalling grub, from a few months back. Hopefully they are still current!
- Boot from first Fedora CD or Rescue CD
- At boot prompt: linux rescue
- Then: grub-install /dev/hdxx (using the device you want grub to install to)
If it's going to the MBR, then it would be the first HD even if Fedora is on the 2nd HD? (does it matter which drive /boot is on?)
Not in the slightest. That's what the root (hdx,y) does. The first bit tells grub what device to use, the second tells which partition. That's why each entry in grub needs a root() entry.
You could even install the boot loader onto both your disks in case something happens to the MBR on one. For example, I have a SATA disk and a normal ATA disk on my system. Because the mother-board treats the SATA disk as a special type of disk, I can boot from with my primary HDD or the SATA device. I've got grub install on the MBR for both, so it doesn't matter which one I boot off.
Rodd