HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mkfs.bcachefs — Create a `bcachefs` filesystem inside a partition. See also: `bcachefs`. More information: <https://

Submitted by: @import:tldr-pages··
0
Viewed 0 times
bcachefscreatecommandmkfs.bcachefspartitionclifilesysteminside
linux

Problem

How to use the mkfs.bcachefs command: Create a bcachefs filesystem inside a partition. See also: bcachefs. More information: <https://bcachefs-docs.readthedocs.io/en/latest/mgmt-formatting.html>.

Solution

mkfs.bcachefs — Create a bcachefs filesystem inside a partition. See also: bcachefs. More information: <https://bcachefs-docs.readthedocs.io/en/latest/mgmt-formatting.html>.

Create a bcachefs filesystem inside partition Y on a device X:
sudo mkfs.bcachefs {{/dev/sdXY}}


Create a bcachefs filesystem with a volume label:
sudo mkfs.bcachefs {{[-L|--fs_label]}} {{volume_label}} {{/dev/sdXY}}

Code Snippets

Create a `bcachefs` filesystem inside partition `Y` on a device `X`

sudo mkfs.bcachefs {{/dev/sdXY}}

Create a `bcachefs` filesystem with a volume label

sudo mkfs.bcachefs {{[-L|--fs_label]}} {{volume_label}} {{/dev/sdXY}}

Context

tldr-pages: linux/mkfs.bcachefs

Revisions (0)

No revisions yet.