[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4

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

-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

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

Related Information

The chnfsmnt command, mknfsmnt command, mount command, umount command.

Network File System (NFS) Overview for System Management in AIX 5L Version 5.2 System Management Guide: Communications and Networks.

List of NFS Commands.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]