Here are three ways to format a USB drvie or SD card in Linux:
Intro: 0:00
Use Gnome Disks: 0:39
Use Gparted: 6:54
Use Command Line: 13:49
NOTES FOR THE COMMAND LINE:
Find out drive letter:
lsblk
(This example assumes that it is /dev/sdb.)
Erase the disk:
sudo dd if=/dev/zero of=/dev/sdb bs=1024k count=2048
Force the system to write to the disk:
sync
Create a partition table:
sudo parted /dev/sdb mklabel msdos
Create a partition taking up the entire disk:
sudo parted /dev/sdb mkpart primary 1Mb 100%
Format the new partition:
sudo mkfs.ext4 /dev/sdb1
Label the new ext4 file system:
sudo e2label /dev/sdb1 64_GB_USB
sync
Unplug the drive and plug back in to mount it
Set permissions on the new partition:
sudo chmod 777 .
(WARNING! Run only while PWD is the new partition!)