Contents
How to fix mount NFS access denied by server while mounting?
Solution
- Try mounting with NFSv3. Sometimes the NFS server may only support NFSv3 connections.
- Check /etc/exports for correct share options. Ensure /etc/exports is properly referring to the correct NFS client information for providing access.
- Check NFS server permissions.
- Using tcpdump.
How do you mount NFS mount in Linux?
Use the following procedure to automatically mount an NFS share on Linux systems:
- Set up a mount point for the remote NFS share: sudo mkdir /var/backups.
- Open the /etc/fstab file with your text editor : sudo nano /etc/fstab.
- Run the mount command in one of the following forms to mount the NFS share:
How to avoid mount.nfs : Access Denied while mounting?
1. Try mounting with NFSv3 Sometimes the NFS server may only support NFSv3 connections. By default the mount command uses NFSv4, which may result is the error. To avoid this specify the NFSv3 while mounting the share. 2. Check /etc/exports for correct share options
How to Mount NFS Share on another server?
Try mounting the problematic share on another NFS client, to rule out the possibility of issue at NFS server. – Set the permission as (ro,no_root_squash,sync) for nfs export on server end and run command: # exportfs -r. Then try to mount the NFS share directory.
How to Mount NFS on CentOS 6.5?
NFS Client Configuration – CentOS 5 Deployment Guide I saw the same error ( mount.nfs: access denied by server while mounting…) and the issue was fixed by -o v3 option as follows: Server is Ubuntu 14.04 64bit LTS. Client is CentOS 6.5 64bit. fsid=0 makes the /Path/to/export the root directory when you mount the share.
Is there an issue with the NFS server?
Check NFS server permissions – There could be issue with the NFS server sharing the NFS share. Try mounting the problematic share on another NFS client, to rule out the possibility of issue at NFS server. Then try to mount the NFS share directory.