On Ubuntu and derivatives, there are multiple ways how ZFS volumes can be hidden from the volume listing in Nautilus (GNOME) or Caja (MATE). It is possible to hide individual volumes by editing /etc/fstab or blacklisting all volumes in the udev rules configuration.
Hiding individual partitions
Individual volumes can by hidden using the “Disks” utility (which will add or modify entries in /etc/fstab).
- Open the “Disks” utilty
- Select (click on) the partition you want to hide
- Click on the “Additional partition options” icon
- Select “Edit mount options” from the menu.
- Unset “User session defaults”
- De-select “Show in user interface”
NOTE: You may want to de-select “Mount at system startup” as well.
If you want to edit /etc/fstab directly, you have to create an entry for the desired partition and omit the “x-gvfs-show” mount option. Entries not present in /etc/fstab are treated the default way (usually they are visible).
Hiding all ZFS volumes
All ZFS volumes can be hidden by blacklisting them in the udisks2 udev configuration. Simply create a /etc/udev/rules.d/80-udisks2-zvol.rules file with the following contents:
# ZFS volumes
KERNEL=="zd*", ENV{UDISKS_IGNORE}="1"