rmnfsmnt Command

Purpose

Removes an NFS mount.

Syntax

/usr/sbin/rmnfsmnt -f PathName [ -I | -B | -N ]

Description

The rmnfsmnt command removes the appropriate entry from the /etc/filesystems file and unmounts the file system specified. When used with the -N flag, the rmnfsmnt command unmounts the file system and does not modify the /etc/filesystems file.

Flags

Item Description
-B Removes the entry in the /etc/filesystems file and unmounts the directory. If no entry exists in the /etc/filesystems file, the flag makes no changes to the file. If the file system is not currently mounted, the flag does not attempt to unmount it. This flag is the default.
-f PathName Specifies the path name of the NFS-mounted file system.
-I Removes the entry specified by the path name from the /etc/filesystems file.
-N Unmounts the specified directory and does not modify the /etc/filesystems file.

Examples

  1. To unmount a file system, enter:
    rmnfsmnt -f /usr/man -N
    In this example, the /usr/man file system is unmounted.
  2. To remove a mount for a file, enter:
    rmnfsmnt -f /usr/local/man -B
    In this example, the mount for the /usr/local/man file is removed.

File

Item Description
/etc/filesystems Lists the remote file systems to mount during the system restart.