mkfs.btrfs Command Examples

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.

sudo mkfs.btrfs --metadata single --data single {{/dev/sda}}

sudo mkfs.btrfs --metadata raid1 --data raid1 {{/dev/sda}} {{/dev/sdb}} {{/dev/sdN}}

sudo mkfs.btrfs --label "{{label}}" {{/dev/sda}} [{{/dev/sdN}}]