Turn Your USB Flash Drive into a Windows Install Disk

Wed, Apr 30, 2008

  |  Drashna

Many of us more technically-inclined poeple have probably built our own Windows Home Server systems by now or are considering it.  But one of the more tricky problems with building your own Home Server is how to install it.  Sure there is picking up a spare DVD drive just to install Home Server intially, but most of us just remove it as soon as we’re done with it.  And there are some of us without a spare DVD drive.  Well, there is a a great solution to that.  Using a USB Flash Drive.  Not only can you just delete everything after you are done installing, but who doesn’t have a few laying around?

Want to know more?  Well, here it is:

If you want to create a Windows Home Server Flash Drive, you will need a 2GB stick because the DVD takes 1.2GB of space.  The Windows Home Server Restore Disk takes about 130MB so a 256MB stick or larger is preferred because of additional drivers and such.  Windows Vista takes about 2.4GB for the 32-bit version and about 3.2GB for the 64-bit verions, so you are going to want to use a 4GB stick.

As a word of warning, older USB flash drives may not be bootable, and some older systems will not boot off of USB drives.  Both of these can be check in either your motherboard’s documentation, or by checking BIOS.

Insert your USB Flash Drive into any computer with Windows Vista. Make sure that it installs it correctly and everything comes up fine. Now, make sure anything important is off of the drive because we are going to be formatting it in just a bit.

  1. Load an elevated command prompt (Start menu-> all programs -> accessories -> right click on “Command Prompt” and click on “Run as Administrator”).
  2. Type in “diskpart” and hit Enter.
  3. Next type each the follow commands in respective order at the “DISKPART>” command prompts. Note – this assumes that disk 2 is the USB flash drive (as it was on my system). You will need to replace the “2” in “select disk 2” with the disk number of your USB flash drive.

list disk
select disk 2
clean
create partition primary
select partition 1
active
format fs=fat32
assign
exit

This should all come out looking like this:

USB Flash Drive format Turn Your USB Flash Drive into a Windows Install Disk

After this is done, you can make the USB Flash Drive intaller for Windows Vista or Windows Home Server.

Windows Home Server

If you want to create an installer flash disk for Windows Home Server, find that Server Install Disk and copy its contents over to the USB Flash drive. This may take 20-30 minutes or longer. After this is done, you can also make the installer automated by creating a file called “qs.ini” on the flash drive. This has to be in the root directory else the installer will not find it. Create the file, and change the product key to yours and the server name to your desired name:

[Q Setup]
ProductKey=00000-00000-00000-00000-00000
ServerName=SERVER

This will now automatically install Windows Home Server on the computer when you boot off of it.

WHS Restore Disk

Easier thand WIndows Home Server, just copy the contents of the Windows Home Server Restore CD to the USB Flash Drive. Just boot from it, and you can restore any computer that can boot for USB drives. Great for that laptop with the burned out CD/DVD drive. Don’t forget to add drivers that you may need on this as the Restore console may need them.

Windows Vista

Not much different than Windows Home Server here. Just copy the contents of the DVD to the flash drive. After it is done copying, if you create a file called “PID.TXT” in “X:\sources\” where “X” is the flash drive, and change “value” to your product key, it won’t ask you for your key or which version of Vista you want to install:

[PID]
Value=00000-00000-00000-00000-00000

Done

You’re done, that is it. Just remove the Flash Drive, and boot from it. There are several ways to get your computer to boot from the USB Flash Drive now. My computer hitting F8 during the BIOS load screen allows me to choose what drive to boot from. I prefer this way because you should only ever need to boot from removable media once. The other way is to get into your bios and change the boot order so that the USB drive boots first. After it has reset once, you need to change it back unless you want it to install over and over again. I would go over how to do this but each bios is pretty much unique to the hardware.

Don’t forget to add SATA/RAID if you need them. Also, assuming you have the space, you can add any drivers or other programs that you may need to this flash drive because it is going to be there anyways.

Good luck, and have fun installing.

Credits

This page was original written by Donavon from HomeServerHacks, and modified to include how to install Windows Vista, and Windows Home Server Restore Disk.

 

Similar Posts:

This post was written by:

Drashna - who has written 23 posts on We Got Served.


Contact the author

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

No Responses to “Turn Your USB Flash Drive into a Windows Install Disk”

  1. foaf Says:

    Thanks! This is such an issue, especially when trying to re-install the server.
    Plus I have the “Unable to initialize UI subsystem” error, which I attribute to the temporary DVD drive I’m trying to use, so by-passing it will be a life saver.

    Reply

  2. Michael Tschirret Says:

    Thank you! One question: When I copy the contents of the DVD to the flash drive, do I need to create a new directory for the DVD contents? Or do I just copy the contents of the DVD verbatim to the root of the newly formatted flash drive?

    Reply

  3. ctewsley Says:

    Thank you. I have been looking for a way to include the key into a vista install disk for a while.

    Reply

  4. Drashna Says:

    Michael: Verbatim. So it looks exactly like the DVD.

    Reply

  5. Craig Says:

    How do I add SATA/RAID? Thanks I need to restore my system.

    Reply

  6. Drashna Says:

    Craig, two ways to do it. One, is to create a folder on the flash drive, and point to it when the installer asks, or head over to the wiki for gamer’s tutorial on how to slipstream stuff into the installter.

    Reply

  7. Jason Says:

    Just so people know this only works with diskpart 6.0.6000 and up aka Windows Vista and up, I tried to diskpart a USB stick in Windows XP and Windows Home Server (Windows 2003) and neither would recognize the USB drive as a selectable disk FYI

    Reply

  8. Drashna Says:

    Yes, this only works with Vista. Sorry I didn’t emphasize that point. I also tried it on XP and server to no avail. Well, actually it should work with Server 2008 also.

    Reply

  9. Fide Says:

    drashna, do we need to use bootsect to make the drive bootable?
    read somewhere else that u need it, but u arent using it here. if u can clarify about this i would be grateful :)

    Reply

  10. Drashna Says:

    Not as far as I am aware. I’ve used the tutorial myself several times. All you have to do is use the instructions up there. Also, if you have a Vista install disk or a Server 2008 install disk, you can use that rather than having to install Vista, as the proper version of “diskpart” is actually on the disk.

    The big things are the that it is a primary partition type, and that it is marked as active. I’ve heard of somebody having problems with it being FAT32, but formatted it as NTFS and had no problem.

    Reply

  11. Business101 Says:

    Hi all,

    will it be possible to do windows xp this way, and if so where do i put the key to automate the installer?

    Reply

  12. Drashna Says:

    XP, no. There are a number of guides out there for doing it, but the problem is that XP uploads all USB devices during setup initialization. Including the install medium. It requires a hack to get around it.

    That, and WHS doesn’t require this, as it uses the same base installer as Vista. I can’t find my links for creating an XP version, but they are complicated and a lot of people have problems getting them to work eve still.

    Reply

  13. hohum Says:

    If you use the following command, then you save a few minutes:

    format fs=fat32 quick

    Reply

  14. Drashna Says:

    You can… but I prefer a good full format as it reduces problems and can fix “damaged” sections (one marked bad by OS). That and it is good to do once in a while.

    Reply

  15. AK Says:

    Hey I’m trying to make this boot usb for my voodoo envy 133 (which has an external eSATA/USB dvd drive I don’t want to have to deal with during installation) but I only have the vista ultimate 32 bit UPGRADE dvd not the full install dvd. I know it’s possible to clean install from the upgrade dvd but I was wondering if it’s possible to boot from the usb with the upgrade dvd files in it? Otherwise is it possible to extract the files from the dvd and onto the hard drive of the computer to then upgrade vista to ultimate? Thanks!

    Reply

  16. sudo_root Says:

    The format could also be done with HP format utility (?) much faster and without MS Vista.

    XP can be made with BartPE builder.

    Reply

  17. Lasse Rasch Says:

    Hey…

    Thank you, thank you, thank you….

    I’ve searched for about 5 hours for a way to install Windows Server 2008 onto my new HP Proliant DL120 G5 server witch has no cd-rom drive og floppy.

    I used a Kingston DataTraveler 8GB USB stick for it, and this approch was the only one that worked for me. And it was SO EASY!

    Thnx again!

    /Lasse

    Reply

  18. David Says:

    Similar to AK’s post of 11/4…
    I have an upgrade version of Vista Home Premium for a new HTPC build (which will be backed up to my WHS MSS). It requires the install to be done from an existing installation of my previous OS. I have a copy of XP Pro no longer in use that I’ve set aside for this qualification. Is there a way to do a clean install of Vista Home Premium via USB flash drive while skipping the XP Pro install? Maybe a way to put both license keys in that PID.TXT file?? That would be very nice! Thanks.

    Reply

  19. Carlton Pery Says:

    I am amazed with it.It is good thing for my research. Thanks. ^_^

    Reply

  20. Dcdyd Says:

    Drashna,

    I tried this method with WHS recovery CD without success. I tried several types USB drives including 1GB, 2GB and 4GB. I also tried using external USB drive (HDD). All failed in booting WHS recobery CD. The error message is something like ‘In order to protect Windows, the system will be shutdown …’ during the boot of the recovery CD.

    Have you tried this with WHS recovery CD? If yes, what kind of USB drive you used?

    Reply

  21. Lasse Rasch Says:

    I used a Kingston DataTraveler 4GB USB Stick. However i think that if you are able to boot, at least some of the way, the problem is not the USB stick you are using.

    Could it be some setting in BIOS that prevents the boot to run successfully?

    Reply

  22. Dcdyd Says:

    Originally Posted By Lasse RaschI used a Kingston DataTraveler 4GB USB Stick. However i think that if you are able to boot, at least some of the way, the problem is not the USB stick you are using.

    Could it be some setting in BIOS that prevents the boot to run successfully?

    On the same PC, I can use USN device for booting Vista, WinXP as well as WHS. So I don’t think that the problem is on the BIOS setup. It doesn’t seem to be that the problem is at the USB device at all because I can’t boot WHS receovery Cd from aby USB connected device including HDD, external CD-ROM as well as USB drives (at least three).

    Reply

  23. Recycled Flash Drives Says:

    Great stuff. Nice to read some well written posts. A long way between them.

    Reply

Trackbacks/Pingbacks

  1. timothymooney.org » Blog Archive » Use an old USB stick to install Windows - 16. Jan, 2009

    [...] Linkage [...]

  2. Install Windows Home Server From A USB Stick - Trigger Finger - 16. Feb, 2009

    [...] INSTALL WHS USING ONLY A USB STICK :install, operating system, usb stick, whs, windows home server [...]

  3. theverge.ca » Blog Archive » USB Geeky Stuff - 08. Apr, 2009

    [...] To create a Windows Installation USB Stick http://www.wegotserved.co.uk/2008/04/30/turn-your-usb-flash-drive-into-a-windows-install-disk/ [...]

  4. BIG Diskpart mistake :( - Overclock.net - Overclocking.net - 25. Apr, 2009

    [...] the Windows 7 beta, so I wanted to make my flash drive ready with diskpart… followed this tut: http://www.wegotserved.co.uk/2008/04…-install-disk/ And I found out that my USB pen was Disk 6, he used Disk 1 in the example, so I thought that I [...]

  5. Friday fuckit! We’ll Do it LIVE!!! I’ll write it MYSELF « gphinriks’s Blog - 15. May, 2009

    [...] usb (I know I’m a noob) but in case your wondering about how to do that shit here’s the guide I used. It says Windows Home Server but it works for every server installation from Microsoft. In Diskpart [...]

Leave a Reply