How to create an NFS Server and mount a share to another Linux server
This document (7015345) is provided subject to the disclaimer at the end of this document.
- YaST | Network Services | NFS Server, select Start
- Click Next.
- Select Add Directory, provide the local directory path to export.
- Configure Options (for root and r/w access):
Replace root_squash with no_root_squash and ro with rw
- Click Finish.
How to map an NFS Share (Linux), select from the following options:
- (option 1) To setup NFS Client from YaST:
- YaST | Network Services | NFS Client, select Add
- Provide the NFS Server Hostname or Network Address
- Click on Select to provide the Remote Directory
- Provide a Mount point (local directory)
- Click OK and OK
- (option 2) To temporarily mount, from a terminal window (one-time mount):
mount <hostServer>:/share <localMountPoint>
Note: The local mount point directory must already be created.
- (option 3) To permanently mount, use fstab (automatically mounts on boot), add the following line in /etc/fstab:
<hostServer>:/share <localMountPoint> nfs defaults 0 0
Note: /mnt/nfs/customers directory must already be created.
To restart NFS Service:
To restart NFS Client:
- Document ID:7015345
- Creation Date: 09-Jul-2014
- Modified Date:03-Mar-2020
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: email@example.com