btrfs - weakish/cheat GitHub Wiki
Create new partition
# mkfs.btrfs -L mylabel /dev/partition
To overwrite the existing partition table with Btrfs:
# mkfs.btrfs /dev/sdX
One can use subvolumes to simulate partitions.
Mount options
Btrfs on a SSD for system installation and an emphasis on maximizing performance.
noatime,discard,ssd,autodefrag,compress=lzo,space_cache
Btrfs on a HDD for archival purposes with an emphasis on maximizing space.
noatime,autodefrag,compress-force=lzo,space_cache
Compression can also be enabled per-file without using the compress
mount option; simply apply chattr +c
to the file or directory.
Displaying used/free space
# btrfs filesystem df DIR