How to format USB drive from terminal in Linux

Step-1) Check the name of device by following command

df -h

Step-2) Unmount the USB drive on your system by

umount /dev/sdb1 (if sdb1 is slot identified)

Step-3) Format with vFat File System

/sbin/mkfs.vfat /dev/sdb1

There you go!
References: https://tecadmin.net/format-usb-in-linux/

1 Like

Many Linux users dislike the use of vfat. There are ample – and technically superior – alternatives for Linux users. Additionally, there’s a judicial aspect: Microsoft’s attempt to demand license fees due to a patent on a component of vfat leaves a bad after taste in many mouths.

2 Likes