Skip to content

Instantly share code, notes, and snippets.

@live-wire
Created October 13, 2022 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save live-wire/f3a7bf5678b567e447a427df16b7c23a to your computer and use it in GitHub Desktop.
Save live-wire/f3a7bf5678b567e447a427df16b7c23a to your computer and use it in GitHub Desktop.
NFS Server in Ubuntu 22.04.1 LTS and NFS mounting client in macOS-monterey x86

NFS Server


  • Create NFS Server as shown here

    • Just step 1. is enough.
    • For k8s pvc provisioning, follow all steps including csi-driver & storage-class.
  • Now if your server is all set up, we should be able to mount it from any device in the LAN. (Based on the subnet you whitelisted in the step above)

  • MacOS commands:

    • showmount -e <ip-address-of-nfs-server> will show the shared <mount-path>
    • sudo mkdir -p /private/nfs
    • sudo mount -t nfs -o resvport <ip-address-of-nfs-server>:<mount-path> /private/nfs
    • -o resvport,rw for mounting in a read-write mode :point-up:
  • You're all set. The mount should appear in Finder too.

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