LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NFS Mount (https://www.linuxquestions.org/questions/linux-newbie-8/nfs-mount-921984/)

dorlack 01-04-2012 07:20 AM

NFS Mount
 
Hello,

I am new to linux, and am trying to figure out how to connect to NFS mount.

This is running on a windows server,

I keep getting "unrecognized mount point" makes me think I may be using the wrong command.

deep27ak 01-04-2012 07:25 AM

try this on client machine

Code:

#mount -t nfs server ip/location/to/dir    /mount/point

Cedrik 01-04-2012 07:35 AM

You could also check server nfs export list:
Code:

/usr/sbin/showmount -e <server ip or name>

dorlack 01-04-2012 08:11 AM

NFS Mount
 
Here is what I get:

[root@cs sbin]# showmount -e 10.67.36.34
Export list for 10.67.36.34:
/RF7800N_NFS (everyone)



[root@cs sbin]# mount -t nfs 10.67.36.34/location/to/dir /rfcafs24/RF7800N_NFS?
mount.nfs: mount point /rfcafs24/RF7800N_NFS? does not exist
[root@cs sbin]#

Cedrik 01-04-2012 08:13 AM

Code:

mkdir /mnt/tmp
mount -t nfs 10.67.36.34:/RF7800N_NFS /mnt/tmp
cd /mnt/tmp
ls


kenshoomy 01-04-2012 08:15 AM

try creating /rfcafs24/RF7800N_NFS? before mounting

dorlack 01-04-2012 08:30 AM

[root@cs sbin]# mount -t nfs 10.67.36.34:/RF7800N_NFS /mnt/tmp
mount.nfs: access denied by server while mounting (null)


[root@cs sbin]# cd /mnt/tmp
bash: cd: /mnt/tmp: Permission denied

[root@cs mnt]# cd tmp
bash: cd: tmp: Permission denied



Is this the server denying?

dorlack 01-04-2012 09:41 AM

I am able to ping the 10. fine. My guess is I am on the domain if i can ping the 10. I am just trying to rule out any issues from the RHEL client end, if this is the server blocking mount.

Cedrik 01-04-2012 11:28 AM

This is strange...
Did you try to cd into the directory when loggued as simple user, just in case ?

dorlack 01-04-2012 02:54 PM

here it is as normal user:

[jweath02@cs /]$ ls
bin dev home lost+found misc net proc sbin srv tmp var
boot etc lib media mnt opt root selinux sys usr
[jweath02@cs /]$ cd mnt
[jweath02@cs mnt]$ ls
tmp
[jweath02@cs mnt]$ cd tmp
bash: cd: tmp: Permission denied
[jweath02@cs mnt]$


still getting the same regardless if Root or normal user.

Cedrik 01-04-2012 03:33 PM

What is the output with ls -al /mnt/tmp ?

Does the windows system administrators say something about how to set up unix account to work with nfs shares ?

deep27ak 01-04-2012 10:04 PM

Quote:

Originally Posted by dorlack (Post 4566107)
here it is as normal user:

[jweath02@cs /]$ ls
bin dev home lost+found misc net proc sbin srv tmp var
boot etc lib media mnt opt root selinux sys usr
[jweath02@cs /]$ cd mnt
[jweath02@cs mnt]$ ls
tmp
[jweath02@cs mnt]$ cd tmp
bash: cd: tmp: Permission denied
[jweath02@cs mnt]$


still getting the same regardless if Root or normal user.

It seems the question has been changed from NFS mounting to permission issue

first thing I don't get the concept of mounting NFS on /mnt but even if you want to continue using it, I would like to see the permissions on this directory

Code:

#ls -l / | grep mnt
#ls -l /mnt

secondly I would advice to create another folder in root directory to mount NFS
Code:

#mkdir /NFS
#mount -t nfs 10.67.36.34/location/to/dir /NFS

Quote:

Originally Posted by dorlack (Post 4566107)
[root@cs sbin]# mount -t nfs 10.67.36.34/location/to/dir /rfcafs24/RF7800N_NFS?
mount.nfs: mount point /rfcafs24/RF7800N_NFS? does not exist

I have never seen any directory name ending with question mark so I would again advice you to check the directory name correctly

On the NFS server run this command and show me the output
Code:

#exportfs -v
also make sure firewall or selinux is not blocking NFS

dorlack 01-05-2012 07:41 AM

[jweath02@cs ~]$ ls -l / | grep mnt
drwxr-xr-x. 3 root root 4096 Jan 3 21:29 mnt
[jweath02@cs ~]$ ls -l /mnt
total 1
drwx------. 2 4294967294 4294967294 64 Jan 4 08:43 tmp
[jweath02@cs ~]$

dorlack 01-05-2012 07:44 AM

[root@cs /]# mount -t nfs 10.67.36.34:/RF7800N_NFS /NFS
[root@cs /]# ls
bin dev home lost+found misc net opt root selinux sys usr
boot etc lib media mnt NFS proc sbin srv tmp var
[root@cs /]# mount -t nfs 10.67.36.34:/RF7800N_NFS /NFS
mount.nfs: access denied by server while mounting (null)


First attempt no error, second attempt gets denied.

deep27ak 01-05-2012 07:50 AM

have you configured any firewall on server?

show me the output of
Code:

#exportfs -v <---------on NFS server
on both the machine
Code:

#iptables -L
make sure portmap service is running on server
Code:

#service portmap status
did you made any changes on server once after mounting?


All times are GMT -5. The time now is 10:49 AM.