HP CIFS Client A.02.02 Administrator's Guide
Installing, Configuring, and Using the HP CIFS Client
Automatic Mounting of CIFS Filesystems
Chapter 236
Automatic Mounting of CIFS Filesystems
In addition to the mount command discussed in the previous section,
which was used to explicitly create a single mount, there are other
methods to manage the mounting of CIFS file systems. See the reference
for mount_cifs and umount_cifs in Chapter 6 for syntax details not
contained in this section.
Using /etc/fstab
By creating entries in /etc/fstab you can mount CIFS filesystems
automatically at boot time, or mount multiple CIFS file systems on one
or more CIFS Servers, with a single command entered manually. The
format for such entries is:
server:/share mount_point cifs defaults 0 0
See fstab(4) man page for detailed information on the format of this
file.
Then, to mount all CIFS entries in /etc/fstab manually, enter:
$ mount -aF cifs
To unmount all currently mounted CIFS filesystems, enter:
$ umount -aF cifs
These commands will occur automatically, at bootup and shutdown, if
the system is configured to start the CIFS Client at bootup, as explained
above in item 1 of “Using the HP CIFS Client” on page 31.
Storing Mounts in the CIFS Client Mount Database
CIFS mount information can also be stored in the CIFS mount database.
In this case, the mounts are re-established whenever the CIFS Client is
started. Mounts can be stored with either the cifsdb or cifsmount
commands. See Chapter 5, “Commandline Utilities,” on page 69 for
details.
The CIFS Client mount database file is /var/opt/cifsclient/cfgdb.ppl.
The path to this file is not configurable. This file is generated
automatically and must not be manually edited.