Files
cheatsheet-tldr/tldr/linux/mkfs.xfs
2024-09-15 00:18:20 +00:00

18 lines
399 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 1 on a device (`X`):
`sudo mkfs.xfs {{/dev/sdX1}}`
- Create an XFS filesystem with a volume label:
`sudo mkfs.xfs -L {{volume_label}} {{/dev/sdX1}}`