HP CIFS Client A.01.09 Administrator's Guide, August 2003
Installing, Configuring, and Using the HP CIFS Client
More on Mounting CIFS Filesystems
Chapter 2 33
More on Mounting 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 4 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
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.
NOTE Automounting a CIFS filesystem using the HP ONC+ AutoFS service is
only supported on HP-UX release 11i version 2. For HP-UX release 11.0
and 11i, attempting mount CIFS filesystems via AutoFS may cause hung
processes to remain in the system process table and may make the
mount point directory inaccessable
How to Mount and Login in One Step
The root user has the option to mount a CIFS filesystem and login to the
CIFS Server in one step, obviating the need to explicitly issue the
cifslogin command. Using the names from the examples above: