CCCPaste

autofs-in-action

# no samba share mounted
daniel@optepr0n:~$ df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
tmpfs          tmpfs      32M  1.5M   31M   5% /run
devtmpfs       devtmpfs   63G     0   63G   0% /dev
/dev/md0       xfs       1.6T  616G  984G  39% /
tmpfs          tmpfs      63G   34M   63G   1% /dev/shm
cgroup_root    tmpfs      63G     0   63G   0% /sys/fs/cgroup
/dev/md3       ext4      916G  227G  642G  27% /var
/dev/md2       ext4      477M  242M  206M  55% /boot
cgmfs          tmpfs     100K     0  100K   0% /run/cgmanager/fs
# running `ls` on the directory where it would be mounted
# the command takes a second to return files as the share is mounted
# on the fly
daniel@optepr0n:~$ ls -l /media/secure/
total 0
drwxrwx--- 2 root users 0 Jan  2 22:23 daniel
drwxrwx--- 2 root users 0 Feb 13 14:59 scan
drwxrwx--- 2 root users 0 Mar 27  2019 windowskey
# now we see the samba share mounted!
daniel@optepr0n:~$ df -Th
Filesystem        Type      Size  Used Avail Use% Mounted on
tmpfs             tmpfs      32M  1.5M   31M   5% /run
devtmpfs          devtmpfs   63G     0   63G   0% /dev
/dev/md0          xfs       1.6T  616G  984G  39% /
tmpfs             tmpfs      63G   34M   63G   1% /dev/shm
cgroup_root       tmpfs      63G     0   63G   0% /sys/fs/cgroup
/dev/md3          ext4      916G  227G  642G  27% /var
/dev/md2          ext4      477M  242M  206M  55% /boot
cgmfs             tmpfs     100K     0  100K   0% /run/cgmanager/fs
//swagg.cc/secure cifs      590G  451G  140G  77% /media/secure