Subject: Problems mounting from a Linux system
To: None <port-sun3@netbsd.org>
From: None <derry.birse@ind.alstom.com>
List: port-sun3
Date: 06/24/1999 13:28:09
I have networked my Linux laptop (pc453) to a Sun3/60 (cad2) running NetBSD.

I have set up the NetBSD /etc/exports file as follows:

/usr -ro

and my Linux box /etc/exports file as:

/usr/local/sun3     cad2 dev5(rw,no_root_squash,insecure)  # NetBSD installation
 tree

I can mount the Sun3 directory on the Linux box at mount point /mnt/cad2 using
the command

mount -t nfs cad2:/usr /mnt/cad2

success to a point, but on the Sun3 the command

mount -t nfs pc453:/usr/local/sun3 /mnt

will not mount the Linux partition on the Sun3 and says

portmap: RPC program not registered

One thing which I have noticed is that the Linux box has an entry for mount in
/etc/services using port 635 and rpcinfo gives the following on this machine.

   program vers proto   port
    100000    2   tcp    111  rpcbind
    100000    2   udp    111  rpcbind
    100005    1   udp    635  mountd
    100005    2   udp    635  mountd
    100005    1   tcp    635  mountd
    100005    2   tcp    635  mountd
    100003    2   udp   2049  nfs
    100003    2   tcp   2049  nfs

However on the Sun3/NetBSD machine there is no entry for mount in /etc/services
and the use of the rpcinfo command on this machine gives an entirely different
port number. Could this be the problem? Putting an entry for mount in
/etc/services does not seem to change anything. Is the port number fixed in the
mountd code on NetBSD?

 Any help would be appreciated.
Thanks in advance.

Derry Birse