Installing a folder from another computer in Linux

I want to install a folder that is on another machine to my server linux

. For this I use the following command

mount -t nfs 192.xxx.x.xx:/opt/oracle /

      

Executed with the following error

mount.nfs: access denied by server while mounting 192.xxx.x.xx:/opt/oracle

      

Does anyone know what's going on ??? I am new to Linux.

+3


source to share


1 answer


Depending on which distribution you are using, you simply edit the file /etc/exports

on the remote computer to export the directories you want and then start your NFS daemon.

Then on your local PC, you mount it using the following command:

mount -t nfs {remote_pc_address}:/remote/dir /some/local/dir

      



Try with your home directory, as far as I know you cannot dump anything directly to the root directory.

For more information, find all setup steps here .

+5


source







All Articles