Formatting WinPE 3.1 Flash Drive – (DISM)

windows7

In my previous article I wrote about how to create the WinPE 3.1 environment, add drivers, mount the .WIM file, add batch scripts, etc. Here are the steps for creating the bootable flash drive.

Step 1

Open up Command Prompt. You can do the first step within a normal command prompt window or within the WAIK Deployment Tools Command Prompt Window.

Step 2

Type the following:

Diskpart

This launches the DiskPart program which is included within Windows Vista x32, x64 and Windows 7 x32, x64.

Step 3

Type the following:

List Disk

Before you do anything you will want to see which disk is which on your computer.

Step 4

Type the following:

select disk 1

You will want to pick the corresponding disk in which you want to use for your bootable flash drive. Careful, because this will completely erase the disk you select.

Step 5

Type the following:

clean

This cleans up your disk.

Step 6

Type the following:

create partition primary

This creates the partition on your flash drive.

Step 7

Type the following:

select partition 1

This selects the partition you just created in Step #6.

Step 8

Type the following:

active

This marks the select partition as active.

Step 9

Type the following:

format fs=fat32 quick

This will format your flash drive in FAT32 format. Make sure you use the quick command otherwise it will do a standard format and will take a while. For bootable flash drives the quick format will always be fine.

Step 10

Type the following:

assign

This will assign the next available drive letter to your flash drive. (You can also specify which drive letter you would like it to be assigned)

Step 11

Type the following:

exit

This exits DiskPart.

Step 12

Type the following:

exit

This exits CMD.

Step 13

Then just copy the contents of the “c:\winpe_x86\ISO\” folder in which you have your WinPE 3.1 environment created in the previous article and you are ready to boot up on a flash drive to WinPE 3.1. Enjoy!

Here are the commands all together:

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

Incoming search terms:

  • winpe 3 1 usb
  • create winpe 3 1 usb
  • gimagex err 282
  • FormattingWinPE3 1USBFlashDrive-(DISM)
  • itbros create winpe
  • http://www.google.com bert

    how do I inject new nic drivers into my pe ?

  • sxewhodey

    I wanted to make a one-device install so I got a 500 GB usb 3.0 laptop drive to use to run PE on, btu here is were I could use some help. Previously, I had a small 1 gb partition which I booted from, and I had all our .wim files on the other partition. I wanted to see if it is betetr to keep everything on one partition possibly and another big question I have is how to get the usb 3.0 working in WinPE? Do you just need to stick the driver for usb 3.0 in the root of the pe drive, or do you need to imbed it while the OS is mounted?

  • Epli

    Great thanx, guys!
    All great things supposed to be simple.

  • http://www.pseudotheos.com Paul

    This doesn’t work on the Dell 990 I’m trying to image. After making the disk bootable with this guide, and copying the winpe 3.1 content and drivers onto it in your other guide, I try to boot from the key and get “Remove disks or other media.” “Press any key to restart”. Any ideas?

    • Ryan Schauer

      I’ve been imaging Dell 990′s with this process since the device was released.

  • Pingback: The IT Bros WinPE 3.1 Scripts - The IT Bros

  • Pingback: Formatting WinPE 3.0 USB Flash Drive - (DISM) - The IT Bros

  • Pingback: Meet Windows 8 and Windows Server 2012: The New Bet Toys of Microsoft to Hack and Crack « Maya Chitchatting's Blog

  • Pingback: WinPE v4.0 (Built from Windows 8 code base) - STUFF DOWNLOADS

  • disqus_ZTd1NJNWwV

    I created a WinPE3.1 usb stick formatted fat32 and using DISM on that stick was unable to capture an image from a Dell XPS touchscreen. Booting to UEFI with security disabled the system booted to WinPE but the usb stick was not accessible and no drive letter assigned to it. Booting legacy allowed it to boot and access the usb stick to run DISM but DISM was kicking an Err=282 error on every file. I tried GIMAGEX but it also errored out. IMAGEX would not pull the image either. What is the trick to imaging a Windows 8 box that has UEFI?

  • Anonymous

    “Just copy the files”? What about the boot sector???