Automount*

From PlcWiki

Revision as of 12:39, 13 October 2020 by Jon (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This can be used to mount Samba share SAS to a directory on the kernel, or on SQL. The share is mounted if you need to use it. After some time of inactivity, it is dismantled again. The advantage over "hard mount" is that if they restart the Win server, we will not lose the connection. It will be restored when the share is re-accessed.

Configuration in /etc/auto.master

/mnt / cifs /etc/auto.cifs -g
  1. place where it will be mounted
  2. custom configuration of the mounted device

The # -g directory (Ghost) is still visible even if the resource is not mounted

'ATTENTION !!'

The / mnt / cifs directory will already be mounted. Therefore, do not include in the existing structure. It would be covered!

Configuration in /etc/auto.cifs

voko -fstype = cifs, username = user, password = pass, workgroup = crossen.sas-automotive.com: // saszwivfs / lw-w
hidden -fstype = cifs, username = user, password = pass, workgroup = crossen.sas-automotive.com: // saszwivfs / hidden \ $
  1. name of the destination directory, here the share is mounted in "/ mnt / cifs / voko"
  2. Samba parameters
  3. share name
Personal tools