Linux Tutorials - Herong's Tutorial Examples - v5.44, by Herong Yang
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
Cockpit - Web Portal for Administrator
"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
Reformat NTFS Partition into EXT4 Partition
►Mount NFS (Network File System) on macOS
/etc/mtab and /etc/fstab Files
Unreachable Remote File Systems
SELinux - Security-Enhanced Linux
SSH Protocol and ssh/scp Commands
Software Package Manager on CentOS - DNF and YUM
vsftpd - Very Secure FTP Daemon