Windows 2000/XP/2003 PXE Files
When installing Windows 2000/XP/2003 via RIS (or RAM loading a Windows XP/2003 based WinPE) the files startrom.n12, setupldr.exe, ntdetect.com and winnt.sif are required. The files used should be specific to the operating system being installed - e.g. setupldr.exe from Windows 2000 source should be used to install Windows 2000. Unfortunately it is not possible to install Windows XP from grub4dos (or syslinux 3.81/3.82) if using XP source files - in this case Windows 2003 (SP1 and R2) files can be used (see here).
- startrom.n12 - Windows PXE boot file (in this guide startrom.n12 is chainloaded via PXELinux). This file contains an embedded setting which loads ntldr (NT loader) from the tftp root directory (C:\PXE\tftpboot\ ). File must be extracted from .cab archive i386\STARTROM.N1_
- setupldr.exe - when installing via RIS this file replaces the normal NT loader ntldr. It is loaded via startrom.n12 and must be renamed as ntldr and located in the tftp root directory (C:\PXE\tftpboot\ ). This file contains embedded settings which load the files ntdetect.com and winnt.sif. File must be extracted from .cab archive i386\SETUPLDR.EX_
- ntdetect.com - this file is loaded by ntldr and gathers basic information about the computer's hardware as reported by the bios, before passing control back to ntldr.
- winnt.sif - configuration file used to locate the Windows source files on the host PC. This file is refered to as an answer file and can be used to fully automate a Windows install (e.g. will automatically enter product key, username, etc).
Note - due to a bug (?), when installing Windows 2000 the file C:\PXE\tftpboot\ntdetect.com will need to be renamed as pxelinux.0ntdetect.com and C:\PXE\tftpboot\winnt.sif will need to be renamed as pxelinux.0winnt.sif (see (RIS) Install Windows 2000 section)
It is not possible to add options to install more than one operating system (e.g. Windows 2003 and XP) via RIS without renaming ntdetect.com, setupldr.exe, startrom.n12 and winnt.sif. The files must be renamed as they need to be located in the C:\PXE\tftpboot\ directory and setupldr.exe from Windows XP source cannot for example coexist in the same directory as setupldr.exe from Windows 2003 source. Unfortunately if the files are renamed the embedded settings within startrom.n12 and setupldr.exe will need editing in order to load the renamed files. Assuming that ntdetect.com, setupldr.exe, startrom.n12 and winnt.sif have already been copied to C:\PXE\tftpboot\ -
- Rename startrom.n12 using a filename with a .0 file extention - e.g. xp001.0.
- Rename setupldr.exe using a 5.0 character filename - e.g. xp001. Note - the new filename must contain exactly five letters/characters and must not have a file extention
- Rename winnt.sif (or pxelinux.0winnt.sif) using a 5.3 character filename - e.g. xp001.sif (or pxelinux.0xp001.sif).
- Rename ntdetect.com (or pxelinux.0ntdetect.com) using a 8.3 character filename - e.g. xp001ntd.com (or pxelinux.0xp001ntd.com).
- Download gsar and copy it to C:\PXE\tools\ directory
- Edit xp001.0 and replace the ntldr text string with xp001 - this will change the embedded settings and will load C:\PXE\tftpboot\xp001 (renamed setupldr.exe). Open a command prompt and enter the following command -
C:\PXE\tools\gsar.exe -i -sntldr -rxp001 C:\PXE\tftpboot\xp001.0 -o
- Edit xp001 and replace the winnt.sif text string with xp001.sif. Open a command prompt and enter the following command -
C:\PXE\tools\gsar.exe -i -swinnt.sif -rxp001.sif C:\PXE\tftpboot\xp001 -o
- Edit xp001 and replace the ntdetect.com text string with xp001ntd.com. Open a command prompt and enter the following command -
C:\PXE\tools\gsar.exe -i -sntdetect.com -rxp001ntd.com C:\PXE\tftpboot\xp001 -o
Add a menu entry -