And if you use autofs, then you don't have the performance drop and the shares would be mounted on-demand, as requested. You seemed interested in other solutions, so I stopped making suggestions.
autofs acts as a smart mounter based on configuration files. I do have a few CIFS mounts on 1 machine.
Code:
win7ult -fstype=cifs,rw,iocharset=utf8,file_mode=0660,dir_mode=0770,credentials=/root/data/win7.credentials ://172.22.22.8/Data
That's the main /etc/auto.Data file on my client Linux system. No spaces in any of the options, all on a single line. /etc/auto.master on the same machine has to point to auto.Data.
The mount looks like this:
Code:
/Data/win7ult$ df -h .
Filesystem Size Used Avail Use% Mounted on
//172.22.22.8/Data 101G 23G 79G 22% /Data/win7ult
You can force a username and groupname for the mount, if needed. The mount options are part of the mount.cifs and get passed through directly. It won't be slow like FUSE and there isn't any GUI to configure it.
I also use autofs to mount USB storage devices, since they are sometimes available and sometimes not available.
Bookmarks