What Is an NFS Mount Point?
In Linux, an NFS mount point is a local directory on the client machine where a shared directory from an NFS server is attached.
This allows one server to export a folder, while another machine accesses it as if it were a local directory.
Prerequisites
Before starting, make sure you have:
- An NFS server already exporting a directory
- A client machine that can reach the server over the network
- The NFS client package installed on the client
1. Install NFS Client Packages
On the client machine, install the client tools:
| |
2. Create a Mount Point
Create a local folder that will be used as the mount point:
| |
3. Mount the NFS Share
Mount the shared directory from the server:
| |
Replace 192.168.1.10 with the actual IP address of your NFS server.
To verify that the mount succeeded:
| |
You should see the NFS share mounted under /mnt/nfs-share.
4. Make the Mount Persistent
If you want the NFS share to be mounted automatically after reboot, add an entry to /etc/fstab:
| |
Add this line:
| |
Then test it with:
| |
5. Common Troubleshooting Tips
If the mount fails, check the following:
- The server is reachable from the client
- The NFS service is running on the server
- The shared folder is listed in
/etc/exports - Firewall rules allow NFS traffic
You can also inspect logs on the NFS Server with:
| |
Summary
To mount an NFS share on the client side, you only need to:
- Install the NFS client tools
- Create a local mount point
- Mount the remote share
- Optionally add it to
/etc/fstabfor automatic mounting
Once this is set up, the shared folder behaves like a local directory on the client machine.