Not able to mount NFS share on client side

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Not able to mount NFS share on client side
# 1  
Old 02-08-2012
Not able to mount NFS share on client side

When i tried to mount the nfs i see this error message
Code:
mount -t nfs 192.168.20.194:/remote/proj1 /nfsmount
mount: 192.168.20.194:/remote/proj1 failed, reason given by server: Permission denied

and the /etc/exports file in the host side looks like this

Code:
/remote/proj1  192.168.20.194(rw,no_root_squash,sync)

not able to figure out what exactly need to be modified
# 2  
Old 02-08-2012
It's clear from the /etc/exports entry. Is your server's IP 192.168.20.194?


Code:
/remote/proj1  192.168.20.194(rw,no_root_squash,sync)

With the above entry, you are allowing only the server to mount the nfs share. You have to put IP of the client there instead of the server's. Smilie
# 3  
Old 02-08-2012
thats not the client's IP it is the IP address of the Host server.
# 4  
Old 02-08-2012
Yes, I know that. You need to change that to the client's IP and your problem is solved. That field for any host's IP or hostname or a range of IPs of hosts which are allowed to mount the share. So change it to client's IP. for more info about exports file see "man exports". Smilie
# 5  
Old 02-08-2012
Looks like your host-side (your server) exports a nfs share and allows the host-side (your server) to mount it.
Did you try to mount this share on the server? Probably you just need to run your command with root user or sudo?
Also check directory permissions!

---------- Post updated at 01:51 ---------- Previous update was at 01:48 ----------

The one line you posted (/etc/exports) may not be sufficient enough!
You may need to adjust the directory access permissions on server (/remote/proj1) as well as on the client side (/nfsmount).
# 6  
Old 02-09-2012
Clear Understanding...
Server-A :
/remote/proj1 Server-B(rw,no_root_squash,sync)

Server-B:
mount -t nfs Server-A:/remote/proj1 /nfsmount

--Shirish
# 7  
Old 02-09-2012
Hi,

I was trying to connect to a HP server through iLO but for some reason I was unable to connect. When I ping it I do get a reply but the connection is not being established..Please help me understand what the problem is.

---------- Post updated at 02:19 AM ---------- Previous update was at 01:53 AM ----------

HI,
Another issue is I was trying to configure NFS on the servers. I'm using 2 HP servers with RHEL. i updated the /etc/exports directory with /sharing ipaddress/netmask(rw,sync,root_squash).

mounted it on the client server but I'm getting the following error:
mount: mount to NFS server 'ipaddress' failed: System Error: No route to host.

Please help me out.

Last edited by s.dineshreddy85; 02-09-2012 at 05:36 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 NFS client cannot mount a share from a Windows server

I have a Solaris 10 server, I'm trying to mount a share from a Windows nfs server. If I add this entry (tst-walnut:/test_sap_nfs - /majid nfs - yes rw,soft) to my /etc/vfstab, then I can mount, but when I create a file by root:root, the file owner changes to... (1 Reply)
Discussion started by: Hiroshi
1 Replies

2. Shell Programming and Scripting

Mount NFS Share On NFS Client via bash script.

I need a help of good people with effective bash script to mount nfs shared, By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people. The scenario as follow: An NFS Client with Daily CRON , running bash script... (4 Replies)
Discussion started by: Brian.t
4 Replies

3. SCO

Cannot mount NFS share (FreeNAS) onto SCO OpenServer 5.0.6

Hi! All, I am trying to mount a NFS share on my FreeNAS system onto my SCO OpenServer 5.0.6. I get the following error: mount: cannot mount /: Connection Refused (error 115) Has anyone been able to do this? (3 Replies)
Discussion started by: trolley
3 Replies

4. Solaris

Can't access NFS Share on Solaris Server from a Linux Client

Hi, I am trying to access a NFS shared directory on Solaris 10 Server from a client which is RHEL 4 Server. On the NFS Server, in /etc/dfs/, I added following line to dfstab file. & then ran the following On the client machine, while running the mount command, I am... (0 Replies)
Discussion started by: SunilB2011
0 Replies

5. UNIX for Advanced & Expert Users

NFS client-side userid mapping

Folks, I am trying to solve the following problem. I have a process on machine A running as root that needs to mount and access an NFS partition being exported from machine B. However, I cannot have 'no_root_squash' option given on B, hence I see NFS requests from machine A end up as 'nobody'... (1 Reply)
Discussion started by: helpmelearn
1 Replies

6. Web Development

NFS Share & Mount problem

Hi, I want to mount an NFS Shared folder on Windows XP to vxWorks. There doesnt seem to be a problem with the sharing. Now, when i try to mount the directory onto vxWorks (it runs on a Tumbleweed card), using a mount script (.sh), the following is the print i see on Tera Term: hostAdd... (0 Replies)
Discussion started by: chinmayzen
0 Replies

7. IP Networking

Can't see home folder on one NFS mount but can in another mount on another share

Hello, I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;) Below are the configs /etc/exports on host /home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies

8. Solaris

how to mount Windows NFS share on solaris

Hi, How can i mount an NFS share on a solaris machine a filesystem ? I have enabled nfs on a windows server and the shares has given read/write access to it to all the users. I would like to mount it on around 10 different solaris boxes with different versions of solaris. Thanks in advance. (2 Replies)
Discussion started by: uxadmin007
2 Replies

9. UNIX for Advanced & Expert Users

can i mount nfs share on windows 2003 server

this is probably a bit dumb ...but i read somewhere that one of the nfs versions can be mounted on a windows 2003 server ..if yes ..does anyone know how this can be achieved (1 Reply)
Discussion started by: tarunicon
1 Replies

10. AIX

Unable to mount NFS share during boot

Hello Everyone, I have a pseries machine running AIX 4.3.3 that has an invalid IP in /etc/hosts. During a boot the system hangs because it's trying to mount an NFS share to this invalid IP. I've tried to boot the system from a mksysb (not sure if the device was defined as rmt0) and AIX CD... (0 Replies)
Discussion started by: jlslhills
0 Replies
Login or Register to Ask a Question