Link to home
Start Free TrialLog in
Avatar of ur_cherub
ur_cherub

asked on

Share a folder between 2 machines

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
Avatar of owensleftfoot
owensleftfoot

Im not sure you should have a colon before /sharedir
Are both systems linux?
Avatar of Pablo Allietti
pcntfs ??
Avatar of ur_cherub

ASKER

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
HAve you properly instaled and configured NFS and portmap???
What does "showmount -e" on the box with sharedir give you?
ASKER CERTIFIED SOLUTION
Avatar of Sachin_Yash
Sachin_Yash

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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...
                 
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
Hi Cherub !!!

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

             However thanks again...