Bcachefs: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny Add section on NixOS installation |
||
Line 59: | Line 59: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== NixOS installation on Bcachefs === | |||
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 | |||
<syntaxhighlight lang="console"> | |||
# parted /dev/sda -- mklabel msdos | |||
# parted /dev/sda -- mkpart primary 1MB 512MB | |||
# parted /dev/sda -- set 1 boot on | |||
# parted /dev/sda -- mkpart primary 512MB 100% | |||
</syntaxhighlight> | |||
Formatting the boot partition <code>/dev/sda1</code> and the root filesystem <code>/dev/sda2</code> | |||
<syntaxhighlight lang="console"> | |||
mkfs.ext4 -L boot /dev/sda1 | |||
mkfs.bcachefs -L nixos /dev/sda2 | |||
</syntaxhighlight> | |||
Mount filesystems | |||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
mount -t bcachefs /dev/sda2 /mnt | |||
mkdir /mnt/boot | |||
mount /dev/disk/by-label/boot /mnt/boot | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Continue installation as recommended by the NixOS manual. | |||
[[Category:Filesystem]] | [[Category:Filesystem]] |