mkfs.vfat
Create a FAT filesystem (symbolic link to mkfs.fat)
TLDR
This command is an alias of mkfs.fatCreate a FAT filesystem inside partition Y on device X
$ sudo mkfs.vfat [/dev/sdXY]
Create a FAT filesystem with a volume name$ sudo mkfs.vfat -n [volume_name] [/dev/sdXY]
Specify the FAT type (12, 16, or 32 bit)$ sudo mkfs.vfat -F [12|16|32] [/dev/sdXY]
Create a FAT32 filesystem with a custom cluster size$ sudo mkfs.vfat -F 32 -s [8] [/dev/sdXY]
Set the number of sectors per cluster$ sudo mkfs.vfat -F 32 -S [512] [/dev/sdXY]
SYNOPSIS
mkfs.vfat [options] device [block-count]
DESCRIPTION
mkfs.vfat is a symbolic link to mkfs.fat. It creates FAT (File Allocation Table) filesystems, commonly used for USB drives, SD cards, and EFI system partitions.The "vfat" name refers to the Virtual FAT extension that enables long filename support (up to 255 characters) on FAT filesystems while maintaining compatibility with the original 8.3 filename format.
INSTALL
sudo apt install dosfstools
sudo dnf install dosfstools
sudo pacman -S dosfstools
sudo apk add dosfstools
sudo zypper install dosfstools
brew install dosfstools
nix profile install nixpkgs#dosfstools