SUSE Support

Here When You Need Us

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.

Environment

SUSE Linux Enterprise Server 11

Situation

How to create an NFS Server and mount a share to another Linux server

Resolution

How to create an NFS Server to export or share a directory:
  1. YaST | Network Services | NFS Server, select Start
  2. Click Next.
  3. Select Add Directory, provide the local directory path to export.
  4. Configure Options (for root and r/w access):
    Replace root_squash with no_root_squash and ro with rw
  5. 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.

Cause


Additional Information

See Open SuSE documentation for more details.

To restart NFS Service:
rcnfsserver restart

To restart NFS Client:
rcnfs restart

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7015345
  • Creation Date: 09-Jul-2014
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.