mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-19 06:55:32 +02:00

* batch1 * batch2 * batch3 * batch4 * Update matchpathcon.md * Update pages/linux/arecord.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * Update pages/linux/arecord.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * Update pages/linux/arecord.md Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
17 lines
623 B
Markdown
17 lines
623 B
Markdown
# mkfs.btrfs
|
|
|
|
> Create a BTRFS filesystem.
|
|
> Defaults to `raid1`, which specifies 2 copies of a data block spread across 2 different devices.
|
|
> More information: <https://btrfs.readthedocs.io/en/latest/mkfs.btrfs.html>.
|
|
|
|
- Create a btrfs filesystem on a single device:
|
|
|
|
`sudo mkfs.btrfs {{[-m|--metadata]}} single {{[-d|--data]}} single {{/dev/sdX}}`
|
|
|
|
- Create a btrfs filesystem on multiple devices with raid1:
|
|
|
|
`sudo mkfs.btrfs {{[-m|--metadata]}} raid1 {{[-d|--data]}} raid1 {{/dev/sdX /dev/sdY /dev/sdZ ...}}`
|
|
|
|
- Set a label for the filesystem:
|
|
|
|
`sudo mkfs.btrfs {{[-L|--label]}} "{{label}}" {{/dev/sdX /dev/sdY ...}}`
|