LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-06-2005, 11:38 AM   #1
jbraum
Member
 
Registered: Oct 2003
Location: Mansfield Ohio
Distribution: Ubuntu
Posts: 119

Rep: Reputation: 15
Need some help connecting to NFS


I'm trying to connect to an NFS server. I've exported the share but each time I try to mount - via MCC it fails. Below is my fstab.

/dev/hda1 / ext3 defaults 1 1
/dev/hda6 /home ext3 defaults 1 2
10.156.97.163:/export/admin /mnt/admin nfs user,rsize=8192,wsize=8192,suid,soft 0 0
10.156.97.163:/export /mnt/export nfs rsize=8192,wsize=8192,nosuid,soft 0 0
/dev/fd0 /mnt/floppy auto defaults 0 0
//linux_219/public /mnt/public smbfs username=% 0 0
//linux_219/winshare /mnt/winshare smbfs username=% 0 0
none /proc proc defaults 0 0

NFS is running and I am able mount any samba shares
 
Old 12-06-2005, 12:27 PM   #2
genlee
Member
 
Registered: Jul 2003
Distribution: Solaris 8/9, gentoo
Posts: 41

Rep: Reputation: 15
What is the error?
 
Old 12-07-2005, 06:14 AM   #3
jbraum
Member
 
Registered: Oct 2003
Location: Mansfield Ohio
Distribution: Ubuntu
Posts: 119

Original Poster
Rep: Reputation: 15
mounting partition xx.xxx.xxx.xxx (ip):/export/admin in directory mnt/admin failed
 
Old 12-07-2005, 07:03 AM   #4
genlee
Member
 
Registered: Jul 2003
Distribution: Solaris 8/9, gentoo
Posts: 41

Rep: Reputation: 15
Run rpcinfo -p <ip of nfs server> to check and make sure it has all the need ports open. Also just running rpcinfo -p will check localhost as well. Output should be something similar to:

program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 725 status
100024 1 tcp 728 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 1027 nlockmgr
100021 3 udp 1027 nlockmgr
100021 4 udp 1027 nlockmgr
100021 1 tcp 1069 nlockmgr
100021 3 tcp 1069 nlockmgr
100021 4 tcp 1069 nlockmgr
100005 1 udp 709 mountd
100005 1 tcp 709 mountd
100005 2 udp 709 mountd
100005 2 tcp 709 mountd
100005 3 udp 709 mountd
100005 3 tcp 709 mountd
 
Old 12-07-2005, 08:35 AM   #5
jbraum
Member
 
Registered: Oct 2003
Location: Mansfield Ohio
Distribution: Ubuntu
Posts: 119

Original Poster
Rep: Reputation: 15
Post

Quote:
Originally Posted by genlee
Run rpcinfo -p <ip of nfs server> to check and make sure it has all the need ports open. Also just running rpcinfo -p will check localhost as well. Output should be something similar to:

program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 725 status
100024 1 tcp 728 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 1027 nlockmgr
100021 3 udp 1027 nlockmgr
100021 4 udp 1027 nlockmgr
100021 1 tcp 1069 nlockmgr
100021 3 tcp 1069 nlockmgr
100021 4 tcp 1069 nlockmgr
100005 1 udp 709 mountd
100005 1 tcp 709 mountd
100005 2 udp 709 mountd
100005 2 tcp 709 mountd
100005 3 udp 709 mountd
100005 3 tcp 709 mountd


100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 864 status
100024 1 tcp 867 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 1024 nlockmgr
100021 3 udp 1024 nlockmgr
100021 4 udp 1024 nlockmgr
100021 1 tcp 1024 nlockmgr
100021 3 tcp 1024 nlockmgr
100021 4 tcp 1024 nlockmgr
100011 1 udp 978 rquotad
100011 2 udp 978 rquotad
100011 1 tcp 981 rquotad
100011 2 tcp 981 rquotad
100005 1 udp 994 mountd
100005 1 tcp 997 mountd
100005 2 udp 994 mountd
100005 2 tcp 997 mountd
100005 3 udp 994 mountd
100005 3 tcp 997 mountd

and...

100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 890 status
100024 1 tcp 893 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 33265 nlockmgr
100021 3 udp 33265 nlockmgr
100021 4 udp 33265 nlockmgr
100021 1 tcp 32768 nlockmgr
100021 3 tcp 32768 nlockmgr
100021 4 tcp 32768 nlockmgr
100005 1 udp 629 mountd
100005 1 tcp 633 mountd
100005 2 udp 629 mountd
100005 2 tcp 633 mountd
100005 3 udp 629 mountd
100005 3 tcp 633 mountd
 
Old 12-07-2005, 09:13 AM   #6
genlee
Member
 
Registered: Jul 2003
Distribution: Solaris 8/9, gentoo
Posts: 41

Rep: Reputation: 15
Can you post your /etc/exports file on the nfs server?
 
Old 12-07-2005, 09:33 AM   #7
jbraum
Member
 
Registered: Oct 2003
Location: Mansfield Ohio
Distribution: Ubuntu
Posts: 119

Original Poster
Rep: Reputation: 15
#
/export/admin (insecure,rw)
/export (rw,fsid=0)
 
Old 12-07-2005, 09:45 AM   #8
genlee
Member
 
Registered: Jul 2003
Distribution: Solaris 8/9, gentoo
Posts: 41

Rep: Reputation: 15
exports file should look something like:
/exported/directory <machine, address, ect>(options)

Here is an example from mine:
/logs x.x.x.x/26(rw,insecure,async)

The spacing is a tab, I don't know how picky nfs is but if it is like syslog, it won't work without tabs seperating. Man exports for more options.

Also you don't need to export /export/admin and /export if they are going to the same machine. Just /export would work if you want access to the entire directory.
 
Old 12-07-2005, 11:17 AM   #9
jbraum
Member
 
Registered: Oct 2003
Location: Mansfield Ohio
Distribution: Ubuntu
Posts: 119

Original Poster
Rep: Reputation: 15
I'm able to give a mount point but not mount the share - mount: 10.156.97.163:/admin failed, reason given by server: Permission denied.

I think I'm close.
 
Old 12-07-2005, 11:26 AM   #10
jbraum
Member
 
Registered: Oct 2003
Location: Mansfield Ohio
Distribution: Ubuntu
Posts: 119

Original Poster
Rep: Reputation: 15
Oh where would the tab spacing need to be?
 
Old 12-07-2005, 12:02 PM   #11
genlee
Member
 
Registered: Jul 2003
Distribution: Solaris 8/9, gentoo
Posts: 41

Rep: Reputation: 15
/mount/point <tab> <ip address/range>(options)
Like that in exports
 
Old 12-07-2005, 02:33 PM   #12
jbraum
Member
 
Registered: Oct 2003
Location: Mansfield Ohio
Distribution: Ubuntu
Posts: 119

Original Poster
Rep: Reputation: 15
Darn

mount: directory to mount not in host:dir format
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
Not connecting through NFS....port problems Veteq Linux - Networking 1 11-15-2005 09:56 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
connecting openbsd to linux nfs mount - "unsupported protocol" error animehair *BSD 4 03-28-2005 01:21 AM
connecting laptop & desktop for NFS install yocompia Slackware 9 08-27-2003 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:38 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