Forrest logo
back to the mkfs.fat tool

mkfs.fat:tldr:f4e1f

mkfs.fat: Use 5 instead of 2 file allocation tables.
$ mkfs.fat -f 5 ${-dev-sdb1}
try on your machine

The command mkfs.fat -f 5 /dev/sdb1 is used to create a FAT filesystem with a cluster size of 5 on the /dev/sdb1 partition.

Let's break it down:

  • mkfs.fat is the command used to create a FAT filesystem. It is typically provided by the dosfstools package on Linux systems.
  • -f 5 specifies the cluster size. A cluster is the smallest unit of allocation in a file system. The cluster size determines the efficiency of disk space utilization. In this case, 5 is the cluster size specified, meaning each cluster will consist of 5 sectors on the disk.
  • /dev/sdb1 is the device or partition on which the FAT filesystem will be created. /dev/sdb1 refers to the first partition of the second disk (sdb) in the system.

Make sure to exercise caution when using the mkfs.fat command, as it formats the specified partition and erases all existing data.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mkfs.fat tool