Mount Nfs Share

broken image


Want to mount NFS share on CentOS 6?

I hope you read and carefully followed my post on 'How to configure NFS server in CentOS 6'. NFS is a server/client oriented protocol, which means that in order to share files and folders with your NFS clients you first need to configure NFS server! By successfully setting up and configuring your NFS server and exporting all of the NFS shares to your clients you are now ready to mount NFS shares on the client side.

1. Install required packages

First we need to install nfs-utils and it's dependencies (nfs-utils and rpcbind must be installed, but DO NOT need to be started!).

2. Create new directory

Next we must create or choose an existing NFS mount point (i am creating a new folder called /nfsmount).
  • NFS is a distributed file system protocol that allows you to share remote directories over a network. In this tutorial, we will show you how to manually and automatically mount an NFS share on.
  • Auto-mounting an NFS share using autofs, troubleshoot autofs.
  • In this tutorial I'll show you how to setup NFS share in Openfiler 2.99 and mount in Linux System Part-11.
  • Learn Step-by-Step How To mount NFS share on CentOS 6! Want to do it the easy way? Download GeekPeek.Net NFS client mount bash script!

3. Check for exports

Fixes an issue in which the Mount command does not access an NFS share by using the user credentials that you specified. This issue occurs on a computer that is running Windows Server 2008 R2.

Check for the NFS exports from your NFS server (192.168.1.100 is the IP address of my NFS server) and choose the one you want (and have permissions) to mount.

4. Mount NFS share

syntax: mount NFSSERVERIP:/nfs/server/folder /nfs/client/folder

We see the NFS mount was successfull and NFS share is mounted. You can now add or remove data from the new mount point.
Nfs

5. Add /etc/fstab entry

If you want your NFS mount point to auto mount on boot you need to add an entry to /etc/fstab.

syntax: NFSSERVERIP:/nfs/server/folder /nfs/client/folder nfs defaults 0 0

Of course you can tweak NFS mount options as desired. Read more about this HERE.Tagged with: centos6, filesystem, nfsShareFacebook, Twitter, Google Plus, Pinterest, Email

You May Also Like

Posted in:byMitch1Comment

Mount Nfs Share Freebsd

On the server:

Edit the file /etc/exports file and add the line:

Example:

Mount Nfs Share Mint

Explanation:

Mount Nfs Share

5. Add /etc/fstab entry

If you want your NFS mount point to auto mount on boot you need to add an entry to /etc/fstab.

syntax: NFSSERVERIP:/nfs/server/folder /nfs/client/folder nfs defaults 0 0

Of course you can tweak NFS mount options as desired. Read more about this HERE.Tagged with: centos6, filesystem, nfsShareFacebook, Twitter, Google Plus, Pinterest, Email

You May Also Like

Posted in:byMitch1Comment

Mount Nfs Share Freebsd

On the server:

Edit the file /etc/exports file and add the line:

Example:

Mount Nfs Share Mint

Explanation:

Mount Nfs Share Proxmox

/share is the location you want to share
hosts is the specification of hosts you allow access
all_squash to translate all anonymous id's (not known on server) to the give anonuid and anongid
no_subtree_check does no checking on the complete subtree of filepermissions (see also here)

After adding or changing an export to the /etc/exports file don't forget to restart the NFS server: Lightroom cc 2 2.

On the client:

Mount Nfs Share Kali

To view the list of exported shares on the server execute the command:

Example of output:

To mount the NFS share local create a new subfolder and execute the command:

This will mount the folder /home on the server local on your /home/ folder.





broken image