Remove MBR from USB flash drive using Windows

I have a USB key that was previously set up as a bootable key (clonezilla)

Because of this there is an MBR on the key that will try (and fail) to boot off the key if it is left in a system. Deleting/formatting partitions won't change this.

On Linux I could use dd to overwrite the first few MB of the key and then repartition it, what is the equivalent way to do this on Windows? (destroying all data on the key is fine)


 diskpart
 list disk
 select disk X
 list partition
 select partition Y
 inactive
  • X = the number (not letter) of your USB disk, as indicated by the list disk command.
  • Y = the number (not letter) of the bootble partition, as indicated by the list partition command

diskpart
list disk
select disk X
clean

(X = The number of the disk)

Go to Disk Management and create a new partition on the disk, it should then work as normal again.