5

2023-10-31, Bcachefs Merged Into The Linux 6.7 Kernel:

Remark:

It's known it's easyly possible to update the LM21 used Kernel 5.x to the "Kernel 6.1.0-1004-0em" the following way, but this kernel dosnt support bcachefs.

See the follow sample:

uname -r
# Kernel 5.x...

Install the new Kernel version:

sudo apt-get install linux-oem-22.04c

Reboot

Check the new Kernel version:

uname -r
Kernel 6.1.0-1004-0em

It is also known that with the follow GUI based Ubuntu Mainline Kernel Installer software, it should be possible to replace an obsolete kernel supported by LM 21. However, this GUI software does not seem to allow the selection of either of the two bcachefs-supporting kernels mentioned above:

Some links:

3 Answers 3

0

Add bcachefs Ubuntu kernel PPA bcachefs to your system:

"They get built for the latest Ubuntu development release, and are a regular Ubuntu kernel with all the Ubuntu sauce (zfs, nvidia modules, virtualbox, etc) rebased onto bcachefs master.

Adding the PPA with sudo add-apt-repository ppa:raof/bcachefs and then installing the linux-bcachefs package will get you the most recent kernel, and keep updating that kernel as I upload new versions. You also probably want bcachefs-tools from there, too."

Source: https://web.archive.org/web/20230421084110/https://www.reddit.com/r/bcachefs/comments/h797z8/ubuntu_bcachefs_ppa/

Or build your own kernel:

Thats what the bcachefs Howto tell about:

"Build the bcachefs-kernel branch.

Firt run the following command to download a kernel branch with the bcachefs patches.

git clone https://evilpiepirate.org/git/bcachefs.git

This is slighly more complicated to explain. It's best you look up a tutorial for your specific distribution.

During the configuration make sure you enable CONFIG_BCACHEFS_FS. To check run grep CONFIG_BCACHEFS_FS .config in in the kernel source.

Tip if your distro kernel supports it you can extract the .config used by your distribution, by running cat /proc/config.gz | gunzip > /tmp/distro.config.

Source: https://web.archive.org/web/20230421125110/https://bcachefs.org/Howto/

1
  • THX. Did you test it ?
    – Alfred.37
    Commented Feb 12, 2023 at 22:56
-1

What the gento howto tell about:

"Installation

While the bcachefs developers are working towards mainlining the filesystem, as of November 2022 the easiest way to try bcachefs is to check out the bcachefs sources and build a new kernel.

user $git clone https://evilpiepirate.org/git/bcachefs.git
user $cd bcachefs
user $cat /proc/config.gz | gunzip > .config

An alternative to this is to get a copy of a bcachefs patch from a patchset such as linux-tkg and apply it to the system kernel as a user patch. Kernel configuration

Activate the following kernel options:

KERNEL bcachefs filesystem support (BCACHEFS_FS)

File Systems ---> <*> bcachefs filesystem support

Note If the crc32c-intel module is available and bcachefs loads before it (or is built in) the CRC32 hardware instruction will not be used resulting in increased system resource utilisation. Ensure that the module loads before bcachefs or build it into the kernel to avoid this. Additional software

Install sys-fs/bcachefs-tools: root #emerge --ask sys-fs/bcachefs-tools"

Source: https://wiki.gentoo.org/wiki/Bcachefs

Feel free to improve the answer.

1
  • THX. Did you test it ?
    – Alfred.37
    Commented Feb 12, 2023 at 22:54
-1
+250

Linux Mint 21 should be a Ubuntu derivate, so the chache should exist, its possible to build a bcachefs supporting kernel by follow toturial:

its describe the follow steps:

  • Add Sources
  • Install Dependencies
  • Get Bcachefs Source Code
  • Build BcacheFS
  • Get your kernel config:
  • Configure the kernel
  • Build the kernel
  • Install
  • Creating a BcacheFS Volume
  • Mounting a BcacheFS Volume
  • Adding the mount command to cron

For more details, see:

Feel free to improve.

5
  • 1
    I see no reason for three separate answers. You should be able to summarise them in a single answer.
    – Kusalananda
    Commented Feb 12, 2023 at 22:49
  • @Alfred.37, That seems to me to be the most promising answer so far. THX !!! Can you possibly fill it with more details please?
    – Alfred.37
    Commented Feb 12, 2023 at 23:19
  • Pls replace "bbcachefs" by "bcachefs".
    – Alfred.37
    Commented Feb 16, 2023 at 8:36
  • "bbcachefs" replaced by "bcachefs" Done. THX
    – Alfred.37
    Commented Feb 17, 2023 at 1:49
  • Why are you commenting to yourself? Were you using two separate accounts?
    – Kusalananda
    Commented Apr 9 at 21:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .