====== NFS Mounts ======
You need to setup an [[:linux:server:nfs|nfs server]]
===== Configuration =====
- add the [[:linux:server:nfs|nfs server]]'s name and ip to ''/etc/hosts'' on your client
- add the client machine's name and ip to ''/etc/hosts'' on your [[:linux:server:nfs|nfs server]]
- enable the ''nfs'' and ''nfslock'' services to start at boot
- start ''nfs'' and ''nfslock''
===== Testing =====
To 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
===== Configure fstab =====
- add the mount information to your ''/etc/fstab''\\ wspace:/home/media /mnt/wspace nfs context=user_u:object_r:nfs_t 1 2
- reboot to test
[[http://docs.fedoraproject.org/selinux-faq-fc5/#id2963288|mount info]]
==
\\ \\
{{tag>:linux:fedora :linux}}