Forrest logo
tool overview
On this page you find all important commands for the CLI tool mkfs.vfat. If the command you are looking for is missing please ask our AI.

mkfs.vfat

mkfs.vfat is a command-line tool used to create a File Allocation Table (FAT) file system on a storage device. It is primarily used for formatting USB drives, SD cards, and other external storage devices in a FAT file system. The tool is often found in Linux distributions and is a part of the dosfstools package.

With mkfs.vfat, users can specify various parameters during the formatting process, such as the file system label, cluster size, and the number of reserved sectors. Additionally, it supports long file names (LFN) and different FAT versions, including FAT12, FAT16, and FAT32.

By default, mkfs.vfat uses the FAT32 file system format, which is compatible with various operating systems like Windows, Linux, and macOS. It allows for storing files larger than 4GB, unlike older FAT file system versions.

The tool effectively erases the existing file system on the storage device, creating a new FAT file system in its place. However, it is important to note that running mkfs.vfat will permanently delete all data present on the device, so caution should be exercised.

Overall, mkfs.vfat is a versatile command-line tool that enables users to create a FAT file system on their storage devices, providing compatibility and support for different operating systems and allowing for efficient storage and file management.

List of commands for mkfs.vfat:

  • mkfs.vfat:tldr:2b858 mkfs.vfat: Create a vfat filesystem inside partition 1 on device b (`sdb1`).
    $ mkfs.vfat ${-dev-sdb1}
    try on your machine
    explain this command
  • mkfs.vfat:tldr:2c156 mkfs.vfat: Create filesystem with a volume-id.
    $ mkfs.vfat -i ${volume_id} ${-dev-sdb1}
    try on your machine
    explain this command
  • mkfs.vfat:tldr:69f0f mkfs.vfat: Create filesystem with a volume-name.
    $ mkfs.vfat -n ${volume_name} ${-dev-sdb1}
    try on your machine
    explain this command
  • mkfs.vfat:tldr:9f777 mkfs.vfat: Use 5 instead of 2 file allocation tables.
    $ mkfs.vfat -f 5 ${-dev-sdb1}
    try on your machine
    explain this command
tool overview