Forrest logo
back to the mkfs.fat tool

mkfs.fat:tldr:f508c

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

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

Here is a breakdown of the command:

  1. "mkfs.fat": This is the command to create a FAT file system.

  2. "-i ${volume_id}": This option is used to specify a volume ID for the file system. The variable "${volume_id}" should be replaced with the desired volume ID.

  3. "${-dev-sdb1}": This specifies the device or partition on which the FAT file system will be created. The variable "${-dev-sdb1}" should be replaced with the actual device name or partition.

To use this command, you would need to replace "${volume_id}" with a desired volume ID, and "${-dev-sdb1}" with the actual device or partition name you want to format as FAT.

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