3 mkfs.btrfs \- create an btrfs filesystem
6 [ \fB\-A\fP\fI alloc-start\fP ]
7 [ \fB\-b\fP\fI byte-count\fP ]
8 [ \fB\-d\fP\fI data-profile\fP ]
9 [ \fB\-l\fP\fI leafsize\fP ]
10 [ \fB\-L\fP\fI label\fP ]
11 [ \fB\-m\fP\fI metadata profile\fP ]
12 [ \fB\-M\fP\fI mixed data+metadata\fP ]
13 [ \fB\-n\fP\fI nodesize\fP ]
14 [ \fB\-s\fP\fI sectorsize\fP ]
15 [ \fB\-r\fP\fI rootdir\fP ]
19 \fI device\fP [ \fIdevice ...\fP ]
22 is used to create an btrfs filesystem (usually in a disk partition, or an array
25 is the special file corresponding to the device (e.g \fI/dev/sdXX\fP ).
26 If multiple \fI devices \fP are specified, btrfs is created
27 spanning across the specified \fI devices\fP.
30 \fB\-A\fR, \fB\-\-alloc\-start \fIoffset\fR
31 Specify the offset from the start of the device to start the btrfs filesystem. The default value is zero, or the start of the device.
33 \fB\-b\fR, \fB\-\-byte\-count \fIsize\fR
34 Specify the size of the resultant filesystem. If this option is not used,
35 mkfs.btrfs uses all the available storage for the filesystem.
37 \fB\-d\fR, \fB\-\-data \fItype\fR
38 Specify how the data must be spanned across the devices specified. Valid
39 values are raid0, raid1, raid10 or single.
41 \fB\-l\fR, \fB\-\-leafsize \fIsize\fR
42 Specify the leaf size, the least data item in which btrfs stores data. The
43 default value is the page size.
45 \fB\-L\fR, \fB\-\-label \fIname\fR
46 Specify a label for the filesystem.
48 \fB\-m\fR, \fB\-\-metadata \fIprofile\fR
49 Specify how metadata must be spanned across the devices specified. Valid
50 values are raid0, raid1, raid10 or single.
52 \fB\-M\fR, \fB\-\-mixed\fR
53 Mix data and metadata chunks together for more efficient space
54 utilization. This feature incurs a performance penalty in
55 larger filesystems. It is recommended for use with filesystems
58 \fB\-n\fR, \fB\-\-nodesize \fIsize\fR
59 Specify the nodesize. By default the value is set to the pagesize.
61 \fB\-s\fR, \fB\-\-sectorsize \fIsize\fR
62 Specify the sectorsize, the minimum block allocation.
64 \fB\-r\fR, \fB\-\-rootdir \fIrootdir\fR
65 Specify a directory to copy into the newly created fs.
67 \fB\-K\fR, \fB\-\-nodiscard \fR
68 Do not perform whole device TRIM operation by default.
70 \fB\-V\fR, \fB\-\-version\fR
71 Print the \fBmkfs.btrfs\fP version and exit.
74 is part of btrfs-progs. Btrfs is currently under heavy development,
75 and not suitable for any uses other than benchmarking and review.
76 Please refer to the btrfs wiki
77 http://btrfs.wiki.kernel.org for further details.