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
Enhanced AutoFS Administrator's Guide: HP-UX 11i v1 > Chapter 3 Configuring and Administering AutoFS

Modifying or Removing an Automounted Directory

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

If you are planning to remove an automounted directory, issue 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 all the users using the mounted directory.

Warn any user to cd out of the directory, and kill any process that are using the directory, or wait until the processes terminate. You can issue the following command to kill all the processes using the mounted directory:

/usr/sbin/fuser -ck local_mount_point

Use an editor to make your changes to the direct or indirect map.

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

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

/usr/sbin/automount
WARNING! File systems under the management of AutoFS must always be maintained through AutoFS utilities, automountd and automount. Manually mounting and unmounting AutoFS managed file systems can lead to disruptive or unpredictable results, including but not limited to the following:
  • Commands hang or do not return expected results.

  • Applications fail due to their dependencies on these mounted file systems.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2004 Hewlett-Packard Development Company, L.P.