Problem: Module zfs not found in directory /lib/modules/6.12.47+rpt-rpi-v8

G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=17
G_DIETPI_VERSION_RC=2
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
G_LIVE_PATCH_STATUS\[0\]=‘not applicable’
bookworm 0
Linux Nasbeery 6.12.47+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1\~bookworm (2025-09-16) aarch64 GNU/Linux
dietpi@Nasbeery:\~$ dpkg --print-architecture
arm64
dietpi@Nasbeery:\~$ echo $G_HW_MODEL_NAME
RPi 4 Model B (aarch64)

Updated from 9.14.2 to v9.16.3

Failed to start zfs-load-module.service - Install ZFS kernel module.
zfs-load-module.service: Failed with result ‘exit-code’.
zfs-load-module.service: Main process exited, code=exited, status=1/FAILURE
modprobe: FATAL: Module zfs not found in directory /lib/modules/6.12.47+rpt-rpi-v8
Starting zfs-load-module.service - Install ZFS kernel module…

Pls fill the form

Required

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • Architecture | dpkg --print-architecture
  • SBC model | echo $G_HW_MODEL_NAME

updated infos above

Did you check this thread:
https://dietpi.com/forum/t/solved-zfs-support-in-dietpi/22118/15

thanks, it doesn’t helped. Now I figured out:

my solution for rpi4 was:

uname -r
apt search linux-headers-$(uname -r)
apt search linux-headers-6.12.47
sudo apt install dkms
sudo dkms autoinstall
sudo apt install linux-headers-6.12.47+rpt-rpi-v8

sudo apt install dkms linux-headers-$(uname -r)
sudo apt install --reinstall zfs-dkms
sudo apt install zfs-dkms zfsutils-linux zfs-zed

At best install the headers meta package instead of the versioned one. Else you need to install new headers on every kernel upgrade manually:

apt install linux-headers-rpi-v8

That one depends on the respective latest versioned one, like linux-image-rpi-v8 does. So whenever the kernel is upgraded, the headers are as well, and DKMS can compile the new ZFS module right away.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.