Mojave 10.14.2 apfs /etc/fstab fails to mount volumes inside apfs file system ... Mojave hfs+ fstab mounts as expected
This post is a report of Mojave 10.14.2 /etc/fstab failure to mount apfs volumes inside an apfs root and the hfs+ workaround (which is disappointing as it means giving up on apfs for now, but acceptable as hfs+ is perfectly fine, if dated). This failure does not occur in High Sierra which behaves as expected.
Report: Mojave 10.14.2 fstab fails to mount apfs volumes inside an apfs root file system.
High Sierra 10.13.6 does not have this problem and succeeds mounting an apfs root file system
Mojave 10.14.2 fails to mount an apfs UUID Volume into /Users
Mojave 10.14.2 apfs /etc/fstab FAIL:
/etc/fstab entry when root volume is apfs in Mojave
UUID=5DD4B4B1-EED8-4AA3-859D-D058D007C48C /Users apfs rw,auto
High Sierra 10.13.6 apfs /etc/fstab SUCCESS:
/etc/fstab entry when root volume is apfs in High Sierra (exact same file)
UUID=5DD4B4B1-EED8-4AA3-859D-D058D007C48C /Users apfs rw,auto
Mojave 10.14.2 hfs /etc/fstab Success:
Mojave 10.14.2 successfully mounts an hfs+ UUID Volume into /Users
UUID=4650C828-EC7C-36F0-9046-87D065ADBC75 /Users hfs rw,auto
If you are using a separate logical volume for /Users, then it appears that in Mojave 10.14.2 the condition of using a boot volume formatted in apfs and mounting a /Users volume formatted in apfs will fail with no obvious error message during boot-up. Subsequent tests after boot, using diskutil mount reports "Operation not permitted"
There are four possible permutations and I have only tested two:
FAIL: boot-apfs and /Users apfs -> /etc/fstab fails to mount the apfs volume into /Users
SUCCESS: boot-hfs+ and /Users hfs+ -> /etc/fstab operates as expected and succeeds at mounting the hfs volume into /Users.
Hence, for anyone who has converted their boot volume to apfs, it appears that /etc/fstab cannot be used to mount /Users into the filesystem at boot time.
A workaround is to copy the root disk with the OS and Apps to an hfs+ partition and the /Users disk into an hfs+ partition, and then mount the /Users directory using /etc/fstab.
I haven't tested whether a root volume in Mojave formatted as hfs+ can mount an apfs formatted volume into /Users, but it seems likely since the diskutil experiments indicated a problem with apfs.
Best,
Parker