我在 VM 中运行 Debian 10(使用 KVM),并且想以非 root 用户身份使用 ZFS。这就是我所做的。
我将此行添加到我的sources.list 文件中
deb http://deb.debian.org/debian buster-backports main contrib non-free
Run Code Online (Sandbox Code Playgroud)
这是我完整的sources.list 文件
deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free
deb http://deb.debian.org/debian buster-backports main contrib non-free
Run Code Online (Sandbox Code Playgroud)
我安装了ZFS
sudo apt install zfs-dkms zfsutils-linux -y
Run Code Online (Sandbox Code Playgroud)
然后在安装过程中出现以下错误
Failed to start Mount ZFS filesystems
Run Code Online (Sandbox Code Playgroud)
我通过运行解决了我的问题
sudo /sbin/modprobe zfs
sudo …Run Code Online (Sandbox Code Playgroud)