bcachefs
linux
Manage `bcachefs` filesystems/devices. Some subcommands such as `device` have their own usage documentation.
More info →Options (2)
-l, --labelbooleanCreate a RAID 0 filesystem where an SSD acts as a cache and an HDD acts as a long-term storage
Example:
sudo bcachefs format {{[-l|--label]}} {{ssd.ssd1}} {{path/to/ssd_partition}} {{[-l|--label]}} {{hdd.hdd1}} {{path/to/hdd_partition}} --replicas 1 --foreground_target {{ssd}} --promote_target {{ssd}} --background_target {{hdd}}-h, --human-readablebooleanDisplay disk usage
Example:
bcachefs fs usage {{[-h|--human-readable]}} {{path/to/mountpoint}}Examples (8)
Create a RAID 0 filesystem where an SSD acts as a cache and an HDD acts as a long-term storage
Mount a multidevice filesystem
Display disk usage
bcachefs fs usage [-h|--human-readable] path/to/mountpointSet replicas after formatting and mounting
Force `bcachefs` to ensure all files are replicated
Create a snapshot of a particular directory
bcachefs subvolume snapshot path/to/directory path/to/snapshotmade by @shridhargupta | data from tldr-pages