Skip to Content
Learning RHEL Networking
book

Learning RHEL Networking

by Andrew Mallett
June 2015
Intermediate to advanced
216 pages
4h 48m
English
Packt Publishing
Content preview from Learning RHEL Networking

Auto-mounting NFS with autofs

There is a client-side service called autofs that acts as an auto-mount service for both local and remote filesystems. This works with a kernel module and the user space service; as you enter a directory, the mount is created automatically. The autofs package needs to be installed along with the nfs-utils package if NFS mounts are to be made. The auto-mounting feature can work with other remote filesystems, not just NFS. To install autofs, use the following command:

$ sudo yum install -y autofs

With this installed, the default behavior is to use the /net directory point for the network hosts. We can then access shares or exports on any host that we have access to, and enter a directory that matches the server name ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering CentOS 7 Linux Server

Mastering CentOS 7 Linux Server

Mohamed Alibi, BHASKARJYOTI ROY
Troubleshooting CentOS

Troubleshooting CentOS

Jonathan Hobson

Publisher Resources

ISBN: 9781785287831