Advertisement
swaggboi

autofs-in-action

Feb 13th, 2020
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.52 KB | None | 0 0
  1. # no samba share mounted
  2. daniel@optepr0n:~$ df -Th
  3. Filesystem     Type      Size  Used Avail Use% Mounted on
  4. tmpfs          tmpfs      32M  1.5M   31M   5% /run
  5. devtmpfs       devtmpfs   63G     0   63G   0% /dev
  6. /dev/md0       xfs       1.6T  616G  984G  39% /
  7. tmpfs          tmpfs      63G   34M   63G   1% /dev/shm
  8. cgroup_root    tmpfs      63G     0   63G   0% /sys/fs/cgroup
  9. /dev/md3       ext4      916G  227G  642G  27% /var
  10. /dev/md2       ext4      477M  242M  206M  55% /boot
  11. cgmfs          tmpfs     100K     0  100K   0% /run/cgmanager/fs
  12. # running `ls` on the directory where it would be mounted
  13. # the command takes a second to return files as the share is mounted
  14. # on the fly
  15. daniel@optepr0n:~$ ls -l /media/secure/
  16. total 0
  17. drwxrwx--- 2 root users 0 Jan  2 22:23 daniel
  18. drwxrwx--- 2 root users 0 Feb 13 14:59 scan
  19. drwxrwx--- 2 root users 0 Mar 27  2019 windowskey
  20. # now we see the samba share mounted!
  21. daniel@optepr0n:~$ df -Th
  22. Filesystem        Type      Size  Used Avail Use% Mounted on
  23. tmpfs             tmpfs      32M  1.5M   31M   5% /run
  24. devtmpfs          devtmpfs   63G     0   63G   0% /dev
  25. /dev/md0          xfs       1.6T  616G  984G  39% /
  26. tmpfs             tmpfs      63G   34M   63G   1% /dev/shm
  27. cgroup_root       tmpfs      63G     0   63G   0% /sys/fs/cgroup
  28. /dev/md3          ext4      916G  227G  642G  27% /var
  29. /dev/md2          ext4      477M  242M  206M  55% /boot
  30. cgmfs             tmpfs     100K     0  100K   0% /run/cgmanager/fs
  31. //swagg.cc/secure cifs      590G  451G  140G  77% /media/secure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement