rmcifsmnt Command

Purpose

Removes a CIFS mount from the /etc/filesystems file and unmounts the entry if it is mounted.

Syntax

rmcifsmnt -f MountPoint [-B | -N]

Description

The rmcifsmnt command removes a CIFS entry from /etc/filesystems. If the entry is mounted, the rmcifsmnt command then unmounts it.

Flags

Item Description
-B Removes the corresponding entry from the /etc/filesystems file, and unmounts the file system. This is the default.
-f MountPoint Specifies the path name of the CIFS mount.
-N Unmounts the file system, but does not remove the entry from the /etc/filesystems file.

Exit Status

Item Description
0 The command completed successfully.
>0 An error occurred.

Examples

  1. To remove the CIFS mount that is mounted over /mnt and unmount it, enter:
    rmcifsmnt -f /mnt 

Location

/usr/sbin/rmcifsmnt

Files

Item Description
/etc/filesystems Stores the CIFS entry.