Bcachefs: Difference between revisions

imported>Onny
Update note encryption key bug still affects 23.05
imported>Onny
Updated installation example to UEFI setup
Line 63: Line 63:
Using the installation media generated above, continue the installation as usual following the [https://nixos.org/manual/nixos/stable/index.html#ch-installation instructions of the NixOS manual].  
Using the installation media generated above, continue the installation as usual following the [https://nixos.org/manual/nixos/stable/index.html#ch-installation instructions of the NixOS manual].  


For a BIOS installation, the partitioning needs to be adjusted as following
For a UEFI installation, the partitioning needs to be adjusted as following
 
{{note|Be sure on which disk you'll perform these filesystem operations. All existing data on it will be erased.}}


<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
# parted /dev/sda -- mklabel msdos
# parted /dev/sda -- mklabel gpt
# parted /dev/sda -- mkpart primary 1MB 512MB
# parted /dev/sda -- mkpart ESP fat32 1MB 512MB
# parted /dev/sda -- set 1 boot on
# parted /dev/sda -- set 1 esp on
# parted /dev/sda -- mkpart primary 512MB 100%
# parted /dev/sda -- mkpart primary 512MB 100%
</syntaxhighlight>
</syntaxhighlight>
Line 75: Line 77:


<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
# mkfs.ext4 -L boot /dev/sda1
# mkfs.fat -F 32 -n boot /dev/sda1
# mkfs.bcachefs -L nixos /dev/sda2
# mkfs.bcachefs -L nixos /dev/sda2
</syntaxhighlight>
</syntaxhighlight>