Iv just installed windows xp pro onto my debian box and as i had so much trouble of finding out how to do it, here is a howto.
no. 1) Make sure you have your rescue CD, I think you can download it from your distros web site
no. 2) Type in su in any command line and type your root password. Then run fdisk and copy + paste it into a text editor, then print it.
no. 3)If you have not already, create a partition just for windows, it needs to be a fat32 file system. For how to create a partition, search this website for "creating new partitions"
no. 4)Install Windows on your set aside partition
no. 5)After you have totally installed it, the boot from your rescue disk and at the prompt type in "rescue" or press help
no. 6)Once you get to the command prompt, type in
mkdir /mnt/sysimage
chroot /mnt/sysimage
(DON'T WORRY IF YOU GET AN ERROR MESSAGE)
/sbin/grub-install /dev/?
(WHERE ? IS YOUR ROOT PARTITION)
FIND THIS OUT BY LOOKING AT YOUR PRINTOUT AND SOMEWHERE IT SHOULD SAY SOMETHING ALONG THE LINES OF
Device Mounted On
/DEV/HD? /
Thats the hard part done.
no. 7) Reboot your system and you should get a friendly looking grub welcome screen. If not, something gone wrong. Repeat steps 5 - 6
no. 8) Go to your favorite command line, type in su and then your password, and then open your favorite text editor
no. 9) In the text editor, open
/boot/grub/menu.lst
or
/boot/grub/grub.conf
and then at the bottom type in something like this -
title Windows XP Pro
root (hd0,0)
makeactive
chainloader +1
For title, you can call it whatever you want eg Windows ME or Win 2000
For root, hd0,0 refers to the boot drive. It gets a bit confusing here. (hd0,0) means hda1.(hd1,1) means hdb2, and so on. So if your vfat (windows) partition is at hda3, instead of typing (hd0,0) you would type (hd0,2) If you dont understand or/and are a
, then just post a reply, ill be happy to help.
Type in the rest, and walla!
no.10) Reboot your system and see whether it works!!!!!!!!!!!!!!!
Again, if you are a
or dont understand anything, please reply below
Ilya