Files
cheatsheet-tldr/tldr/linux/mkfs.xfs
2025-04-19 00:18:18 +00:00

18 lines
393 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`