Comment I have used: dd (Score 2, Informative) 252
First find out the device of the flash disk.
The following fixed a USB disk which was hosed:
dd if=/dev/random of=/dev/sda
or
dd if=/dev/zero of=/dev/sda
It's not a format, but fixes corrupt files, which can cause the disk to be unuseable.