How To Install zfs-initramfs on Ubuntu 20.04
Introduction
In this tutorial we learn how to install zfs-initramfs
on Ubuntu 20.04.
What is zfs-initramfs
zfs-initramfs is:
The Z file system is a pooled filesystem designed for maximum data integrity, supporting data snapshots, multiple copies, and data checksums.
This package adds OpenZFS to the system initramfs with a hook for the initramfs-tools infrastructure. Task: ubuntu-live, xubuntu-live, ubuntustudio-dvd-live, ubuntukylin-live, ubuntu-mate-live, ubuntu-budgie-live
Package: zfs-initramfs Architecture: amd64 Version: 0.8.3-1ubuntu12.9 Priority: extra Section: kernel Source: zfs-linux Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian ZFS on Linux maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 110 Depends: busybox-initramfs | busybox-static | busybox, initramfs-tools, zfsutils-linux (>= 0.8.3-1ubuntu12.9) Breaks: zfsutils-linux (<= 0.7.11-2) Replaces: zfsutils-linux (<= 0.7.11-2) Filename: pool/main/z/zfs-linux/zfs-initramfs_0.8.3-1ubuntu12.9_amd64.deb Size: 23596 MD5sum: 9b3f3916fdc7b0bd3866dd8899c6f445 SHA1: 0267179337066776d7bc219e499f8b28c5c970dd SHA256: 8b3fb9b66a9dcf7f5a75ad068bea384f13564f1ef55189f3900ff49b8424791c SHA512: 19eb0e6a990ab6fd2329c8b8792b94f2e45dfe7c85736fa342725b77dcd9037b65f1b142bbc4b2855e991a9f4a2559ce95d87b386b9a678e22d1268b999b46f4 Homepage: https://zfsonlinux.org/ Description-en: OpenZFS root filesystem capabilities for Linux - initramfs The Z file system is a pooled filesystem designed for maximum data integrity, supporting data snapshots, multiple copies, and data checksums.
This package adds OpenZFS to the system initramfs with a hook for the initramfs-tools infrastructure. Task: ubuntu-live, xubuntu-live, ubuntustudio-dvd-live, ubuntukylin-live, ubuntu-mate-live, ubuntu-budgie-live
Package: zfs-initramfs Architecture: amd64 Version: 0.8.3-1ubuntu12 Priority: extra Section: kernel Source: zfs-linux Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian ZFS on Linux maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 109 Depends: busybox-initramfs | busybox-static | busybox, initramfs-tools, zfsutils-linux (>= 0.8.3-1ubuntu12) Breaks: zfsutils-linux (<= 0.7.11-2) Replaces: zfsutils-linux (<= 0.7.11-2) Filename: pool/main/z/zfs-linux/zfs-initramfs_0.8.3-1ubuntu12_amd64.deb Size: 23592 MD5sum: e7cd83c43e730cb268a5b84f2760ff11 SHA1: 3f32aca1e7f718b0e03c788dd506c9168c967f39 SHA256: fe2ee630de2827f10c2ef4c41cea2690832c35f61a769eeeb28794fd1bb2f239 Homepage: https://zfsonlinux.org/ Description-en: OpenZFS root filesystem capabilities for Linux - initramfs The Z file system is a pooled filesystem designed for maximum data integrity, supporting data snapshots, multiple copies, and data checksums.
This package adds OpenZFS to the system initramfs with a hook for the initramfs-tools infrastructure. Task: ubuntu-live, xubuntu-live, ubuntustudio-dvd-live, ubuntukylin-live, ubuntu-mate-live, ubuntu-budgie-live
There are three methods to install zfs-initramfs
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install zfs-initramfs Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install zfs-initramfs
using apt-get
by running the following command:
sudo apt-get -y install zfs-initramfs
Install zfs-initramfs Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install zfs-initramfs
using apt
by running the following command:
sudo apt -y install zfs-initramfs
Install zfs-initramfs Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install zfs-initramfs
using aptitude
by running the following command:
sudo aptitude -y install zfs-initramfs
How To Uninstall zfs-initramfs on Ubuntu 20.04
To uninstall only the zfs-initramfs
package we can use the following command:
sudo apt-get remove zfs-initramfs
Uninstall zfs-initramfs And Its Dependencies
To uninstall zfs-initramfs
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove zfs-initramfs
Remove zfs-initramfs Configurations and Data
To remove zfs-initramfs
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge zfs-initramfs
Remove zfs-initramfs configuration, data, and all of its dependencies
We can use the following command to remove zfs-initramfs
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge zfs-initramfs
References
Summary
In this tutorial we learn how to install zfs-initramfs
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.