I already figured a means, and it kinda works, but it surely simply feels flawed. Is there a extra correct technique to do it?
I lately upgraded from Mojave to Ventura and abruptly realized I misplaced all my root folders, and I am not capable of create one. I dug via Q&A and located information about /and many others/artificial.conf
– but it surely might simply create symlinks solely, and I discovered that typescript-eslint
for instance can’t work with root symlinks, it wants actual listing.
My later analysis resulted in both native NFS
share or macFUSE
bindfs
. I attempted first, as a result of it’s already put in and appears simpler. I had /work
and /information
directories and I moved them to /choose/work
and /choose/information
.
Created NFS share:
/choose/information /choose/work 127.0.0.1 ::1
sudo launchctl begin com.apple.rpcbind
sudo nfsd allow
sudo nfsd cease
sudo nfsd begin
Created empty mount factors in root listing:
information
work
Restarted, checked, mount factors are created, and showmount -e
is okay.
Handbook NFS mounting is okay too sudo mount -t nfs 127.0.0.1:/choose/information /information
, checked, sudo umount /information
Now I am making an attempt to mount these on startup.
First
I attempted /and many others/fstab
– it’s not mounted on restart, and sudo automount -cv
reveals bizarre error automount: /information factors to sudden location /information, as an alternative of /System/Volumes/Knowledge/information
and it additionally creates symlink /System/Volumes/Knowledge/information -> /choose/information
. Root /information
stays empty. Right here is my a part of /and many others/fstab
127.0.0.1:/choose/information /information nfs rw,actimeo=1,onerous,bg
127.0.0.1:/choose/work /work nfs rw,actimeo=1,onerous,bg
Second
I attempted /and many others/auto_master
. I obtained the identical error as above, and after a whole lot of trial and error I got here to this answer:
- my a part of
/and many others/auto_master
/- /and many others/auto_nfs
/System/Volumes/Knowledge/../../../information -fstype=nfs,rw,actimeo=1,onerous,bg 127.0.0.1:/choose/information
/System/Volumes/Knowledge/../../../work -fstype=nfs,rw,actimeo=1,onerous,bg 127.0.0.1:/choose/work
It really works, continued between reboots and sudo automount -cv
reveals correct
automount: /System/Volumes/Knowledge/house up to date (/house -> /System/Volumes/Knowledge/house)
automount: /information up to date
automount: /work up to date
automount: no unmounts
Is there a correct not hacky means to do that? Why it disallows to mount at root, and expects /System/Volumes/Knowledge
? I discovered some information that you are able to do information /System/Volumes/Knowledge/information
in /and many others/artificial.conf
after which mount NFS to /System/Volumes/Knowledge/information
– however once more – there will likely be symlink at root.