NFS Services Administrator's Guide (B.11.31.04) March 2009

/nfs/desktop /etc/auto_desktop
# /etc/auto_desktop file
# local mount-point mount options remote server:directory
draw -nosuid thyme:/export/apps/draw
write -nosuid basil:/export/write
Enter the following commands:
cd /nfs/desktop
ls
The ls command displays the following output:
draw write
The draw and write subdirectories are the potential mount-points (browsability), but
are not currently mounted. However, if you enter the following commands, both draw
and write subdirectories are mounted:
cd /nfs/desktop/write
cd /nfs/desktop/draw
If AutoFS does not mount the configured directories, see “Troubleshooting NFS
Services” (page 127).
Disabling AutoFS
This section describes how to disable AutoFS.
To disable AutoFS, follow these steps:
1. To run the AutoFS shutdown script, enter the following command:
/sbin/init.d/autofs stop
2. In the /etc/rc.config.d/nfsconf file, set the value of AUTOFS variable to 0,
as follows:
AUTOFS=0
IMPORTANT: Do not disable AutoFS by terminating the automountd daemon with
the kill command. It does not unmount AutoFS mount-points before it terminates.
Use the autofs stop command instead.
Restarting AutoFS
AutoFS rarely needs to be restarted. In case you do need to restart it, follow these steps:
1. To find a list of all the automounted directories on the client, run the following
script:
for FS in $(grep autofs /etc/mnttab | awk {print $2})
do
100 Configuring and Administering AutoFS