LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-11-2008, 01:35 PM   #1
crazy8
Member
 
Registered: Nov 2006
Posts: 136

Rep: Reputation: 15
mounting NFS


Ok I am running Fedora Core 6 (as per request of my boss) and I am trying to mount one of our servers. He showed me a way that I can add a server as a mount on the machine im putting together. Here is what he gave me for instructions.

I have a directory called "scooter" /scooter
then either I...
mount scooter:/ /scooter or..
mount 192.168.1.20:/ /scooter

Then after its all mounted I can just cp it all over. But when i run "mount 192.168.1.20:/ /scooter" I get an error that says "mount to NFS server '192.168.1.20' failed: RPC Error: Program not registered." If I run this "mount scooter:/ /scooter" I get an error that says "cant get address for scooter."

Any ideas how to fix this?
Thanks alot.
 
Old 01-11-2008, 01:42 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Looks like a problem with portmap? You typically need to start certain services and depending on what you are doing:
/etc/init.d/nfsd start

might pull in all the required services. In Fedora you could use the service command:
service nfs start
OR
service nfsd start

Off the top of my head I cannot remember which one Fedora uses.

Semi off-topic, you really ought to be able to use any distro you are comfortable with, but if you aren't comfortable with any and your boss is going to be teaching you how to use a particular one I suppose it's his/her choice. But that should also mean they should give you a little bit more information (like which services need to be running).

Cool
 
Old 01-11-2008, 01:46 PM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Probably portmap is not running. Start it before mounting NFS volumes.
"mount 192.168.1.20:/ /scooter" I'm not an NFS expert, but this command looks weird, looks like root of that server is exported. Shouldn't be so. You can test what's exported with showmount, 'showmount 192.168.1.20 -e'.

Man, am I slow.
 
Old 01-11-2008, 01:52 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69


The command does look odd, but there isn't a restriction on mounting root filesystems. It's just odd, but it should work from a "can I do it" perspective.

-chad
 
Old 01-11-2008, 02:46 PM   #5
crazy8
Member
 
Registered: Nov 2006
Posts: 136

Original Poster
Rep: Reputation: 15
MasterC: service nfs start is what gets used in fedora core. I tried that and everything checked out "OK". Then i tried to run the mount again and I still get "Program not registered."

As far as my boss and linux go, I do know enough about linux to get around and do some stuff in the shell, he just recomended that I use FC6on this box.

Emerson: When I run 'showmount 192.168.1.20 -e' I get an error that says "clntudp_create: RPC: Program not registered."

Any other ideas?

Thanks guys.
 
Old 01-11-2008, 03:11 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
1. Look up what's running on localhost and server with rpcinfo -p hostname.
2. Make sure you do not have anything restrictive in hosts.allow and hosts.deny.
3.
 
Old 01-11-2008, 03:49 PM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Here you can see portmapper running on a client machine. Statd and lockd are also running.

Code:
$ /usr/sbin/rpcinfo -p localhost
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  32768  status
    100024    1   tcp  43794  status
    100021    1   tcp  32880  nlockmgr
    100021    3   tcp  32880  nlockmgr
    100021    4   tcp  32880  nlockmgr
Here's the server. (Not running Linux but it doesn't matter).
Code:
 $ /usr/sbin/rpcinfo -p turtle2
   program vers proto   port
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100000    4     7    111  portmapper
    100000    3     7    111  portmapper
    100000    2     7    111  portmapper
    100005    1   udp    778  mountd
    100005    3   udp    778  mountd
    100005    1   tcp    990  mountd
    100005    3   tcp    990  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100024    1   udp    804  status
    100024    1   tcp    838  status
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100021    0   udp    873  nlockmgr
    100021    1   udp    873  nlockmgr
    100021    3   udp    873  nlockmgr
    100021    4   udp    873  nlockmgr
    100021    0   tcp    600  nlockmgr
    100021    1   tcp    600  nlockmgr
    100021    3   tcp    600  nlockmgr
    100021    4   tcp    600  nlockmgr
 
  


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
Mounting NFS InJesus Slackware 5 09-12-2006 09:49 AM
mounting / via nfs ? hepburnenthorpe Linux - General 2 07-12-2006 10:47 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
nfs mounting vic Linux - Networking 4 11-19-2004 01:27 PM
nfs mounting chrismiceli Linux - Networking 1 06-07-2003 06:48 PM

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

All times are GMT -5. The time now is 03:54 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
Open Source Consulting | Domain Registration