Return to Solaris Home Page.
Using NFS - (Solaris)
by Jeff Hunter, Sr. Database Administrator
This brief article touches on several of the important commands that are used to NFS a file system on Solaris. Now keep in mind that with most Solaris configurations; enabling a Sun Solaris server to mount or share a file system, the required daemons will already be running. If not, this article may help you with this process.
The first thing to ensure is that the proper daemons for running NFS are started. If unsure, I will typically just run them when I cannot determine whether or not they are running:
$ su - $ cd /usr/lib/nfs $ ./mountd $ ./nfsd
Sharing A File System
The following example will share a file system /software so that others may be able to mount it:# share /softwareIf I want to check all file systems being shared from my system:# share - /software rw ""
How to NFS A File System
Now, from another machine, I want to NFS the file system that is being shared above:How to Unmount an NFS File System# mount -F nfs alex:/software /mnt/software
Finally, let's unmount the previously mounted file system:# umount /mnt/software