Mount NFS Share on CentOS 6
you have to install nfs-utils for this to work, so issue the following command:
yum install nfs-utils
from here we need to make a folder that will let us mount the Share, so use this command:
start the portmap service, and set it to start on startup:
service portmap start
chkconfig portmap on
from here all we need to do is mount with the next command:
mount -t nfs ip-of-server:/NFS /mnt/NFS
as you can see this successfully mounted, to verify type the following:
as you can see, the remove volume shows up as a local disk, you have successfully mounted NFS Share!
now all we need to do is add the command to startup:
it should look like so:
from here there is one final command to run, to mount all filesystems
** Note this will re-mount all filesystems, do in off-hours ****
Success! no errors!
to do a final check, do another df -h
to unmount the NFS Share type the following command:
*** the command is UMOUNT not un-mount *** i have made this mistake 1000’s of times.
That’s It! If you found this article helpful, please consider donating to keep the blog running