Windows 8 was released today on MSDN and Technet. It will soon be released publically. With that comes the many GBs of downloads for the ISOs. Many may have newer Ultrabooks, which do not feature DVD drives anymore. Rather than burning the ISO to a DVD disc, why not put it on a bootable USB stick? There are many ways to do this, and I have found that the best way to do this is to use a command tool called DISKPART. The commands are fairly easy.
- Open an elevated Command Prompt and type DISKPART. You will open up the Diskpart tool, as evidenced by the DISKPART> prompt.
- DISKPART>LIST DISK <- This will give you a listing of the disks on your system. It is very important to identify the USB disk, as you really do not want to format your system drive.
- DISKPART>SELECT DISK n <- this will make select the USB disk n, as identified in step 2
- DISKPART>CLEAN <- This effectively does a quick format/wipe of the USB disk
- DISKPART>CREATE PARTITION PRIMARY <- This will create a primary partition on the disk
- DISKPART>SELECT PARTITION 1 <- Since there is only one partition, this will select it.
- DISKPART>ACTIVE <- This makes the partition active
- DISKPART>FORMAT FS=FAT32 <- This formats the disk and sets it up as a FAT32 formatted drive. This will take a while to complete
- DISKPART>ASSIGN <- This assigns the next drive letter to the drive
- DISKPART>EXIT <- To exit the utility
Once the USB drive has been prepared, you can now use a utility like 7-Zip to extract the ISO directly to the drive.
BTW. This process will also work when creating bootable USB disks of other Windows ISOs – Windows Server 2012, Windows Small Business Server 2011, Windows Server 2008 R2, Windows 7, and even Vista.
11 thoughts on “Using DISKPART to create a Bootable USB of Windows 8”
Does anyone know why you need to use Windows 8’s diskpart to create a UDF using WinPE 4? I tried to update the .wim and associated files on several already bootable USBs and it would never fully load. I even tried using the same stick, cleaning it, doing all the above steps on my Windows 7 box – get the blue Windows logo and just hangs…then did the exact same thing on my Windows 8 box and it works like a charm.
What up with that M$?
this is great blog, I will certainly be back.
after exiting the diskpart tool you need to create dir to the bootsect executable file to avoid the bootmngr error while trying to boot from usb
on win 7, you need to copy the Boot Sector. (g=usb drive letter)
Run “bootsect /help” for detailed usage instructions.
G:\boot>bootsect /nt60 e:
Target volumes will be updated with BOOTMGR compatible bootcode.
Bootcode was successfully updated on all targeted volumes.
you could add the QUICK option to the FORMAT command, which is perfectly fine for normal purposes (FORMAT FS=FAT32 QUICK)
Thank you for this wonderful post.
does format fs=fat32 delete your files?
Yes, the USB drive will be wiped clean.
This trick is so simple and it worked for me. I opened cmd without administrator so it didn’t work. Then i saw that i have to open cmd with administrator and i got success.