Solved

Share a folder between 2 machines

Posted on 2004-04-15
10
339 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
url shaping application 8 48
WEBSITE Capture via Linux Router 2 81
Unix / Linux grid computing 5 127
linux, squid server 23 48
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

7 Experts available now in Live!

Get 1:1 Help Now