mounting with IP numbers
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Networking > mounting with IP numbers




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    mounting with IP numbers  
lee willcox


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-04 08: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?





[ Post a follow-up to this message ]



    Re: mounting with IP numbers  
Scott Lurndal


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: mounting with IP numbers  
lee willcox


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-04 08: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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:24 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register