Clean a Linux USB Drive in Windows
Launch command prompt or Powershell, run the command diskpart . The Diskpart command line application will open. First, type list disk to show all of the disks connected to the PC. Now determine which of these is your Linux disk. You can usually identify it based on the sizes listed. You will want to be 100% sure of your selection here because the following commands will wipe ALL DATA from whichever disk you select. Select the disk by using the command select disk X where X is the number of your disk from the previous command. Once you have selected your disk, use clean to remove all existing partitions. Create a new partition with create partition primary and then mark it as active . Finally, we can format the disk with format fs=Fat32 quick . Now your USB drive or SD card is ready to be used again.