Removes an NFS mount.
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.
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. |
rmnfsmnt -f /usr/man -N
In
this example, the /usr/man file system is unmounted.rmnfsmnt -f /usr/local/man -B
In
this example, the mount for the /usr/local/man file is removed.Item | Description |
---|---|
/etc/filesystems | Lists the remote file systems to mount during the system restart. |