whatis btrfs

Btrfs

Also known as: butter FS, B-tree filesystem

A copy-on-write Linux filesystem with snapshots, subvolumes, transparent compression, and data checksums built in.

What Is Btrfs in Linux?

Btrfs never overwrites data in place; it writes new blocks and updates pointers. That makes instant snapshots cheap, so you can snapshot the root filesystem before an update and roll back if something breaks.

Subvolumes act like separate filesystems within one partition, and zstd compression often saves significant space. Fedora and openSUSE use Btrfs by default. Its RAID 5/6 modes are still not recommended for important data.

Example

sudo btrfs subvolume snapshot -r / /.snapshots/pre-update