1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/mkfs.xfs.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

301 B

mkfs.xfs

Create an XFS filesystem inside a partition. More information: https://manned.org/mkfs.xfs.

  • Create an XFS filesystem inside partition Y on device X:

sudo mkfs.xfs {{/dev/sdXY}}

  • Create an XFS filesystem with a volume label:

sudo mkfs.xfs -L {{volume_label}} {{/dev/sdXY}}