diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-11 17:26:07 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-11 17:26:13 -0400 |
commit | 2a2219526e2243d95dd283da73f01d6de2b62a77 (patch) | |
tree | f99faabd5cc8dae66149d2e9d4ec509ae6ec02bf /GettingStarted.mdwn | |
parent | 31a414aa45a9962946a4390d7a329766a1f9acc3 (diff) |
Big update
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'GettingStarted.mdwn')
-rw-r--r-- | GettingStarted.mdwn | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/GettingStarted.mdwn b/GettingStarted.mdwn new file mode 100644 index 0000000..0776bca --- /dev/null +++ b/GettingStarted.mdwn @@ -0,0 +1,29 @@ +# Getting started + +Bcachefs is not yet upstream - you'll have to +[[build a kernel|https://kernelnewbies.org/KernelBuild]] to use it. + +First, check out the bcachefs kernel and tools repositories: + + git clone https://evilpiepirate.org/git/bcachefs.git + git clone https://evilpiepirate.org/git/bcachefs-tools.git + +Build and install as usual - make sure you enable `CONFIG_BCACHEFS_FS`. Then, to +format and mount a single device with the default options, run: + + bcachefs format /dev/sda1 + mount -t bcachefs /dev/sda1 /mnt + +For a multi device filesystem, with sda1 caching sdb1: + + bcachefs format /dev/sd[ab]1 \ + --foreground_target /dev/sda1 \ + --promote_target /dev/sda1 \ + --background_target /dev/sdb1 + mount -t bcachefs /dev/sda1:/dev/sdb1 /mnt + +This will configure the filesystem so that writes will be buffered to /dev/sda1 +before being written back to /dev/sdb1 in the background, and that hot data +will be promoted to /dev/sda1 for faster access. + +See `bcachefs format --help` for more options. |