Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mounting a folder from other machine in linux

Tags:

linux

nfs

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.

like image 825
Usman Riaz Avatar asked Nov 10 '14 06:11

Usman Riaz


1 Answers

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.

like image 55
Skynet Avatar answered Oct 22 '22 06:10

Skynet