Install Windows XP from a usb stick

Last Modified: Fri, 26 Jun 2009 19:54:03 +0000 ; Created: Fri, 26 Jun 2009 19:54:03 +0000

I found a very useful guide for installing Windows XP from a usb stick. It's useful when you don't have a CD/DVD-ROM drive or you are testing a custom make iso installer and don't want to burn lots of discs.

http://www.vandomburg.net/installing-windows-xp-from-usb/

An alternative method can also be found at http://www.liliputing.com/2008/04/install-windows-xp-on-mini-note-usb.html

If you get the "NTDETECT failed" error it may mean that your USB stick has no partitions on it. This happened when I zeroed out a usb stick in Linux and then let Windows XP format the drive. Windows does not create partitions on removable usb stick drives and thus wrote the filesystem to the raw device with no partition table. It would boot, but BartPE could not load. This is also a common cause of a BIOS being unable to boot the stick. Many are hard coded to look for a primary partition (or some even a special 4th partition).

Here is how you can fix the usb stick drive:

  1. Gain access to a Linux system (System Rescue CD works in a pinch)
  2. Plug in the USB stick and erase it with dd if=/dev/zero of=/dev/sdX bs=64k
  3. Partition the USB stick with a single FAT16 (type 06) primary partition
  4. Mark the partition bootable (/sbin/cfdisk is a good tool)
  5. Safely remove the USB stick and plug it into the Windows computer that you are using to install Bart PE
  6. Format the USB stick per Windows recommendation
  7. Install Bart PE as usual
  8. The USB stick should now boot correctly