Here’s how to format a USB drive on Linux.

Plug in the USB drive to see mount point.

<pre lang="bash"># scan for all drives
df -Th
Filesystem     Type     Size  Used Avail Use% Mounted on
/dev/sdc1      fuseblk   30G   66M   30G   1% /media/ulysses/451B99AF225B48EC

Unmount USB drive.

<pre lang="bash">umount /dev/sdc1

Choose a file system type and run the appropriate format command.

<pre lang="bash"># nfts format
mkfs.ntfs /dev/sdc1
# vfat format
mkfs.vfat /dev/sdc1
# ext4 format
mkfs.ext4 /dev/sdc1