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

Unlock the full course today

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

Mount NFS exports

Mount NFS exports

- [Instructor] Mounting an NFS export is pretty similar to mounting other drives outside of the device name being different. In this chapter we quickly mounted a simple export without discussing it. The syntax for mounting an NFS export is: sudo mount -t nft servername:/ the exportpath / the mountpath. In our previous video we logged into RH host two and typed: sudo mount -t nfs rhhost1:/home/usershare /home/usermount. This used the NFS protocol to contact RH host one and mounted home/usershare export on the local /home/usermount directory. We can use the mount command to show which options the export is mounted with. You will want to log into your RH host two VM for this video and open a terminal. In the terminal type in mount and hit enter. Our NFS export is the last line. We did not specify any options when mounting the export so the defaults of RW, SUID, dev, exec, auto, no user and async were used. We can also see in this output that it is mounted as NFS vers=4.1, read and write…

Contents