04-11-04 08:32 PM
lee willcox <lee@willcoxwebs.com> writes:
>newbie here!
>
>I have two linux redhat v8 boxes setting behind my router.
>I want to MOUNT from one box to the other.
>
>I found the command in the book:
> mount -t nfs remote_host:/dir /mount_point
>
>my mount_point name is "LEFT"
>and my remote_host:/dir is "LEFT"
>I don't have a remote_host name just a IP number
>
>I thought that this would work:
>
>mount -t nfs 192.168.0.101:/LEFT /LEFT
>
>In the box I am trying to mount
>/etc/exports
> I put /-access=*
>
>What i get back is:
>
> mount: RPC: Program not registered
>
>Does any one have a clue as to what the problem is
>or can it not be done using IP numbers?
as root,
# service nfs stop
# service nfs start
on both systems.
Then use
# showmount -e 192.168.0.101
to see that your exports were done. (NFS doesn't start if there is an
empty exports file).
Then you should have been able to mount. Note that the path
in the first column of /etc/exports (which must be separated by
whitespace from the second column) is the same path which is
used after the hostname when mounting. E.g.
(on host 192.168.0.101):
# cat /etc/exports:
/ 192.168.0.100(ro,sync) OR: / *(ro,sync)
# showmount -e localhost
Export list for localhost:
/ 192.168.0.100
(on other host - 192.168.0.100):
# mkdir /left
# chmod 775 /left
# mount -t nfs -o ro 192.168.0.101:/ /left
[ Post a follow-up to this message ]
|