{"id":25,"date":"2008-01-14T07:19:30","date_gmt":"2008-01-14T14:19:30","guid":{"rendered":"http:\/\/www.planetcy.com\/?p=25"},"modified":"2012-06-26T12:46:08","modified_gmt":"2012-06-26T19:46:08","slug":"mount-a-windows-share-on-linux","status":"publish","type":"post","link":"http:\/\/www.planetcy.com\/?p=25","title":{"rendered":"Mount a Windows share on Linux"},"content":{"rendered":"<p>Seems I get asked often how to mount a Windows share on a Linux machine. Here is a repost of some decent directions I found.<\/p>\n<p>Keep in mind that SMB is dated at this point, you&#8217;ll want to be using CIFS.<\/p>\n<p>To test and see if your Linux machine sees the shares on the Windows machine:<br \/>\n<code class=\"screen\">smbclient -L &lt;windows-box&gt; -U &lt;username&gt;<\/code><\/p>\n<p>Make a directory for the mount point, you know in the mnt directory:<\/p>\n<p><code class=\"screen\">mkdir \/mnt\/&lt;name-of-mount-point&gt;<\/code><\/p>\n<p><span style=\"color: #999999;\">Note: Maybe make it something simple like \/mnt\/dreadfull_active_directory_server that way everyone knows what it is?? You know cause \/mnt\/my_horse is good and all but doesn&#8217;t tell me what kind of horse it is! YOU KNOW?<\/span><\/p>\n<p>Mount the share, yes it&#8217;s time to actually mount the horse, put your foot in the stirrups:<\/p>\n<p><code class=\"screen\">mount -t smbfs -o username=&lt;username&gt;,password=&lt;password&gt; \/\/&lt;win-box&gt;\/&lt;share&gt; \/mnt\/&lt;name-of-mountpoint&gt;<\/code><\/p>\n<p>OR<\/p>\n<p><code>mount -t cifs -o  username=&lt;username&gt;,password=&lt;password&gt;  \/\/&lt;win-box&gt;\/&lt;share&gt; \/mnt\/&lt;name-of-mountpoint&gt;<\/code><\/p>\n<p><em><span style=\"color: #999999;\">Note: This syntax saves the password.<\/span><\/em><br \/>\n<code>-username=&lt;username&gt;,password=&lt;password&gt;<\/code><\/p>\n<p>Create a symbolic link to the mounted drive, i really hope you kow what a symbolic link is:<\/p>\n<p><code class=\"screen\">ln -s \/mnt\/&lt;name-of-mount-point&gt; \/&lt;path-of-symlink&gt;<\/code><\/p>\n<p><em><span style=\"color: #999999;\">Note: A symbolic link serves pretty much the same purpose as short cut in Windows. For instance if you linked \/mnt\/my_stupid_active_directory_server to \/msads then you could refer to it as such cd \/msads instead of cd \/mnt\/my_stupid_active_directory_server. Get it?<\/span><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Seems I get asked often how to mount a Windows share on a Linux machine. Here is a repost of some decent directions I found. Keep in mind that SMB is dated at this point, you&#8217;ll want to be using CIFS. To test and see if your Linux machine sees the shares on the Windows [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["bg-stuff"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.planetcy.com\/index.php?rest_route=\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.planetcy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.planetcy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.planetcy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.planetcy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":4,"href":"http:\/\/www.planetcy.com\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":96,"href":"http:\/\/www.planetcy.com\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions\/96"}],"wp:attachment":[{"href":"http:\/\/www.planetcy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.planetcy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.planetcy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}