Solved

Share a folder between 2 machines

Posted on 2004-04-15
10
342 Views
Last Modified: 2011-04-14
Hi Experts,

I'd like to know if there is any way in which I can make a file system on one machine avaiable on another machine.

I got a help on Experts Exchange forum for networking. It was
  mount -o //192.168.0.1:/shareddir username=user password=xxxx /mnt/mountpoint

When I tried this out on my system giving a loop back address it worked fine. So I accepted the answer. But now when I try it on 2 different achines, I get an error saying
  mount: special device //192.168.0.1:/shareddir does not exist
though /shareddir exists on the system.

Is there any other way I can do it? Is there no way the machine that contains the folder make it available to the requesting machine?

Hope to get some help in this problem.

Thank you in anticipation,
Cherub
0
Comment
Question by:ur_cherub
  • 3
  • 3
  • 2
  • +2
10 Comments
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10831816
Im not sure you should have a colon before /sharedir
Are both systems linux?
0
 
LVL 14

Expert Comment

by:pablouruguay
ID: 10832817
pcntfs ??
0
 

Author Comment

by:ur_cherub
ID: 10839649
Hi owensleftfoot,

Both are linux systems. When I exectued the program w/o the colon before /sharedir, that is, as
    mount -o //192.168.0.1/shareddir username=user password=xxxx /mnt/mountpoint

I got the following error
    mount: special device //192.168.0.1/shareddir does not exist

Hi pablouruguay,

I'm sorry. I didn't get what you meant by "pcntfs ??"

Cherub
0
 

Expert Comment

by:aitzol
ID: 10839940
HAve you properly instaled and configured NFS and portmap???
0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10840277
What does "showmount -e" on the box with sharedir give you?
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 1

Accepted Solution

by:
Sachin_Yash earned 50 total points
ID: 10867066
Hi !!!

       For file sharing on linux m/c u have to start 2 services :-
        1. NFS & 2. portmap
       Secondly before u give command mount -o ...
       Just check it out that which file is shared by your m/c i.e. by :-
       # showmount -t localhost
  or for another m/c :-
       # showmount -t 'ipaddress'
  if it gives that your 192.168.0.1 share /sharedir then u can use mount it on your client m/c.
  if not then check it out in /etc/exports file whether u share that file or not.
       
         If your m/c say 192.168.0.2 want to share 192....0.1's  sharedir then use
    #mount -t nfs 192.168.0.1:/sharedir /localdir

         Where localdir is your dir(most probably emptydir) in your say 192.168.0.2 m/c

         For the permenent mount open /etc/fstab & insert one line as :-
 
      192.168.0.1:/sharedir      /localdir  nfs   defaults  0 0

       Try it .....
0
 

Author Comment

by:ur_cherub
ID: 10867333
Hi Sachin,

Thanks a lot. The NFS service was not running on my machine. Right now, my machine acts as the server and the client and the help that u gave me works perfectly. Don't have another system at the time being to check between 2 systems.

Will check it out on two systems and get back to u. but before that, I want to kno if the client machine also needs the NFS and portmap services to be running.

Thanks a lot for ur help. Hope to get the machine soon and try out what u say.

Cherub
0
 
LVL 1

Expert Comment

by:Sachin_Yash
ID: 10867587
Hi Cherub !!!

                U r most welcome !!!
                U have to run NFS & portmap service running on your client & server m/c.
                Actually what is happen, server m/c gives access to particular m/c say your 192.168.0.2 m/c.(as u r adding a line as

          /shardir  192.168.0.1
           in your /etc/export file.)
               To access that folder of the server u have to start nfs & portmap....

               Hope this information wil useful for you...
                 
0
 

Author Comment

by:ur_cherub
ID: 10868557
Hi Sachin,

Thanks a lot for ur help...

there is one correction that i'd make in ur help....
there is no -t option for "showmount"... it is the "-e" option...
other than for that it is perfect....

got a machine some time back... i tried without the NFS service running on the client machine and it worked perfectly... but the portmap service was required on both the client and the server side... and the NFS service on the server side alone...

thanks so much for the help.... u made my day... :)

Cherub
0
 
LVL 1

Expert Comment

by:Sachin_Yash
ID: 10868601
Hi Cherub !!!

             Thanks for your correction... Actually I'm confuse in mount -t nfs....  & showmount -e... that's why...

             However thanks again...
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now