You will have to use the repair console and run fixmbr or use the diskpart program. fdisk will not work for XP.
Google for: NT Lilo Boot Howto.
If you use the NT Loader that XP uses to boot into lilo, then if you decide to get rid of linux later, you will only have to delete a line that you added to c:\boot.ini.
Here are abbreviated instructions:
During setup, write the lilo bootstrap loader to your root partition. If linux is on another disk, then you sellect the mbr of the linux disk.
If you can enter a console screen just after this point, <ctrl><alt><F2> for some distros, then you can copy the boot-strap sector to a file on floppy disk. Suppose that you installed lilo to /dev/hda5.
First mount the floppy somewhere: mount -t vfat /dev/fd0 /mnt/floppy
Then copy the sector to a file: dd if=/dev/hda5 of=/mnt/floppy/linux.lnx bs=1 count=256
Unmount the floppy: umount /mnt/floppy
Boot into XP.
Change the attributes of c:\boot.ini: attrib -s -r -h c:\boot.ini
Add the line c:\linux.lnx="Linux 9.2" to the end of boot.ini
Change the attributes back: attrib +s +r +h c:\boot.ini
Now you are ready to finish the linux setup and boot into either XP or Linux. Good Luck!
Note: The name of the boot sector file is arbitrary. So is the description "Linux 9.2". Replace hda5 with the partition that you installed linux on.
Last edited by jschiwal; 02-14-2004 at 07:25 PM.