Skip to main content
Version: 7.26

Btrfs

info

This feature requires the rose-storage package; see Storage.

Btrfs is a feature-rich copy-on-write file system. It is the default file system of some popular Linux distributions, such as Fedora. The most significant features are:

  • Bitrot protection (when used in Btrfs-RAID mode).
  • Subvolumes.
  • Snapshots.
  • Snapshot transfer between devices.

Quickstart: format a disk as Btrfs​

Format a single disk to Btrfs and use it under the default mount point:

/disk/print
/disk/format <disk-name> file-system=btrfs
/disk/btrfs/filesystem/print

Once formatted, the disk appears with a new Btrfs filesystem entry under /disk/btrfs/filesystem/print, labelled <disk-name>-fs by default (the label can be changed with /disk/btrfs/filesystem/set <label> label=MyLabel). The disk mounts like any other drive and is accessible in /file. From here you can label the file system, create subvolumes and snapshots, combine several disks into a Btrfs RAID, or set up routine maintenance.

The Btrfs functionality lives under three menus:

See also​

  • Btrfs RAID - RAID1 and RAID10 setups, disk replacement, and the Braid check scripts.
  • Btrfs subvolumes and snapshots - creating subvolumes, taking snapshots, transferring snapshots between devices.
  • Btrfs maintenance - periodic scrubbing, balancing, automated snapshot rotation, and free-space management.