Skip to content

Instantly share code, notes, and snippets.

@oreoluwa
Forked from joaomlneto/mac-client.sh
Created September 26, 2020 18:43
Show Gist options
  • Save oreoluwa/af93664ed83ce2c25e0c509742a17559 to your computer and use it in GitHub Desktop.
Save oreoluwa/af93664ed83ce2c25e0c509742a17559 to your computer and use it in GitHub Desktop.
Fast NFS volume on macOS
#!/usr/bin/env bash
# mount /home/joaomlneto @ linux-vm
mkdir -p /Users/joaomlneto/nfs/linux-vm
mount -t nfs -o nolocks,locallocks,rw,soft,intr,rsize=8192,wsize=8192,timeo=900,retrans=3,proto=tcp \
linux-vm:/home/joaomlneto \
/Users/joaomlneto/nfs/linux-vm
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/home/joaomlneto 192.168.25.0/24(rw,sync,no_subtree_check,insecure,no_root_squash,all_squash,anonuid=1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment