Automount*
From PlcWiki
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
- place where it will be mounted
- 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 \ $
- name of the destination directory, here the share is mounted in "/ mnt / cifs / voko"
- Samba parameters
- share name