CmdID

CmdID / Commands

bcachefs

Manage bcachefs filesystems/devices. tldr-pages

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Manage bcachefs filesystems/devices. Some subcommands such as device have their own usage documentation.

Format a partition with bcachefs

sudo bcachefs format path/to/partitionIdentify

Mount a bcachefs filesystem

sudo bcachefs mount path/to/partition path/to/mount_pointIdentify

Create a RAID 0 filesystem where an SSD acts as a cache and an HDD acts as a long-term storage

sudo bcachefs format --label ssd.ssd1 path/to/ssd_partition --label hdd.hdd1 path/to/hdd_partition --replicas 1 --foreground_target ssd --promote_target ssd --background_target hddIdentify

Mount a multidevice filesystem

sudo bcachefs mount path/to/partition1:path/to/partition2 path/to/mount_pointIdentify

Display disk usage

bcachefs fs usage --human-readable path/to/mount_pointIdentify

Set replicas after formatting and mounting

sudo bcachefs set-fs-option --metadata_replicas 2 --data_replicas 2 path/to/partitionIdentify

Force bcachefs to ensure all files are replicated

sudo bcachefs data rereplicate path/to/mount_pointIdentify

Create a snapshot of a particular directory

bcachefs subvolume snapshot path/to/directory path/to/snapshotIdentify