From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Mount a simple NFS share

Mount a simple NFS share - Red Hat Enterprise Linux Tutorial

From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

Start my 1-month free trial

Mount a simple NFS share

- [Instructor] Now we have an export ready for the client-side. Let's log into our rhhost2 VM, and open a terminal. First, let's make a mount point. Type in, sudo mkdir /home/usermount, and hit enter. Type in your password if prompted. And now, let's mount it. Type in, sudo mount -t nfs rhhost1:/home/usershare /home/usermount and hit enter. Now type in mount again to verify that it's mounted. The very last line of this output shows the export is mounted. In later chapters, we'll spend more time looking into the client-side mount options. If your export doesn't mount, there are a couple things to troubleshoot. The main one is that your host name resolution on both virtual machines is correct. Since we're using host names, they need to resolve to the correct IP addresses. Double-check this in the /etc/host files on both VMs. Also, verify that the nfs-server service is running. On rhhost2, use showmount -e rhhost1 to verify the export is visible. Next, verify that the firewall's…

Contents