{"id":2137,"date":"2013-05-23T15:45:45","date_gmt":"2013-05-23T04:45:45","guid":{"rendered":"http:\/\/support.cybersecure.com\/?p=2137"},"modified":"2013-09-17T12:20:47","modified_gmt":"2013-09-17T02:20:47","slug":"setting-up-a-permanent-auto-mounted-share-in-os-x","status":"publish","type":"post","link":"http:\/\/support.cybersecure.com\/?p=2137","title":{"rendered":"Setting up a permanent auto-mounted share in OS X"},"content":{"rendered":"<ol>\n<li>Open terminal<\/li>\n<li>sudo vifs<\/li>\n<li>Add a line in the following syntax:\n<ol>\n<li>\n<pre>&lt;hostname&gt;:\/&lt;sharename&gt; \/Volumes\/&lt;sharename&gt; url automounted,soft,url==cifs:\/\/&lt;username&gt;:&lt;password&gt;@&lt;hostname&gt;\/&lt;sharename&gt;<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<li>Dissection of parameters:\n<ol>\n<li>&lt;hostname = the hostname\/IP of the NAS<\/li>\n<li>&lt;sharename&gt; = the share name being served from the NAS<\/li>\n<li>\/Volumes\/&lt;sharename&gt; &#8211; should match the sharename to avoid naming conflicts with Finder trying to auto-mount the same volume<\/li>\n<li>&lt;username&gt; = the CIFS username you&#8217;d like to use<\/li>\n<li>&lt;password&gt; = the CIFS password<\/li>\n<li>&lt;hostname&gt; and &lt;sharename&gt; should match the above variables<\/li>\n<\/ol>\n<\/li>\n<li>To re-hash the mount points, run: <strong>sudo automount -vc<\/strong><\/li>\n<\/ol>\n<h2>Further reading\/troubleshooting<\/h2>\n<ol>\n<li>See <a href=\"http:\/\/www.dforge.net\/2012\/08\/07\/create-a-permanent-smb-mount-in-osx\/\">this guide<\/a> for more information on auto mounting, including talking to a Windows AD domain<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Open terminal sudo vifs Add a line in the following syntax: &lt;hostname&gt;:\/&lt;sharename&gt; \/Volumes\/&lt;sharename&gt; url automounted,soft,url==cifs:\/\/&lt;username&gt;:&lt;password&gt;@&lt;hostname&gt;\/&lt;sharename&gt; Dissection of parameters: &lt;hostname = the hostname\/IP of the NAS &lt;sharename&gt; = the share name being served from the NAS \/Volumes\/&lt;sharename&gt; &#8211; should match the &hellip; <a href=\"http:\/\/support.cybersecure.com\/?p=2137\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/support.cybersecure.com\/index.php?rest_route=\/wp\/v2\/posts\/2137"}],"collection":[{"href":"http:\/\/support.cybersecure.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/support.cybersecure.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/support.cybersecure.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/support.cybersecure.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2137"}],"version-history":[{"count":5,"href":"http:\/\/support.cybersecure.com\/index.php?rest_route=\/wp\/v2\/posts\/2137\/revisions"}],"predecessor-version":[{"id":2376,"href":"http:\/\/support.cybersecure.com\/index.php?rest_route=\/wp\/v2\/posts\/2137\/revisions\/2376"}],"wp:attachment":[{"href":"http:\/\/support.cybersecure.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/support.cybersecure.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2137"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/support.cybersecure.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}