1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-12 23:15:25 +02:00
tldr/pages/linux/mkfs.fat.md
Managor 5c3e141eb2
mkfs*: unify format (#16188)
Co-authored-by: pixie <pixel+github@chrissx.de>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-04-19 00:06:58 +03:00

447 B

mkfs.fat

Create an MS-DOS filesystem inside a partition. More information: https://manned.org/mkfs.fat.

  • Create a fat filesystem inside partition Y on device X:

mkfs.fat {{/dev/sdXY}}

  • Create filesystem with a volume-name:

mkfs.fat -n {{volume_name}} {{/dev/sdXY}}

  • Create filesystem with a volume-id:

mkfs.fat -i {{volume_id}} {{/dev/sdXY}}

  • Use 5 instead of 2 file allocation tables:

mkfs.fat -f 5 {{/dev/sdXY}}