Skip to main content

diskpart

Format and clean a USB drive

Taken from this great writeup

Fire up diskpart and list active disks:

diskpart
list disk

Select the USB drive:

select disk X

Clean it:

clean

Create primary partition:

create partition primary
select partition 1
format fs=FAT32 label=CLEAN quick