Mounting a folder from other machine in linux

36.2k views Asked by At

I want to mount a folder which is on some other machine to my linux server. To do that i am using the following command

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

Which is executing with the following error

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

Do anyone knows what's going on ??? I am new to linux.

1

There are 1 answers

4
Arnab Nandy On

Depending on what distro you're using, you simply edit the /etc/exports file on the remote machine to export the directories you want, then start your NFS daemon.

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

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

Please try with your home directory as per my knowledge you can't dump anything directly on root like that.

For more reference, find full configuration steps here.