How to Make a Bootable USB With DiskPart

Written by jim campbell
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Make a Bootable USB With DiskPart
Partitioning a USB drive allows you to assign it a drive letter. (flash drive image by jimcox40 from

"Diskpart" is a partitioning tool utility available through the Windows command line. You use diskpart to create partitions on a disk -- including a USB disk -- so the operating system is able to access the drive and write information to it. Partitioning a drive also assigns a drive letter to the USB device. You can quickly create the USB partition using any Windows system's command line.

Skill level:

Other People Are Reading


  1. 1

    Click the Windows "Start" button and enter "cmd" into the text box. Press "Enter" to open the command line utility. Insert your USB disk into the USB port on the computer.

  2. 2

    Type "diskpart" to start the service and press "Enter." Type "select disk" and press "Enter." This lists all the disks available on the computer, including the USB drive. Type "select disk 2" into the command line where "2" is the drive number shown after the "select disk" command.

  3. 3

    Type the following code into the prompt to create a partition for the USB disk:

    create partition primary size=n

    The "size" part of the command allocates a specific amount of space for the partition. Replace "n" with the number of megabytes you want to use for the USB partition. For instance, if you want to use a gigabyte, enter "1000." 1,000 megabytes is one gigabyte.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.