Skip to content

Instantly share code, notes, and snippets.

@dapperfu
Last active October 2, 2020 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dapperfu/426a60313f21fa57e69c55dcb6f14344 to your computer and use it in GitHub Desktop.
Save dapperfu/426a60313f21fa57e69c55dcb6f14344 to your computer and use it in GitHub Desktop.
Ubuntu 20.04 new install fails to boot if install disk was previously part of a ZFS pool.

Issue

Ubuntu 20.04 will fail to boot if you install to a disk that was previously part of a ZFS pool.

A fresh Ubuntu 20.04 install will drop to (initramfs) prompt without much indication of why it failed.

mount has an issue where it doesn't automatically detect the file system (ext4). wipefs shows left over ZFS settings.

Resolution

Use wipefs to clear zfs bits from a disk:

wipefs --all --force /dev/sdX2
wipefs --all --force /dev/sdX1
wipefs --all --force /dev/sdX

Should wipefs be part of the installer?

Install as normal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment