Clean a USB flash drive with a bootable live-system in windows
Published
I recently tried multiple linux distributions by flashing my usb drive with a bootable live-system. Without an installed linux however, I found it troubling to restore the flash drive to its original FAT32 state with standard windows tools.
After a while I found this neat solution which should work with any windows version:
- Press
Win-Key+Rand type indiskpartto open windows partition tools. - Grant UAC access if prompted.
list diskto show all currently connected drives.select disk #where#is your USB drives number. The size should give away which one it is.- Be absolutely sure this is the right drive, or you will lose data!
cleanto remove all partitions.create partition primarycreates the new partition and selects it.activeto mark the current partition as active.format fs=fat32 quickto format your drive with fat32 filesystem. Alternatively ntfs works great too for files bigger than 4GB.exitto leave diskpart.- All done
This restores your drive without the need of any external tools.
Cheers,
Felix