Skip to content

Instantly share code, notes, and snippets.

@connorbey13
Last active April 9, 2023 14:43
Show Gist options
  • Save connorbey13/3d55e6db9e2e63e2f2deebdde22923dd to your computer and use it in GitHub Desktop.
Save connorbey13/3d55e6db9e2e63e2f2deebdde22923dd to your computer and use it in GitHub Desktop.
How to automount NFS on Mac

How to automount NFS on Mac

Lots of misinformation out there but it is simple, you just edit fstab like you would on Linux with the caveat of using vifs to do it.

  1. Run the command in terminal with sudo
    sudo vifs

  2. Add the config using this template and save
    server:sharedir localmountpoint nfs rw
    For example:
    connorbey13.com:/home/connorbey13 /Users/connorbey13/Mounts/mount1 nfs rw

  3. Activate the changes
    sudo automount -cv

All done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment