How-to-simply...

Format USB drive in CentOS

  • 1 Determine correct device name x and partition number N:
    lsblk
  • 2 Unmount the drive:
    umount /run/media/bob/flash-drive
  • 3 Format (delete data) and set name:
    mkfs.vfat /dev/sdxN -v -n "USB Flash Drive 32GB"

References