The entire process is splitinto three basic steps:
Backup NTLDR and NTDETECT.COM
1) In Windows XP, open Windows Explorer and locate NTLDR, NTDETECT.COM & boot.ini in the root directory of your boot drive. These are usually Hidden files, so you'll have to adjust your Explorer options to show them.
2) Copy these files to a blank, formatted floppy, or other location that will be available after the Win2K install.
Install Windows 2000
1) Boot your computer from the Win2K CD and continue with the installation.
2) Proceed with the install. Install Windows 2000 to a different partition than XP is installed in.
3) Complete the Windows install. Allow the computer to boot into Windows 2000.
Repairing the Windows? XP Boot Loader
When the Windows 2000 installation is done, boot the computer into Windows 2000, not Windows XP.
1) Insert the floppy disk that you used earlier (or access the location you used), to backup NTLDR and NTDETECT.COM
2) Copy NTLDR and NTDETECT.COM back to the root directory of your boot drive. Again, you may have to adjust your Explorer Options.
3) Now edit the boot.ini file from WinXP installation.
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
Copy the lines below [operating systems] from above into the latest boot.ini file at the end on a new line.Save the file & reboot.
Now, you'll be able to restart your computer and boot into Win 2K or Win XP. This procedure is necessary because the Win XP version of NTLDR and NTDETECT.COM will boot Windows 2000, but not vice-versa.