*BSD News Article 57454


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!sundog.tiac.net!usenet
From: Alan Bawden <alan@lcs.mit.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: mount -t nfs -o tcp
Date: Mon, 11 Dec 1995 02:25:54 -0500
Organization: ITS Preservation Society
Lines: 76
Message-ID: <30CBDD02.41C67EA6@lcs.mit.edu>
References: <ALAN.95Dec7175714@parsley.lcs.mit.edu> <4af5gh$6qf@calweb.calweb.com>
NNTP-Posting-Host: 206.119.96.100
Mime-Version: 1.0
Content-Type: multipart/mixed;
	boundary="---------------------------119844922515047680801437591059"
X-Mailer: Mozilla 2.0b3 (X11; I; FreeBSD 2.1.0-RELEASE i386)

This is a multi-part message in MIME format.

-----------------------------119844922515047680801437591059
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Cameron Slye wrote:
> 
> :   Cannot MNT RPC: RPC: Program not registered
> 
> Is mountd running ?

And was the server plugged in?

Yes and yes.

I tried to make it clear in my original message that the server
hadn't even been booted since it worked to mount it from a
FreeBSD-1.1.5.1 machine.  If mountd wasn't running, then that
wouldn't have worked.

But you're close.  Remember what I'm trying to do here is
NFS mount a FreeBSD-2.0 fileserver from a FreeBSD-2.1.0 client
using TCP.  The problem is that 2.1.0 now tries to contact the
server's mountd using TCP -- back in 1.1.5.1 it still used UDP
to talk to mountd even though it was going to use TCP to talk
to the server's nfsd.  Turns out that the 2.0 mountd doesn't
listen on TCP, only UDP.

Fortunately, the 2.1.0 mountd -does- listen on TCP, so
it was a simple matter to migrate that change back into
2.0.  So I'm up and running again.  

I've attached the patch to this message in case anyone else
is in the same situation.  (At least I think I have, I've never
used the Netscape newsreader's attachment feature before...)

--
Alan Bawden                                    Alan@LCS.MIT.EDU
617/492-7274                   06BF9EB8FC4CFC24DC75BDAE3BB25C4B

-----------------------------119844922515047680801437591059
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="mountd.patch"

KioqIG1vdW50ZC5jLm9yaWcJVGh1IFNlcCAyMiAxODoxNjo1MCAxOTk0Ci0tLSBtb3VudGQu
YwlNb24gRGVjIDExIDAxOjQ2OjIyIDE5OTUKKioqKioqKioqKioqKioqCioqKiAyMzUsMjQx
ICoqKioKICAJaW50IGFyZ2M7CiAgCWNoYXIgKiphcmd2OwogIHsKISAJU1ZDWFBSVCAqdHJh
bnNwOwogIAlpbnQgYzsKICAJc3RydWN0IHZmc2NvbmYgKnZmYzsKICAKLS0tIDIzNSwyNDEg
LS0tLQogIAlpbnQgYXJnYzsKICAJY2hhciAqKmFyZ3Y7CiAgewohIAlTVkNYUFJUICp1ZHB0
cmFuc3AsICp0Y3B0cmFuc3A7CiAgCWludCBjOwogIAlzdHJ1Y3QgdmZzY29uZiAqdmZjOwog
IAoqKioqKioqKioqKioqKioKKioqIDI5MSwzMDMgKioqKgogIAkJZmNsb3NlKHBpZGZpbGUp
OwogIAkgIH0KICAJfQohIAlpZiAoKHRyYW5zcCA9IHN2Y3VkcF9jcmVhdGUoUlBDX0FOWVNP
Q0spKSA9PSBOVUxMKSB7CiAgCQlzeXNsb2coTE9HX0VSUiwgIkNhbid0IGNyZWF0ZSBzb2Nr
ZXQiKTsKICAJCWV4aXQoMSk7CiAgCX0KICAJcG1hcF91bnNldChSUENQUk9HX01OVCwgUlBD
TU5UX1ZFUjEpOwohIAlpZiAoIXN2Y19yZWdpc3Rlcih0cmFuc3AsIFJQQ1BST0dfTU5ULCBS
UENNTlRfVkVSMSwgbW50c3J2LAohIAkgICAgSVBQUk9UT19VRFApKSB7CiAgCQlzeXNsb2co
TE9HX0VSUiwgIkNhbid0IHJlZ2lzdGVyIG1vdW50Iik7CiAgCQlleGl0KDEpOwogIAl9Ci0t
LSAyOTEsMzA2IC0tLS0KICAJCWZjbG9zZShwaWRmaWxlKTsKICAJICB9CiAgCX0KISAJaWYg
KCh1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