The automatic mounting of autofs commands involves services haldaemon and messagebus. Ensure that the two services are enabled. * ** How do I configure the/share/soft and/share/iso directories on the client 10.10.10.10.10 to automatically mount the server 10.10.10.254? * ***** The shared share directory has been configured on the 10.10.10.254 server. If it is not configured, you can refer to the previous nfs configuration *** to configure it on the client 10 computer.
Auto mount autofs command
Services haldaemon and messagebus are involved. Ensure that the two services are enabled.
* ** How do I configure the/share/soft and/share/iso directories on the client 10.10.10.10.10 to automatically mount the server 10.10.10.254?
* ***** The shared share directory has been configured on the 10.10.10.254 server. If not configured, refer to the previous nfs configuration ****
Configure on client 10
1. mkdir/share
2. vim/etc/auto. master
/Share
/Etc/auto. share -- the auto. share file after it does not exist and its name is customized.
3. # vim/etc/auto. share -- create a custom file.
Soft-172.16.2.35:/share/soft
Iso-172.16.2.35:/share/iso
4./etc/init. d/autofs restart -- the service can be restarted as long as it is enabled (if not, restart and try again)
Chkconfig autofs on
-- The mounted directory cannot be seen by default by using the ls command under the/share directory, but can be included in cd/share/iso. This will automatically mount the directory for you.
In about five minutes, if it is not used, it will automatically umount out.
Related reading:
Autofs + NFS + NIS smart Mount http://www.linuxidc.com//Linux/2012-10/73012.htm
CIFS automatically mounts http://www.linuxidc.com//Linux/2012-10/71794.htm via autofs
Use autofs in Ubuntu to automatically load the Virtual Box data space http://www.linuxidc.com//Linux/2011-12/48832.htm
RHCE certification coaching: RHEL 6 easy to build autofs service http://www.linuxidc.com//Linux/2011-10/45581.htm
RHCE certification tutoring: RH133-2 nis + autofs http://www.linuxidc.com//Linux/2011-04/35248.htm
Http://www.linuxidc.com//Linux/2010-07/27246.htm of nis + nfs + autofs Based on RHCE
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10