CORRECT TEXT
/data Directory is shared from the server1.example.com server. Mount the shared directory that:
a) when user try to access, automatically should mount
b) when user doesn’t use mounted directory should unmount automatically after 50 seconds.
c) Shared directory should mount on /mnt/data on your machine.
Answer:
Explanation:
1. vi /etc/auto.master
/mnt /etc/auto.misc –timeout=50
2. vi /etc/auto.misc
3. data -rw,soft,intr server1.example.com:/data
4. service autofs restart
5. chkconfig autofs on
When you mount the other filesystem, you should unmount the mounted filesystem, Automount
feature of linux helps to mount at access time and after certain seconds, when user unaccess the
mounted directory, automatically unmount the filesystem.
/etc/auto.master is the master configuration file for autofs service. When you start the service, it
reads the mount point as defined in /etc/auto.master.