Welcome to LQ!
Just try it. Mount the flash drive as root. Then issue
/sbin/mkdosfs -F32 -v /dev/hda2
if you want it FAT32, or for a Linux filesystem
mkfs [ -V ] [ -t fstype ] [ fs-options ] filesys [ blocks ]
You should be able to locate the flash drive by reading "dmesg"
and if you need to know more about making specific Linux filesystes,
issue "man mkfs" for more details.