How to partition and format a USB drive manually with DiskPart

If the USB drive gives you trouble when creating the boot disk, it is worth wiping it and setting it up correctly: an MBR partition table, one active partition and the FAT32 file system. You do it with DiskPart, the disk tool built into Windows.

Warning: the clean command erases the whole selected disk. If you pick the wrong disk, you will lose its data. Check the size carefully.

Step by step

  1. Click Start, type “cmd”, right-click “Command Prompt” and choose Run as administrator.
  2. Type diskpart and press Enter.
  3. Type list disk to see the disks. Identify the USB drive by its size.
  4. Run these commands, replacing N with your USB drive’s number:
select disk N
clean
convert mbr
create partition primary
select partition 1
active
format quick fs=fat32
assign
exit

What each command does

  • clean: wipes the partition table on the USB drive.
  • convert mbr: uses the MBR scheme, the most compatible with older computers.
  • create partition primary and active: create a partition and mark it as bootable.
  • format quick fs=fat32: formats it as FAT32.
  • assign: gives it a drive letter so it shows up in File Explorer.

Then create the bootable USB with Rufus by following our guide. If DiskPart reports errors, try to repair the corrupted USB drive.

Scroll to Top