Bcachefs: Difference between revisions
m Citation needed. Especially regarding stability compared to ZFS |
Console4852 (talk | contribs) github issue referenced in wiki is now fixed, so remove note. |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 57: | Line 57: | ||
--label=hdd.hdd3 /dev/sde \ | --label=hdd.hdd3 /dev/sde \ | ||
--label=ssd.ssd1 /dev/sdf \ | --label=ssd.ssd1 /dev/sdf \ | ||
--label=ssd.ssd2 /dev/sdg | --label=ssd.ssd2 /dev/sdg \ | ||
--foreground_target=ssd \ | --foreground_target=ssd \ | ||
--promote_target=ssd \ | --promote_target=ssd \ | ||
Line 71: | Line 71: | ||
--label=hdd.hdd3 /dev/sde \ | --label=hdd.hdd3 /dev/sde \ | ||
--label=ssd.ssd1 /dev/sdf \ | --label=ssd.ssd1 /dev/sdf \ | ||
--label=ssd.ssd2 /dev/sdg | --label=ssd.ssd2 /dev/sdg \ | ||
--foreground_target=ssd \ | --foreground_target=ssd \ | ||
--promote_target=ssd \ | --promote_target=ssd \ | ||
Line 113: | Line 113: | ||
== Tips and tricks == | == Tips and tricks == | ||
=== NixOS installation on bcachefs === | === NixOS installation on bcachefs === | ||
Line 166: | Line 133: | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
# mkfs.fat -F 32 -n boot /dev/sda1 | # mkfs.fat -F 32 -n boot /dev/sda1 | ||
# nix shell -p bcachefs-tools | |||
# mkfs.bcachefs -L nixos /dev/sda2 | # mkfs.bcachefs -L nixos /dev/sda2 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 173: | Line 141: | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
# nix-shell -p keyutils --run 'keyctl link @u @s' | # nix-shell -p keyutils --run 'keyctl link @u @s' | ||
# nix-shell -p bcachefs-tools | |||
# bcachefs format --encrypted /dev/sda2 | # bcachefs format --encrypted /dev/sda2 | ||
# bcachefs unlock /dev/sda2 | # bcachefs unlock /dev/sda2 | ||
Line 193: | Line 162: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
And using it like <code>UUID=<UUID></code> in place of <code>/dev/sda1:/dev/sdb1</code> or even just <code>/dev/sda</code>. | And using it like <code>UUID=<UUID></code> in place of <code>/dev/sda1:/dev/sdb1</code> or even just <code>/dev/sda</code>. | ||
Continue installation as recommended by the [https://nixos.org/manual/nixos/stable/index.html#ch-installation NixOS manual]. | Continue installation as recommended by the [https://nixos.org/manual/nixos/stable/index.html#ch-installation NixOS manual]. | ||
=== Remote encrypted disk unlocking === | === Remote encrypted disk unlocking === |