mkfs.xfs Command Examples

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

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

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