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
# 8  
Old 02-09-2012
Check is there any local iptable if any am not sure or IF your server are under Firewalled .. n/w admin ...

--Shirish
# 9  
Old 02-09-2012
changed the ip address in the host server as

Code:
/remote/proj1  *:255.255.255.0(rw,no_root_squash,sync)

but the same reason for not being mounted.
Client side:

Code:
[root@localhost /]# mount -t nfs 192.168.20.194:/remote/proj1 /nfs             
mount: 192.168.20.194:/remote/proj1 failed, reason given by server: Permission denied

# 10  
Old 02-09-2012
Pls try the below entry in /etc/export

/remote/proj1 *(rw, sync)

Hope help !!

In mean time pls check your /etc/hosts.allow and /etc/hosts.deny entries .. also ..ur service status portmap/nfs ...


--Shirish
# 11  
Old 02-10-2012
Another weird reason given by the client

Code:
mkdir /nfssharepoint
[root@localhost /]# mount -t nfs 192.168.20.194:/home/tom/share /nfssharepoint
mount.nfs: mount point /nfssharepoint is not a directory
[root@localhost /]#

# 12  
Old 02-10-2012
Quote:
Originally Posted by srinathk
changed the ip address in the host server as

Code:
/remote/proj1  *:255.255.255.0(rw,no_root_squash,sync)

but the same reason for not being mounted.
Client side:

Code:
[root@localhost /]# mount -t nfs 192.168.20.194:/remote/proj1 /nfs             
mount: 192.168.20.194:/remote/proj1 failed, reason given by server: Permission denied

You are doing it all wrong from the beginning!

The proper syntax to export a directory for a specific network or specific group of hosts is like this:
Code:
/remote/proj1  192.168.20.0/24(rw,no_root_squash,sync)

Note that if /remote/proj1 itself is a nfs mounted directory, it cannot be shared once again.
# 13  
Old 02-10-2012
Lightbulb

Quote:
Originally Posted by admin_xor
You are doing it all wrong from the beginning!
LOL, yeah man! SmilieSmilie Full Ack!! Smilie

srinathk, what do you actually want to do?

Usually there's a server and there's a client, all right?

Do you want to mount a nfs share from server on the client mount point /nfsshare ?

Those two hosts have different IP addresses?

All the stuff you want to do most likely call for root rights!!

-----
Another weird reason given by the client
mkdir /nfssharepoint
[root@localhost /]# mount -t nfs 192.168.20.194:/home/tom/share /nfssharepoint
mount.nfs: mount point /nfssharepoint is not a directory
[root@localhost /]#
---

Classic! Smilie

Run
Code:
ls -l /nfssharepoint

Probably there exist a file or link with the same name!

Delete it and run
Code:
cd / && mkdir /nfssharepoint

Better mount it on a different mount point. Run
Code:
ls -l /mnt

and check if there are any free mount points Smilie
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