Hallo
tolle Seite und tolles Forum, dass mir schon so viel geholfen hat, seitdem ich Linux (Ubuntu und elementary) nun seit ca. einem Jahr benutze. Ich habe mir ein solides Anfängerwissen angeeignet, verzweifel aber im Moment seit Tagen an der Konfiguration von autofs. Ich möchte mein NAS (Synology) mittels autofs mounten, bekomme aber keinen Zugriff auf den freigegebenen Ordner. Mein auto.master File sieht wie folgt aus. Ich habe nur die eine Zeile am Ende hinzugefügt.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # # Sample auto.master file # This is a 'master' automounter map and it has the following format: # mount-point [map-type[,format]:]map [options] # For details of the format look at auto.master(5). # #/misc /etc/auto.misc # # NOTE: mounts done from a hosts map will be mounted with the # "nosuid" and "nodev" options unless the "suid" and "dev" # options are explicitly given. # #/net -hosts # # Include /etc/auto.master.d/*.autofs # The included files must conform to the format of this file. # +dir:/etc/auto.master.d # # Include central master map if it can be found using # nsswitch sources. # # Note that if there are entries for /net or /misc (as # above) in the included master map any keys that are the # same will not be seen as the first read key seen takes # precedence. # +auto.master /nas /etc/auto.cifs --timeout=300 --ghost |
Das Map File auto.cifs sieht folgendermaßen aus.
1 | music -fstype=cifs,gid=1001,uid=1001,credentials=/home/christof/.smbcredentials ://192.168.86.3/music |
nachdem ich
1 | sudo service autofs restart |
ausgefürt habe, sehe ich via mount Befehl folgenden Eintrag:
1 | etc/auto.cifs on /nas type autofs (rw,relatime,fd=6,pgrp=1452,timeout=300,minproto=5,maxproto=5,indirect,pipe_ino=33163) |
Wenn ich aber zum Pfad /nas/music navigiere, egal ob via Nautilus oder im Terminal, bekomme ich nur eine Meldung, dass "dieser Ort konnte nicht angezeigt werden"
Mounten über fstab funktionert problemlos, genauso vie das manuelle mounten. Nur autofs bekomme ich nicht konfiguriert. Die credentials Datei scheint also zu funktionieren. NFS nutze ich nicht, da die Synology NAS kein echte Nutzerverwaltung besitzt, in der man die uid und gid anpassen kann. Die Samba Freigabe funktioniert jedoch problemlos.
Vielen Dank für eure Unterstützung