HP CIFS Client A.02.02.03 Administrator's Guide
See Also
cifsmount, cifslogin, cifslist
mount_cifs, umount_cifs
Mounts and unmounts CIFS file systems. This section describes the usage of the mount and umount
commands when the CIFS filesystem is specified for the FS type
Synopsis
mount -F cifs [-ar] [-o fs_specific_option[,...]] [server:/share
mount_point]
umount -aF cifs | mount_point
Description
The mount command mounts file systems. Only a superuser can mount file systems. Other users
can use mount to list mounted file systems. Use cifslist to view CIFS-specific mounts and user
connections.
The mount command attaches server:/share to mount_point. server is a remote system. share is
a directory on this remote system and mount_point is a directory on the local file tree. mount_point
must already exist, and be given as an absolute path name. It will become the name of the root
of the newly mounted file system.
If mount is invoked without any arguments, it lists all of the mounted file systems from the file system
mount table, /etc/mnttab.
The umount command unmounts currently-mounted file systems. Only a superuser can unmount
file systems.
In HP CIFS Server A.02.01, unmounting the last mount to a server does not logout any of the users
logged in at the server. This new behavior allows users to be automatically reconnected if the user
needs to unmount and remount a share.
Options
-F cifs Filesystem-specific identifier. Always required for mounting and unmounting CIFS file
systems, except for the command form umount moint_point.
-a Used with mount, mounts all CIFS filesystems that have entries in /etc/fstab. Used
with umount, unmounts all currently mounted CIFS file systems.
-r Mounts as read-only.
-o This class of options is specified with the following syntax:
-o keywrd[,keywrd...],keywrd=value[,keywrd=value...]
Some keywords are specified as keyword/value pairs, some are not. -o options must
be delimited by commas; no white space is allowed. For example:
-o ro,username=fulton,password=pokey
Following are the -o options tomount supported by the CIFS Client (keywords that
require values are indicated by "keyword=value"):
ro Mount as read-only filesystem.
domain=domain Send this domain name to the server,
username=name Username sent to server. By default, the HP CIFS Client
accesses the server under the same user name as the login
name of the user. If you have a different user name at the
server, you may use this option to set that name. It is
42 Commandline Utilities