Format an USB Stick with FAT32 on Linux

On UNIX-based OSes formatting a medium is usually done in the terminal. Even though most Linux distributions already include GUI-based formatting tools, this post is all about the terminal.

  1. Determine on which ID the USB stick is mounted: sudo fdisk -l

  2. Unmount the USB stick: unmount /dev/sd[x] (dependent on the previously determined ID)

  3. Format the USB stick with the FAT32 filesystem: sudo mkdosfs -n '[USB-DRIVE-NAME]' -I /dev/sd[x] -F 32