openzfsonosx / zfs

OpenZFS on OS X

Home Page:https://openzfsonosx.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot mount (encrypted) filesystems

herrernst opened this issue · comments

I have a pool created with ZFS on Linux with encrypted filesystems, but unfortunately I cannot mount them on O3X.

sudo zpool import -o readonly=on tank

zfs list
NAME                                             USED  AVAIL  REFER  MOUNTPOINT
tank                   1.64T   116G   102M  /Volumes/tank
tank/encrypted           78.2G   116G  67.3G  /Volumes/tank/encrypted

zfs mount
tank   /Volumes/tank

zfs mount -l tank/encrypted
cannot mount '/Volumes/tank/encrypted': failed to create mountpoint

I've tried with both zfs-1.9.0 and zfs-1.9.1-rc1 on latest 10.14 Mojave.

That specific error says it can not create the mountpoint /Volumes/tank/encrypted presumably because /Volumes/tank is read-only.

Oh, I understand. If I unmount /Volumes/tank before, I can mount /Volumes/tank/encrypted afterwards.