Booting Windows PE from a USB flash drive

This content is 18 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

Something that I’ve been playing around with for a while now is booting Windows Preinstallation Environment (Windows PE) from a USB flash drive and a few weeks back I finally found enough time to have a proper look at this and make some progress.

There’s lots of anecdotal evidence of success (or otherwise) on the ‘net, but because Microsoft restricts access to Windows PE, many people are using Bart Lagerweij’s BartPE as an alternative. I do have access to Windows PE and specifically wanted to get this working using the Microsoft version. Some people (e.g. Niko Sauer and Dag at have done similar things with Linux variants such as Knoppix.

It seems that not every USB flash drive is capable of acting as a boot device and not every PC BIOS supports USB boot. If there is no BIOS support, then it’s just not going to work (I think USB 2 is also a prerequisite). It’s also unlikely that a USB stick will work as shipped from the factory – it will need a boot partition to be (re)written and the easiest way to do this is with a USB disk format tool.

I got a Dell Latitude D600 to boot MS-DOS last year using a Dell 128MB USB flash drive (which is a rebadged Lexar Digital Film device) but didn’t get much further because Windows PE was too large to fit on the device. More recently, I’ve been using a 256MB SanDisk Cruzer Mini that I bought from for £9.99. I’ve use this to successfully boot an IBM Thinkpad T40 and a Compaq Evo D510SFF but can’t test on the Fujitsu Siemens Lifebook S7010D that I use for work because I don’t have access to the BIOS (thanks to my employer’s corporate information systems administrators).

Here’s my process for taking a USB flash drive from new to booting Windows PE:

  1. Check that the PC BIOS supports booking from USB-attached removable media and enable this.
  2. Download and install a USB flash drive format utility – I used the HP USB disk storage format tool v2.1.8 (SP27608) but alternatives include the Dell USB memory key utility revision (R69131) and Martin List-Petersen also recommends MBRTool, which formats a USB flash drive in hard disk mode and installs a FreeDOS kernel (with FAT32 support); however he also reports that it seems to have trouble with USB keys of 256MB or larger.
  3. Format the USB flash drive with a FAT16 file system, including ability to work as an MS-DOS startup disk and with quick format deselected.
  4. Perform a test boot into MS-DOS using the USB flash drive.
  5. Download BootPart and copy this to the USB flash drive (I used v2.60).
  6. Copy a Windows PE installation that is known to work from CD/DVD to the USB flash drive.
  7. Rename the \i386 folder to \minint.
  8. Copy from \minint to \.
  9. Copy setupldr.bin from \minint dir to \ and rename to ntldr (no extension).
  10. Reboot from the USB flash drive and run bootpart (you can now delete the DOS files on the stick and remove the boot. ini entry for MS-DOS (if really needed, personally I would leave it there).
  11. Reboot from the USB flash drive once more and Windows PE should load.

Some notes I’ve read suggest that there is an extra step – i.e. that of copying winbom.ini from \minint dir to \; however, using a colleague’s pre-built Windows PE 2005 images I couldn’t get the normal PE one to work – only the one which was configured to to use a RAM disk (and that didn’t have a winbom.ini). The downside of this was that it took about an hour to boot! I thought this was because the reference PC only had 256MB RAM but tried on a 512MB machine and no difference. Obviously need to do more work in this area, but the basic principle of booting from the USB flash drive is now proven.

I’ll post an update with the final configuration when I manage to make Windows PE more performant but, at present, the file system on my USB flash drive looks like this:

\bootpart.exe (01/08/2005 02:06 44,544 bytes)
\ntldr (25/03/2005 11:00 298,096 bytes)
\ (25/03/2005 11:00 47,772 bytes)
\minint\bootfix.bin (25/03/2005 11:00 1,024 bytes)
\minint\ 25/03/2005 11:00 47,772 bytes)
\minint\setupldr.bin (25/03/2005 11:00 298,096 bytes)

The winnt.sif file contains the following text:

BootDevice = "ramdisk(0)"
BootPath = "\i386\System32\"
OsLoadOptions = "/noguiboot /fastdetect /minint /rdexportascd /rdpath=winpex86.iso"
Architecture = "i386"

USB articles at
MSFN forum – Boot PE from USB flash drive
Oliver Aaltonen’s USB booting tips
Jacopo Lazzari’s USB pendrive how to
The CD Forum – boot your WinPE or UBCD4Win on USB flash drive

21 thoughts on “Booting Windows PE from a USB flash drive

  1. Mark – I am having trouble getting networking running on my winpe image. I also am using a IBM T-40 with WinPE 2005. Did you have to add network drivers to your iso image to get networking to work?

  2. Anonymous – unfortunately (because I used a colleague’s image) I don’t know what was in the WinPE ISO. This was just a proof of concept and I haven’t been working on Windows deployment recently so I haven’t tried to take it any further yet.

    There is a tool that I’ve heard of called nLite, which might help you out, although I’ve not tried it yet and it’s still on my “must have a look when I get some spare time” list.

  3. Hi Mark,

    If i may ask,is Windows PE the same thing as a BartPE iso?
    I used the contens of a BartPE.iso and nothing happens after running Bootpart.Just get “Invalid systemdisk” after removing the Dos-files.
    Is there a parameter needed using Bootpart?

    Thanks for your time and greetings from The Netherlands.

  4. wanderer,
    Bart PE was produced as an alternative to Windows PE because Windows PE was limited to use by Microsoft’s enterprise customers and OEM partners. I think that has changed for Windows PE 2.0 but am not 100% certain.

    I haven’t actually used BartPE but it is a different product so that’s why these instructions might not work so well for you. I think they’re also a bit out of date now – Windows PE 2.0 should make things easier and it’s worth checking out James O’Neill’s article on getting started with Windows PE.

    Good luck! Mark

  5. Mark,

    I followed all the instructions how to boot the WinPE from USB. Everything seems to be working fine till setup starts to copy data. It seems like the installation fails to copy data required for the installation. Have you seen such an issue before?


  6. Meh I made one of these Live USB Bart PE sticks today, it worked on my IBM R32’s USB 1.1 slot, only issue I had was Barts PE2USB formatter didint work, I had to use the above HPs to format the stick the copy the files onto the stick manually

  7. Why must the format of the USB key be Fat 16 (step 3)? A 16 gig key only formats Fat32 or NTFS with HPUSBFW.EXE.
    If anyone knows of a way to to this with Fat32 i’ll tell you how to skip step 6 and just copy a winPE ISO file.

  8. @vh1too – the reason for FAT16 was for MS-DOS support, I think. I wrote this 3 years ago, since then a lot has changed (like that it’s easy to get hold of Windows PE; and that back then the typical USB key was only 128, 256 or 512MB in size!) – I wouldn’t consider this post to be good advice any more as I’m pretty sure there are better ways to do this now!

  9. Just want to bump PEtoUSB that someone mentioned above – great little freeware tool. Highly recommended.

    I did not get the instructions above to work, but PEtoUSB worked with no hitch.

  10. Per readme.txt / actual testing, PEtoUSB doesn’t support USB Keys greater than 2 gig. Fat 16 only. Anyone know how to make a Fat32 USB Key bootable?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.