Installing Windows XP using a single USB flash drive.


Please note this tutorial works on all computers not just the Asus EEE PC.
To complete this tutorial you need a 32bit version of Windows XP or Windows Vista installed on your home PC.

What you’ll need:
USB_PREP8 (alternative download)
PeToUSB (alternative download)

Bootsect.exe (alternative download)
Special Note: If you use the program Nlite be sure to keep the manual installation files as the USB_prep8 script relies on these files.

Extract the files in Bootsect.zip
The next step is to extract USB_prep8 and PeToUSB.
Next copy the PeToUSB executable into the USB_prep8 folder.
Inside of the USB_prep8 folder double click the executable named usb_prep8.cmd.

The window that opens will look like this:

Press any key to continue

You next window will look like this:
These settings are preconfigured for you all you need to do now is click start.
Once the format is complete DO NOT close the window just leave everything as it is and open a command prompt from your start menu (type cmd in the search bar or run box depending on your version of windows.).

Inside of the command windows go to the directory you have bootsect.exe saved.
(use the cd directoryname command to switch folders)

Now type “bootsect.exe /nt52 R:” NOTE R: is the drive letter for my USB stick if yours is different you need to change it accordingly. What this part does is write the correct boot sector to your USB stick, this allows your PC to boot from the USB stick without it nothing works.
Please note: When running the bootsect.exe command you cannot have any windows open displaying the content of your USB stick, if you have a window open bootsect.exe will be unable to lock the drive and write the bootsector correctly.

If all went well you should see “Bootcode was successfully updated on all targeted volumes.”

Now you can close this command prompt (don’t close the usbprep8 one by mistake) and the petousb window.

You window you see now should look like this:

If it doesn’t try pressing enter.

Now you need to enter the correct information for numbers 1-3.
Press 1 and then enter. A folder browse window will open for you to browse to the location of you XP setup files (aka your cdrom drive with xp cd in)
Press 2 and enter a letter not currently assigned to a drive on your PC
Press 3 and enter the drive letter of your USB stick
Press 4 to start the process.

The script will ask you if its ok to format drive T:. This is just a temp drive the program creates to cache the windows installation files. Press Y then enter.

Once it’s done formating press enter to continue again, you can now see the program copying files to the temp drive it created. Once this is done press enter to continue again.

Next you will see a box pop up asking you to copy the files to USB drive yes/no you want to click yes.

Once the script has completed copy files a popup window asking if you would like to USB drive to be preferred boot drive U: select YES on this window.

Now select yes to unmount the virtual drive.

Ok we are done the hard part, close the usbprep8 window.

Now make sure your EEE pc is configured with USB as the primary boot device.
Insert your USB drive and boot up the EEE.

On the startup menu you have two options, select option number 2 for text mode setup.

From this point on it is just like any other windows XP installation delete/recreate the primary partition on your EEE pc and format it using NTFS. Make sure you delete ALL partitions and recreate a single partition or you will get the hal.dll error message.

Once the text mode portion of setup is complete it will boot into the GUI mode (you can press enter after the reboot if your too excited to wait the 30 seconds)

Once the GUI portion of setup is complete you will again have to boot into GUI mode this will complete the XP installation and you will end up at you XP desktop. It is very important that you DO NOT REMOVE THE USB STICK before this point. Once you can see your start menu it is safe to remove the usb stick and reboot your pc to make sure everything worked.

This method has advantages over all current no cdrom methods of installing XP to the EEE. You do not have to copy setup files in DOS to the SSD and install from there. It gives you access to the recovery console by booting into text mode setup, and it gives you the ability to run repair installations of XP if you have problems later on.

I hope this worked out for you and please post feedback to the comments section.
Please note due to the amount of comments this article has received you must now click on “Post a Comment” below the existing comments to view the most recent feedback in a popup window.

Advertisements

22 thoughts on “Installing Windows XP using a single USB flash drive.”

  1. I got an error message after the formatting of my drive. Something about a sif file? Does it matter that I’m installing to a SATA drive? I thought I was home free….dangit.

    Thanks,
    Chad

  2. Here’s the error message I got after fomatting the sata drive to NTFS.

    “The following value in the .SIF file used by Setup is Corrupted or mis, Value 0 on the line in Section [SourceDiskFiles]…”

  3. tried to use it on EEE PC and recieved Message
    ” File \$WIN_NT$.~BT\biosinfo.inf could not be loaded.
    THe error code is 14

    Setup cannot continue. Press any key to exit.”

    Please tell me what went wrong and how to remedy this error. Thanks a bunch

  4. Man your description is such detailed, thx for the hard work man, I’m currently in the phrase of copying files from tempimg to USB Flash, waiting, let’s see if I have any problem later 🙂

  5. I DIDN’T TEST THIS MYSELF, I GOT THIS TUTORIAL FROM A SITE, SO THERE IS NO WARANTY THAT IT WILL WORK ON ALL HARDWARE!

  6. thanks for the article.

    During installation i got the same error message after formatting as Chad Lloyd above

    “the following line in the .sif file used by setup is corrupted or missing value 0 on the line in section source disks files with key “binifix4.cmd”
    setup cannot continue”

    is there a solution to this?

    1. sure, I took this from another site, so it’s not my creation… but be sure to mention it is not your or my creation, and put a disclaimer.

  7. I now have a dedicated flash drive specifically for installing Windows XP. I suspect it’s going to get plenty of use. Excellent article!

  8. Hi,

    Thanks for all this. I’m such a newbie that I’m not sure I can follow all this. My problem is that I want to do this same thing with Window 2000 Professional. Will this procedure work with that?

    Thanks

    Bill

  9. Is there any solution for binifix4.cmd problem??
    I have a hercules ecafe ec 800 h20g/s. I followed the metod, but i found this problem. Actually, i haven´t computer…
    Please, some solutions for us… ¡¡¡¡

  10. hi

    so far so good with my install of xp i did this just yesterday with a ubuntu live cd and worked a treat then as well although i used a prog called pen linux

    if you are doing this using an image file that is stored on your hdd you will need to mount it using poweriso or a similar program and in reply to chris who asked back in august if you could do it with w7 i dont see why not

    sb

  11. thx bro, this really works great, but theres one problem, its about the boot.ini, i have to reconfigured it to modified to thru msconfig to removes the selection on start up when i turned the pc on.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s