bcachefs
Next-generation copy-on-write filesystem tools
TLDR
SYNOPSIS
bcachefs command [options] [arguments]
DESCRIPTION
bcachefs is a next-generation copy-on-write filesystem for Linux that combines features of btrfs and ZFS with the performance characteristics of bcache. It provides checksumming, compression, encryption, snapshots, and multi-device support.The filesystem supports tiered storage with automatic data movement between fast (SSD) and slow (HDD) devices, making it suitable for hybrid storage configurations.
SUBCOMMANDS
format
Create a new bcachefs filesystem.mount
Mount a bcachefs filesystem.fsck
Check and repair a filesystem.fs usage
Display filesystem disk usage.device
Manage devices in a filesystem (add, remove, evacuate, set state).subvolume
Manage subvolumes and snapshots.data rereplicate
Rewrite data so all extents meet their replication requirements.set-fs-option
Change filesystem options on a mounted or offline filesystem.show-super
Print the contents of a filesystem superblock.unlock
Unlock an encrypted filesystem before mounting.
CAVEATS
bcachefs was merged into the mainline Linux kernel in version 6.7 (released January 2024). Older kernels require building the external module. The filesystem is still under active development; keep backups of important data. The bcachefs userspace tools must match the on-disk format expected by your kernel.
HISTORY
bcachefs was developed by Kent Overstreet, who also created bcache. Development began around 2015 as an evolution of bcache into a full-fledged filesystem, and it was merged into mainline Linux in kernel 6.7 in early 2024.
SEE ALSO
bcachefs-device(8), mkfs(8), fsck(8), mount(8), btrfs(8)
