{"id":280,"date":"2011-01-11T10:40:32","date_gmt":"2011-01-11T09:40:32","guid":{"rendered":"https:\/\/thebc.ch\/blog\/?p=280"},"modified":"2013-02-01T13:11:10","modified_gmt":"2013-02-01T12:11:10","slug":"setup-automount-for-smbcifs","status":"publish","type":"post","link":"https:\/\/thebc.ch\/blog\/?p=280","title":{"rendered":"Setup Automount for SMB\/CIFS"},"content":{"rendered":"<div>\n<div><a href=\"https:\/\/thebc.ch\/blog\/280\/setup-automount-for-smbcifs\/netinfomanager\/\" rel=\"attachment wp-att-693\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-693\" title=\"NetInfoManager\" src=\"http:\/\/thebc.ch\/upload\/2011\/01\/NetInfoManager.png\" alt=\"\" width=\"498\" height=\"467\" srcset=\"https:\/\/thebc.ch\/upload\/2011\/01\/NetInfoManager.png 498w, https:\/\/thebc.ch\/upload\/2011\/01\/NetInfoManager-300x281.png 300w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/><\/a><\/p>\n<div>\n<div><a title=\"Enlarge\" href=\"https:\/\/192.168.100.2\/wiki\/index.php\/File:NetInfoManager.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/192.168.100.2\/wiki\/skins\/common\/images\/magnify-clip.png\" alt=\"\" width=\"15\" height=\"11\" \/><\/a><\/div>\n<p>NetInfoManager Screenshot<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>This guide will setup automount in conjunction with SMB\/CIFS network resources. The advantage of this solution is that if the network connection to the SMB\/CIFS server get lost it will automatically reconnect if the server is available again.<\/p>\n<p>There are quite some ways to do this, but the best way, that I found, was to use NetInfo Manager. This way your network shares will be automountet every time you login, and if the network share get disconnected it will automatically reconnect to share.<\/p>\n<p>Step by step. Open up NetInfo Manger. (You will find it under your utility folder in the application folder or use Key-combo \u00e2\u20ac\u0153Shif+Cmd+U\u00e2\u20ac\u009d)<\/p>\n<p>Here we need to add a object to the mounts. Highlight mounts add press the icon in the top that says \u00e2\u20ac\u0153New\u00e2\u20ac\u009d You will now have a object called \u00e2\u20ac\u0153new_directory\u00e2\u20ac\u009d under mounts Highlight new_directory and add 4 new object using the \u00e2\u20ac\u0153New\u00e2\u20ac\u009d icon. You should now edit the 4 object and give them correct property and value(s)<\/p>\n<pre>Object1: Property=name, Value=server_ip:\/share_point\r\nObject2: Property=dir, Value=\/path_to_local_mount_point\r\nObject3: Property=vfstype, Value=url\r\nObject4: Property=opts, Value=url==smb:\/\/username:password@server_ip\/share_point<\/pre>\n<p>Remember that your local mounting point need to exists before setting this up. When you have done this, you need to save it, and restart your automount.<\/p>\n<p>Open up and a terminal and write.<\/p>\n<pre>sudo killall -HUP automount<\/pre>\n<p>That\u00e2\u20ac\u2122s it. It should now work as a charm.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NetInfoManager Screenshot This guide will setup automount in conjunction with SMB\/CIFS network resources. The advantage of this solution is that if the network connection to the SMB\/CIFS server get lost it will automatically reconnect if the server is available again. &hellip; <a href=\"https:\/\/thebc.ch\/blog\/?p=280\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-280","post","type-post","status-publish","format-standard","hentry","category-mac-os-x"],"_links":{"self":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=280"}],"version-history":[{"count":8,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/280\/revisions"}],"predecessor-version":[{"id":2721,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/280\/revisions\/2721"}],"wp:attachment":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}