Here is a quick guide how I proceeded with 100% success on ATA hard drives.
1. Format the USB stick, I used HP USB Format tool, because XP format was reported as incorrect in GRUB.
2. Install GRUB MBR on the stick, the quickest way I found is by GRUBINST_GUI
3. Get the latest GRUB4DOS
and copy GRLDR to the USB root.
Create MENU.LST in USB root
color black/cyan yellow/cyan
title Phase 1 WinXP Text Mode Setup
map --read-only (hd0) (hd1)
title Phase 2 WinXP GUI Mode Setup
map (hd1) (hd0)
This way the default entry is GUI mode, TXT mode must be selected manually. With these GUI entries XP can be installed and booted later from another partition on the hard drive, not only from the first.
4. Backup your current BOOT.INI
and in the XP setup folder \I386
winnt32 /makelocalsource /noreboot
after it's finished restore BOOT.INI
5. Copy two new folders in the USB stick root - $WIN_NT$.~BT
6. In \$WIN_NT$.~BT
"regedit /s %systemdrive%\windows\system32\undoUSBWP.reg"
Signature = "$Windows NT$"
;Handy macro substitutions (non-localizable)
REG_SZ = 0x00000000
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
REG_MULTI_SZ = 0x00010000
REG_SZ_APPEND = 0x00010008
REG_EXPAND_SZ = 0x00020000
If you wish you can preserve your USB storage drive letter keeping the relevant entries in migrate.inf. Note your current USB drive letter and find the line (mine is set to U)
, I found that it's not needed. [Strings] must be present.
Windows Registry Editor Version 5.00
Signature = "$Windows NT$"
and place them in $WIN_NT$.~LS\i386
8. Copy TXTSETUP.SIF
to root of USB stick. Delete BOOTSECT.DAT
(necessary?) and rename SETUPLDR.BIN
, or modify the relevant entries in MENU.LST
9. Add the following lines to TXTSETUP.SIF
hiveOEM.inf = 100,,,,,,_x,,3,3
undoUSBWP.reg = 100,,,,,,_x,2,0,0
AddReg = hiveOEM.inf,AddReg
10. If you use unattended mode for the setup make sure you delete the whole [Unattend] section, otherwise you won't be able to use System Restore and SETUP will not prompt on which partition to install.
I used BTS mass-storage drivers pack, with KTD option and Nlited fully unattended installation, to keep Nlite options copy the relevant entries from the original WINNT.SIF to the new one, don't forget to delete the whole [Unattended] section. [Data] section do not modify except UseSignatures="no". Also copy $OEM$ to \$WIN_NT$.~LS\i386 and OEM (BTS scripts) to the root of USB stick.
Thanks a lot to porear
All credits for the most important part- how to write- protect the USB flash go to cdob
, many thanks
edit: Forgot to mention that removing write-protect mode after GUI is finished is also done in steps 6 and 7.
edit2: some typos corrected, txtsetup.sif
Edited by ilko_t, 13 May 2007 - 08:43 AM.