LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2012, 07:20 AM   #1
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Rep: Reputation: 2
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.
 
Old 01-04-2012, 07:25 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
try this on client machine

Code:
#mount -t nfs server ip/location/to/dir    /mount/point
 
1 members found this post helpful.
Old 01-04-2012, 07:35 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
You could also check server nfs export list:
Code:
/usr/sbin/showmount -e <server ip or name>
 
1 members found this post helpful.
Old 01-04-2012, 08:11 AM   #4
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
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]#
 
Old 01-04-2012, 08:13 AM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Code:
mkdir /mnt/tmp
mount -t nfs 10.67.36.34:/RF7800N_NFS /mnt/tmp
cd /mnt/tmp
ls
 
Old 01-04-2012, 08:15 AM   #6
kenshoomy
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Rep: Reputation: Disabled
try creating /rfcafs24/RF7800N_NFS? before mounting
 
Old 01-04-2012, 08:30 AM   #7
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
[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?

Last edited by dorlack; 01-04-2012 at 09:04 AM.
 
Old 01-04-2012, 09:41 AM   #8
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
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.
 
Old 01-04-2012, 11:28 AM   #9
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
This is strange...
Did you try to cd into the directory when loggued as simple user, just in case ?
 
Old 01-04-2012, 02:54 PM   #10
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
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.
 
Old 01-04-2012, 03:33 PM   #11
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
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 ?
 
Old 01-04-2012, 10:04 PM   #12
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by dorlack View Post
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 View Post
[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
 
Old 01-05-2012, 07:41 AM   #13
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
[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 ~]$
 
Old 01-05-2012, 07:44 AM   #14
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
[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.
 
Old 01-05-2012, 07:50 AM   #15
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
[SOLVED] mount.nfs: mount to NFS server 'rpcbind' failed w1k0 Slackware 4 03-30-2010 03:45 PM
mount.nfs: mount to NFS server 'jesse' failed: timed out, retrying keupie Linux - Networking 3 06-05-2009 07:03 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration