I eventually managed to automount my NAS share on my MBP with macOS High Sierra. Since it's the MacBook that I take to work I need to have the shares remounting automatically when I come back home. This is so far how I implemented it:
/etc/automaster
/etc/auto_smb
And this is how it gets mounted:
It works, it's decently fast (I reach 110MB/s reading) but it doesn't please me much. What I'd love to do is to remove the password in clear, having mount_smbfs (from the automount) picking the password from the keychain as suggested in the last "solution" in this ServerFault question.
Also I am not able to remove that "nobrowse" option, which I believe is the one preventing the finder to show the automounted network drive (hence the "browse" option as a desperate try, since it isn't documented). The idea would be that other than showing the drive, it would also be same mounted by the Finder is I access the share via CMD-K.
Any idea about how to make it working? Thanks.
/etc/automaster
Code:
#
# Automounter master map
#
+auto_master # Use directory service
/net -hosts -nobrowse,hidefromfinder,nosuid
/home auto_home -nobrowse,hidefromfinder
/Network/Servers -fstab
/- -static
# Network Shares
# /- auto_nfs -nobrowse,nosuid
/- auto_smb -nosuid,noowners,browse,soft
/etc/auto_smb
Code:
/../Volumes/Storage -fstype=smbfs,soft,noowners,noatime,nosuid,browse smb://NASuser:NASpassword@nas326/Storage
And this is how it gets mounted:
Code:
//admin@nas326/Storage on /Volumes/Storage (smbfs, nodev, nosuid, automounted, noowners, noatime, nobrowse, mounted by MacUser)
It works, it's decently fast (I reach 110MB/s reading) but it doesn't please me much. What I'd love to do is to remove the password in clear, having mount_smbfs (from the automount) picking the password from the keychain as suggested in the last "solution" in this ServerFault question.
Also I am not able to remove that "nobrowse" option, which I believe is the one preventing the finder to show the automounted network drive (hence the "browse" option as a desperate try, since it isn't documented). The idea would be that other than showing the drive, it would also be same mounted by the Finder is I access the share via CMD-K.
Any idea about how to make it working? Thanks.