LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-13-2005, 01:51 PM   #1
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 378

Rep: Reputation: 30
can't share directory using NFS


Hey all,

I tried following this guide to mount a school directory via NFS from my home gentoo machine to my school gentoo machine:
http://gentoo-wiki.com/HOWTO_Share_Directories_via_NFS

But whenever i try to mount it, I get:
Code:
thorium-ini hedpe# mount 128.237.247.74:/home/hedpe/PacketSwitching /tmp
mount: RPC: Remote system error - Connection timed out
My Port forwards in my linksys router:
Code:
portmap     111        192.168.1.100   111    both
nfs             2049      192.168.1.100   2049   both
nfs2           4001      192.168.1.100   4001   both
nfs_mount  32764-32767   192.168.1.100   both
Here is my /etc/exports:
Code:
hedpe@monster ~ $ cat /etc/exports 
# /etc/exports: NFS file systems being exported.  See exports(5).
/home/hedpe/school/PacketSwitching 128.2.140.234(async,no_subtree_check,rw)
rpcinfo:
Code:
monster hedpe # rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  32765  status
    100024    1   tcp  32765  status
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100021    1   udp   4001  nlockmgr
    100021    3   udp   4001  nlockmgr
    100021    4   udp   4001  nlockmgr
    100005    1   udp  32767  mountd
    100005    1   tcp  32767  mountd
    100005    2   udp  32767  mountd
    100005    2   tcp  32767  mountd
    100005    3   udp  32767  mountd
    100005    3   tcp  32767  mountd
i'm not sure if this makes a difference,

but my /etc/hostname and /etc/domainname are not resolvable by the machine that is trying to map one of these drives

for instance:
Code:
hedpe@monster ~ $ cat /etc/conf.d/hostname 
# /etc/conf.d/hostname
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/hostname,v 1.2.4.1 2005/02/19 02:13:53 vapier Exp $

# Set to the hostname of this machine
HOSTNAME="monster"
Code:
hedpe@monster ~ $ cat /etc/conf.d/domainname 
OVERRIDE=1
DNSDOMAIN="hednet"
so, the computer that I am trying to map the drive cannot ping "monster" for instance, and hednet does not exist

not sure if this is related

i can post more information if anyone needs it

Thanks!
George
 
Old 09-13-2005, 04:40 PM   #2
R4z0r
Member
 
Registered: Jan 2002
Distribution: CentOS 3.1
Posts: 119

Rep: Reputation: 15
Is NFS accessible from the internet on the remote box? Try running "nmap 128.237.247.74" on your box and checking that nfs is actually listening and available.

If it is, take a look at "/var/log/messages" on the remote box to see what the error is.

The fact that you are getting a timeout means it's most likey a firewall issue somewhere.
 
Old 09-13-2005, 09:05 PM   #3
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 378

Original Poster
Rep: Reputation: 30
it seems as if i do not see it:

Code:
monster hedpe # nmap 128.237.247.74

Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-09-13 21:05 EDT
Interesting ports on CMU-152988.WV.CC.cmu.edu (128.237.247.74):
(The 1658 ports scanned but not shown below are in state: closed)
PORT    STATE SERVICE
22/tcp  open  ssh
23/tcp  open  telnet
53/tcp  open  domain
80/tcp  open  http
443/tcp open  https

Nmap finished: 1 IP address (1 host up) scanned in 2.349 seconds
here is my local scan:
Code:
monster hedpe # nmap 127.0.0.1

Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-09-13 21:06 EDT
Interesting ports on monster (127.0.0.1):
(The 1660 ports scanned but not shown below are in state: closed)
PORT    STATE SERVICE
22/tcp  open  ssh
80/tcp  open  http
111/tcp open  rpcbind

Nmap finished: 1 IP address (1 host up) scanned in 0.202 seconds
i seem to have the ports forwarded in my router... is there a software firewall in linux that I don't know about?

Last edited by hedpe; 09-13-2005 at 09:08 PM.
 
Old 09-13-2005, 09:16 PM   #4
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 378

Original Poster
Rep: Reputation: 30
okay, it seemed as though my router needed rebooted after adding the port forwarding

anyways, it works, and nmap was a big help to solving the problem

thanks!

Last edited by hedpe; 09-13-2005 at 09:22 PM.
 
  


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
Need to configure a NFS share... Thaidog Linux - Newbie 1 06-01-2005 10:39 AM
Using an NFS share as squid cache directory, possible? tylerdurden82 Linux - Networking 1 01-20-2005 07:42 AM
NFS Share from Linux to OS X GT_Onizuka Linux - Networking 2 08-05-2004 09:56 PM
nfs(nfs(directory)) = null ? bdp Linux - General 2 03-13-2004 04:31 PM
Can't acces NFS share simonwindt Debian 5 10-06-2003 04:58 AM


All times are GMT -5. The time now is 06:12 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration