You need to setup an nfs server
/etc/hosts on your client/etc/hosts on your nfs servernfs and nfslock services to start at bootnfs and nfslockTo make sure the server is configured properly, we will test mount the nfs share:
[root@bender mnt]# mount -t nfs wspace:/shared/directory /mnt/directory
| wspace: | The server we are connecting to (I have configured wspace in my /etc/hosts file) |
| /shared/directory | This is the shared/exported directory |
| /mnt/directory | This is the local mount point for the nfs share |
If the above command worked, we are ready to add the mount point to our /etc/fstab to allow mounting at boot-time
/etc/fstabwspace:/home/media /mnt/wspace nfs context=user_u:object_r:nfs_t 1 2