Show Menu
Cheatography

Btrfs Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Mount options

better compre­ssion
compre­ss=zlib
faster compre­ssion
compre­ss=lzo
SSD optimi­zation
ssd

Flow of Duplic­ation

add a new decive
btrfs device add newdecive mountpoint
start duplic­ation
btrfs balance start mountpoint
detouch the device
btrfs device remove device mountpoint
The devices that are used in duplic­ation have the same partition label. So you should check their partition numbers by 'lsblk' carefully.

Snapsh­oting

check subvolumes
btrfs sub list .
mkdir the holder of snapshots
mkdir ./snaps
make snapshot
btrfs sub snap ./subvolume snaps/name