Jump to: navigation, search


1,597 bytes added, 3 years ago
no edit summary
* ''subvolumes'' - these are what get mounted and you store files in.
* ''snapshots'' - a read-only copy of a subvolume at a given point in time and/or read-write copy of a ''subvolume'' in time (aka clone).
== Creating a Volume ==
To create a basic BTRFS volume, you will need an extra empty disk. Perform the following steps:
# ##i## mkfs.btrfs /dev/sdxy
btrfs-progs v4.17.1
See for more information.
Detected a SSD, turning off metadata duplication. Mkfs with -m dup if you want to force metadata duplication.
Performing full device TRIM /dev/sdj (223.57GiB) ...
Label: (null)
UUID: d6bcba6e-8fd5-41fc-9bb4-79628c5c928c
Node size: 16384
Sector size: 4096
Filesystem size: 223.57GiB
Block group profiles:
Data: single 8.00MiB
Metadata: single 8.00MiB
System: single 4.00MiB
SSD detected: yes
Incompat features: extref, skinny-metadata
Number of devices: 1
1 223.57GiB /dev/sdxy
{{c|/dev/sdxy}} should be an unused disk. You may need to use the following command if this disk contains any pre-existing data on it:
# ##i## mkfs.btrfs -f /dev/sdxy
Now you can mount the created volume as you would mount any other linux filesystem.
# ##i## mkdir /data
# ##i## mount /dev/sdxy /data
# ##i## mount
/dev/sdxy on /data type btrfs (rw,relatime,ssd,space_cache,subvolid=5,subvol=/)
You should now be at the point where you can begin to use BTRFS for a variety of tasks. While there is a lot more to BTRFS than what is covered in this short introduction, you should now have a good understanding of the fundamental concepts on which BTRFS is based.

Navigation menu