Inhaltsverzeichnis

Autofs für NAS einrichten

Prerequisites

sudo apt-get install autofs
sudo apt-get cifs-utils

Master Map File

vi /etc/auto.master

#+auto.master
/media/<SHAREDFOLDER>    /etc/auto.<SHAREDFOLDER> --ghost

Map File für CIFS Share

vi /etc/auto.logos

music   -fstype=cifs,rw,uid=1000,gid=1000,username=<USER>,password=<PASS>     ://192.168.168.xx/<SHAREDFOLDER>/music
photo   -fstype=cifs,rw,uid=1000,gid=1000,username=<USER>,password=<PASS>     ://192.168.168.xx/<SHAREDFOLDER>/photo

Debugging

systemctl start autofs.service

sudo service autofs stop automount -f -v

watch "dmesg | tail -20"