Mount NFS (Network File System) on macOS

This section provides a tutorial example on how to mount a NFS Network File System on macOS computers. You must append '/' at the end of the file system name.

NFS (Network File System) is supported on macOS systems. But you may encounter various issues when running the "mount -t nfs ..." command.

1. "Operation timed out" Error - This is most common error you will get on macOS computers. It has a number of root causes including: incorrect server address, server not reachable, firewall on NFS related ports, etc.

mac$ sudo mount -t nfs 172.16.1.10:/data /Volumes/data

mount_nfs: can't mount /data from 172.16.1.10 onto \
  /Volumes/data: Operation timed out

2. "Permission denied" Error - There two possible root causes for this error. The first is that you are trying to mount a NFS file system that is not exported by the server. The second is that your host name of IP address is not listed in the server's /etc/exports file.

mac$ sudo mount -t nfs 172.16.1.10:/data /Volumes/data

mount_nfs: can't mount /data from 172.16.1.10 onto
  /Volumes/data: Permission denied

Another important note is that you must append "/" at the end of the NFS file system name when mounting it on macOS computers. Try the following two commands:

mac$ sudo mount -t nfs 172.16.1.10:/data /Volumes/data
  /Volumes/data: Permission denied

mac$ sudo mount -t nfs 172.16.1.10:/data/ /Volumes/data

mac$ df
172.16.1.10:/data    55%   51671   20026921    0%   /Volumes/data

Check the system log file on the server computer, you will see the following message that resulted from the first test.

rpc.mountd[10877]: refused mount request from 172.16.1.11
  for /data (/): not exported

Table of Contents

 About This Book

 Introduction to Linux Systems

 Cockpit - Web Portal for Administrator

 Process Management

 Files and Directories

 Users and Groups

File Systems

 "df" - Display Free Space of File System

 Mount USB Drive as File System

 "dd" - Copy Data from/to Storage Devices

 Use "dd" Command to Test I/O Speed

 "du" - Display Disk Usage of Directories

 Mount Windows NTFS File System

 Access Persmissions on "ntfs-3g" File System

 Mount Windows Shared Folders

 W95 Ext'd (LBA) Partition

 Reformat NTFS Partition into EXT4 Partition

 NFS (Network File System)

Mount NFS (Network File System) on macOS

 /etc/mtab and /etc/fstab Files

 Unreachable Remote File Systems

 Block Devices and Partitions

 LVM (Logical Volume Manager)

 Installing CentOS

 SELinux - Security-Enhanced Linux

 Network Connection on CentOS

 Internet Networking Tools

 SSH Protocol and ssh/scp Commands

 Software Package Manager on CentOS - DNF and YUM

 vsftpd - Very Secure FTP Daemon

 LDAP (Lightweight Directory Access Protocol)

 Administrative Tasks

 References

 Full Version in PDF/EPUB