Duel booting Windows XP with Linux Fedora
Note if you choose to install grub in the boot partition
/boot rather than in the root
/ partition during the Fedora installation you will
not be able to reinstall windows xp without deleting the contents of the /boot partition.
For the newbie backing up the /boot partition and restoring it would most likely be a real problem. For me it's no big deal these days since i am comfortable with the command line.
So for convenience and ease of use it's best not to use a boot partition with any Linux installation when duel booting Windows XP. See stoat's thread
HOWTO Reinstall XP Without Destroying Fedora When the XP CD Balks http://forums.fedoraforum.org/showthread.php?t=167302 for details.
When installing Fedora choose the option to install grub on the root partition if you are going to use a 3rd party boot loader or the method described below.
How to use bootpart
The following process allows one to use the windows boot loader to point towards the partition where grub is installed.
If you need to re-install Microsoft Windows again as is often the case you will have to re-edit the boot.ini file so it points towards your Linux installation (where grub is installed).
After you have installed Fedora, boot into Microsoft Windows and follow the instructions below:
The first step is to boot up Windows XP and download bootpart
http://www.winimage.com/bootpart.htm. Unzip bootpart and place the contents of the unzipped file into a new folder titled "bootpart"' (without the quotes) in the C: directory.
Next place the new bootpart folder in your c: drive
Go to the command prompt (start>All Programs>Accessories>Command Prompt> and type:
(hit the enter button)
the screen will look like this:
Code:
C:\Documents and Settings\Jonathon>cd:\bootpart
The goal is use bootpart to add Fedora or some other Linux distributions to your Windows XP boot.ini file so that the Windows boot loader will point to grub and thus allow you start your Linux installation.
To determine the number of the Linux partition where grub is installed:
type at the prompt :
C:\bootpart>
This will display the partition layout and their respective numbers. Thanks for that aphid69. I did notice that in the read me.txt but since i wrote the original 'how to' back in 2007 i had forgotten about it until now.
NOTE that for
Microsoft Windows and
bootpart ,
0 (zero) refers to partition number
1 (one) of the of the hard disk in question.
Example:
hd0 ( for the Windows Boot Loader, bootpart as well as grub legacy [not grub2]) =
sda1
In most cases, the windows C: drive would the first partition (sda) which is really partition zero (hd0) as far as Windows Boot Loader and bootpart are concerned.
If grub is installed on the Linux root partition and this is partition number 2 (next to the windows partition) then for the Windows boot loader it is identified as partition number 1.
You need to get the partition number right otherwise Fedora will not boot. NOTE you could always use the supergrub boot disc
http://www.supergrubdisk.org/ to boot fedora if something goes wrong.
Now that you have the number of the Linux partition with grub on it (preferably the root partition as opposed to a Linux boot partition) proceed as follows:
Code:
bootpart 1 C:\BOOTLINX.BIN Linux Fedora 13
Press the enter button and wait for the command to complete. That's it.
Jonathon