|
Home > Archive > Red Hat Networking > April 2004 > mounting with IP numbers
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
mounting with IP numbers
|
|
| lee willcox 2004-04-11, 3:32 pm |
| 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?
| |
| Scott Lurndal 2004-04-11, 3: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
| |
| lee willcox 2004-04-11, 3:32 pm |
| Scott Lurndal wrote:
> lee willcox <lee@willcoxwebs.com> writes:
>
>
>
>
> 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
Scott...
You ought to be the one writing the manual.
Worked like a charm just like you said.
Thanks Lee
|
|
|
|
|