i have been wrestling with adding a (asustor) nas to my network last week and finally got to the point where i can mount folders via nfs in ubuntu and from my raspberry-pi running rune-audio.
i mount these in root/nfs/"folder" and added it to the nautilus sidebar.
now i would like to auto mount these upon boot and have read through:
https://help.ubuntu.com/community/Autofs and,
How to setup Automount/Autofs
I have installed autofs.
but i don't seem to understand how to convert the assignment in terminal when i manually mount it to a rule for auto.master:
Manual mount rule used: sudo mount 192.168.0.200:/volume1/Public /nfs/Public
help on this "conversion" would be greatly appreciated.
that is i assume that adding that rule to the standard auto.master is enough or should i work with indirect rules? incorperating auto.nfs?
many thanks in advance on any assistance.
Addition:
I due to the help of steeldriver i indeed got the folder mounted.
But i forgot to mention that besides the rule mentioned above:
sudo mount 192.168.0.200:/volume1/Public /nfs/Public.
i also need to mount:
sudo mount 192.168.0.200:/share/USB1 /nfs/Music.
i assumed this would be similar to implement, but when it tried the following:
* -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp 192.168.0.200:/volume1/Public
* -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp 192.168.0.200:/share/USB1
but this only gave me a Music folder with the public content, not the USB1 content. what am i doing wrong here?
autofs
- you can simply add it to your/etc/fstab
(although it may need some adjustment of options to prevent boot hangs in the case that the NAS is unavailable) -autofs
is really for mounting on demand – steeldriver Feb 17 '17 at 15:12