Q:

(Re)mount all network drives from fstab

From Gentoo, I remember a separate /etc/init.d entry for mounting network drives (i.e., separate from local drives).  In Ubuntu, there is umountnfs.sh, which is used during shutdown (in order to ensure clean unmounting while the network is still available), and which one can use to unmount all (currently mounted) network drives.
However, I am missing a quick way for

mounting all network drives from /etc/fstab that are not up yet, and/or
remounting all network drives (e.g., if the credentials / rights of cifs mounts have been changed).

I would prefer a maintained 3rd party solution over a one-line shell hack.

A:

You're looking for the -t flag for mount. From man mount:
   -t, --types vfstype
   [...]

   More than one type may be specified in a comma  separated  list.
   The  list of filesystem types can be prefixed with no to specify
   the filesystem types on which no action should be taken.   (This
   can be meaningful with the -a option.) For example, the command:

            mount -a -t nomsdos,ext

So, this command would mount all cifs filesystems:
sudo mount -a -t cifs

A:

I just found out that the -t option to mount can be used in conjunction with -a, such that
sudo mount -a -t cifs

does what I need.  (sudo mount -a -t cifs -o remount works as well, for remounting after permission / password changes.)

