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
+R
and type indiskpart
to open windows partition tools. - Grant UAC access if prompted.
list disk
to 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!
clean
to remove all partitions.create partition primary
creates the new partition and selects it.active
to mark the current partition as active.format fs=fat32 quick
to format your drive with fat32 filesystem. Alternatively ntfs works great too for files bigger than 4GB.exit
to leave diskpart.- All done
This restores your drive without the need of any external tools.
Cheers,
Felix