Formatting a USB drive in Linux

May 2nd, 2006

For some reason my USB drive, even though empty, was showing up as half full and I needed to reformat it and found that to my horror, I had no idea what to do. Here’s the solution:

mkfs -t vfat /dev/sda1

Make sure you do it while the drive is unmounted and you are root. Cheers!