Forrest logo
back to the mkfs.vfat tool

mkfs.vfat:tldr:2c156

mkfs.vfat: Create filesystem with a volume-id.
$ mkfs.vfat -i ${volume_id} ${-dev-sdb1}
try on your machine

The command "mkfs.vfat -i ${volume_id} ${-dev-sdb1}" is used to create a new FAT (File Allocation Table) file system on a specific device or partition.

Let's break down each element of the command:

  • "mkfs.vfat": This is the actual command to create a FAT file system. It is typically available in Unix-like operating systems.

  • "-i ${volume_id}": The "-i" flag is used to specify the volume label or ID for the file system. The ${volume_id} is a placeholder that should be replaced with the desired volume ID.

  • "${-dev-sdb1}": This represents the device or partition on which the FAT file system will be created. Typically, a disk device is represented as "/dev/sdX" and partitions are numbered. In this case, "/dev/sdb1" specifies the first partition on the device "sdb".

To use the command properly, you need to replace ${volume_id} with the desired volume ID and make sure to specify the correct device or partition as needed.

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.vfat tool