mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 07:55:24 +02:00
bcachefs: add page (#10759)
* bcachefs: add page --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
5036645bdd
commit
026e056b47
1 changed files with 28 additions and 0 deletions
28
pages/linux/bcachefs.md
Normal file
28
pages/linux/bcachefs.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# bcachefs
|
||||
|
||||
> Manage `bcachefs` filesystems/devices.
|
||||
> More information: <https://bcachefs.org/bcachefs-principles-of-operation.pdf>.
|
||||
|
||||
- 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`
|
Loading…
Add table
Reference in a new issue