April 22, 2014

Different Way to Mount NFS in RHEL6

Automounting

The below will auto mount the user 'ldapuser1' home directory with rw permission on nfs.server.com.

$ vi /etc/auto.master
/home /etc/auto.home
$ vi /etc/auto.home
ldapuser1 -rw nfs.server.com:/export/path/ldapuser1

Manual

You can manually mount a nfs exported directory to a local directory /remote.

$ mount -t nfs nfs.server.com:/export/path /remote

Mount at boot

$ vi /etc/fstab
nfs.server.com:/export/path    /remote    nfs    defaults    0 0

No comments: