mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 15:42:03 +00:00
18 lines
399 B
Plaintext
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}}`
|