Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
NFS Services Administrator's Guide: HP-UX 11i version 3 > Chapter 3 Configuring and Administering AutoFS

Modifying or Removing an Automounted Directory from a Map

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

To modify or remove an automounted directory from a map, follow these steps:

  1. Before you remove an automounted directory, enter the following command to determine whether the directory is currently in use:

    /usr/sbin/fuser -cu local_mount_point

    This command lists the process IDs and user names of everyone using the mounted directory.

  2. Warn any users to exit the directory. Terminate any processes that are using the directory, or wait until the processes terminate. You can enter the following command to kill all the processes that are using the mounted directory:

    /usr/sbin/fuser -ck local_mount_point
  3. Use an editor to make changes to the direct or indirect map.

  4. If you removed all of the entries in the direct or indirect map, remove that map’s entry in the master map.

  5. If you made any changes to the master map, or if you added or modified a local mount point in a direct map, enter the following command to force AutoFS to reread its maps:

    /usr/sbin/automount
CAUTION: You must maintain filesystems managed by AutoFS, by using automountd and automount utilities. Manually mounting and unmounting file systems managed by AutoFS can cause disruptive or unpredictable results, including but not limited to commands hanging or not returning expected results. Applications can also fail because of their dependencies on these mounted filesystems.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2007 Hewlett-Packard Development Company, L.P.