Create a FAT32 filesystem on the empty test partition /dev/sdb1 for broad device compatibility.
Use the Linux VFAT/FAT creation tool.
Which command is appropriate?
mkfs.vfat -F 32 DEVICE creates a FAT32 filesystem. VFAT refers to the Linux driver features used to handle long file names; exFAT is a different format.
Detailed explanation
mkfs.exfat /dev/sdb1Incorrect. mkfs.exfat creates exFAT rather than FAT32.
Incorrect. mkfs.exfat creates exFAT rather than FAT32.
mkfs.vfat -F 32 /dev/sdb1Correct. mkfs.vfat -F 32 /dev/sdb1 creates a FAT32 filesystem.
Correct. mkfs.vfat -F 32 /dev/sdb1 creates a FAT32 filesystem.
mkfs.xfs -F 32 /dev/sdb1Incorrect. XFS does not use the FAT32 format option.
Incorrect. XFS does not use the FAT32 format option.
mkswap -F 32 /dev/sdb1Incorrect. mkswap creates swap metadata.
Incorrect. mkswap creates swap metadata.
Try it yourself
An example you can run in a temporary verification environment.
mkfs.vfat --helpExpected result
FAT作成オプションの説明。ファイルシステム作成は行わないKey points
- mkfs.vfat creates FAT
- -F 32 selects FAT32
- exFAT is different
Notes
- Environment: dosfstools 4.x公式仕様
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.