Linux Tips


[an error occurred while processing this directive]

No Title

[an error occurred while processing this directive]

Reference: Cisco: Internetworking Basics

When performing a minimal install of CentOS 6, NFS support will not be installed or configured. This short guide demonstrates how to install the necessary Linux packages using yum and how to configure the /etc/fstab file to automatically mount a share named Software from a NAS device named domo on each boot.

Install the NFS Linux packages and configure the necessary services to start at the appropriate run-level:

# yum -y install nfs-utils nfs-utils-lib ... Dependencies Resolved ===================================================================================== Package Arch Version Repository Size ===================================================================================== Installing: nfs-utils x86_64 1:1.2.3-26.el6 base 316 k nfs-utils-lib x86_64 1.1.5-4.el6 base 67 k Installing for dependencies: keyutils x86_64 1.4-4.el6 base 39 k libevent x86_64 1.4.13-4.el6 base 66 k libgssglue x86_64 0.1-11.el6 base 23 k libtirpc x86_64 0.2.1-5.el6 base 78 k rpcbind x86_64 0.2.0-9.el6 base 51 k Transaction Summary ===================================================================================== Install 7 Package(s) ... # chkconfig --level 35 rpcbind on # chkconfig --levels 235 nfs on

Manually start the services.

# service rpcbind start Starting rpcbind: [ OK ] # service nfs start Starting NFS services: [ OK ] Starting NFS mountd: [ OK ] Starting NFS daemon: [ OK ]

Add the following entry type to the /etc/fstab file to have the share mount on each boot.

# cat /etc/fstab # # /etc/fstab # Created by anaconda on Thu Jan 31 10:45:27 2013 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/mapper/vg_testnode3-lv_root / ext4 defaults 1 1 UUID=57c0f693-3a9d-44d5-aa20-1a3709e29bde /boot ext4 defaults 1 2 /dev/mapper/vg_testnode3-lv_swap swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 domo:Software /software nfs defaults 0 0

Create the appropriate mount point on the file system and manually mount the share.

# mkdir /software # mount /software

Verify the NFS mount.

# mount /dev/mapper/vg_testnode3-lv_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/sda1 on /boot type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) nfsd on /proc/fs/nfsd type nfsd (rw) domo:Software on /software type nfs (rw,addr=

Please consult the guide Exporting a File System for NFS - (/etc/exports) on how to export an NFS share on Linux.

About the Author

Jeffrey Hunter is an Oracle Certified Professional, Java Development Certified Professional, Author, and an Oracle ACE. Jeff currently works as a Senior Database Administrator for The DBA Zone, Inc. located in Pittsburgh, Pennsylvania. His work includes advanced performance tuning, Java and PL/SQL programming, developing high availability solutions, capacity planning, database security, and physical / logical database design in a UNIX / Linux server environment. Jeff's other interests include mathematical encryption theory, tutoring advanced mathematics, programming language processors (compilers and interpreters) in Java and C, LDAP, writing web-based database administration tools, and of course Linux. He has been a Sr. Database Administrator and Software Engineer for over 20 years and maintains his own website site at: Jeff graduated from Stanislaus State University in Turlock, California, with a Bachelor's degree in Computer Science and Mathematics.

Copyright (c) 1998-2017 Jeffrey M. Hunter. All rights reserved.

All articles, scripts and material located at the Internet address of is the copyright of Jeffrey M. Hunter and is protected under copyright laws of the United States. This document may not be hosted on any other site without my express, prior, written permission. Application to host any of the material elsewhere can be made by contacting me at

I have made every effort and taken great care in making sure that the material included on my web site is technically accurate, but I disclaim any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on it. I will in no case be liable for any monetary damages arising from such loss, damage or destruction.

Last modified on
Thursday, 31-Jan-2013 18:29:39 EST
Page Count: 3103