From 026e056b479e3b1000bf8fd028fa1be3ec3174d6 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sun, 1 Oct 2023 12:40:23 +0300 Subject: [PATCH] bcachefs: add page (#10759) * bcachefs: add page --------- Co-authored-by: K.B.Dharun Krishna --- pages/linux/bcachefs.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/linux/bcachefs.md diff --git a/pages/linux/bcachefs.md b/pages/linux/bcachefs.md new file mode 100644 index 000000000..675b39cea --- /dev/null +++ b/pages/linux/bcachefs.md @@ -0,0 +1,28 @@ +# bcachefs + +> Manage `bcachefs` filesystems/devices. +> More information: . + +- Format a partition with `bcachefs`: + +`sudo bcachefs format {{path/to/partition}}` + +- Mount a `bcachefs` filesystem: + +`sudo bcachefs mount {{path/to/partition}} {{path/to/mountpoint}}` + +- 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=hdd` + +- Mount a multidevice filesystem: + +`sudo bcachefs mount {{path/to/partition1}}:{{path/to/partition2}} {{path/to/mountpoint}}` + +- Display disk usage: + +`bcachefs fs usage --human-readable {{path/to/mountpoint}}` + +- Display help: + +`bcachefs`