{"id":48,"date":"2015-06-17T18:08:33","date_gmt":"2015-06-17T18:08:33","guid":{"rendered":"http:\/\/cors1601.unl.edu\/cdrhdev\/?p=48"},"modified":"2025-10-06T14:29:19","modified_gmt":"2025-10-06T19:29:19","slug":"network-drive-connection-problems","status":"publish","type":"post","link":"https:\/\/cdrhdev.unl.edu\/log\/2015\/network-drive-connection-problems\/","title":{"rendered":"Network Drive Connection Problems (and Solution)"},"content":{"rendered":"<p>[Originally posted by Jessica Dussault, June 17, 2015 on Github Pages]<\/p>\n<p>We recently finished work on making the <a href=\"http:\/\/nebnewspapers.unl.edu\/\">Nebraska Newspapers<\/a> version of the <a href=\"http:\/\/chroniclingamerica.loc.gov\/\">Chronicling America<\/a> project, which involved moving around lots of really, really large files like tiffs. I got off to a rocky start because my computer was having trouble connecting to the network drives which host those files. I\u2019m putting a description of my <a href=\"#problem\">problem<\/a> below, as well as the <a href=\"#solution\">solution<\/a> I came up with in the hopes that it may help someone else. The below is my attempt to mount a Windows network drive to my Mac (OS X &#8211; Yosemite).<\/p>\n<h2 id=\"problem\">The Problem<\/h2>\n<p>Alrighty, so the first step to connecting to a network drive, on a mac running Yosemite, is to click Go &gt; Connect to Server. Well\u2026.shoot.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-142\" src=\"https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/2_mount_fail.png\" alt=\"Screenshot of volume failing to mount on OSX\" width=\"421\" height=\"493\" srcset=\"https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/2_mount_fail.png 421w, https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/2_mount_fail-256x300.png 256w\" sizes=\"auto, (max-width: 421px) 100vw, 421px\" \/><\/p>\n<p>It says \u201cA volume on the server failed to mount.\u201d Yet, when I look in the filesystem via the GUI I can see that they have appeared. I should note that this is not always the case, sometimes they really, truly, failed to mount.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-141\" src=\"https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/3_wait_but.png\" alt=\"Screenshot of OSX finder with volume mounted\" width=\"597\" height=\"444\" srcset=\"https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/3_wait_but.png 597w, https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/3_wait_but-300x223.png 300w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/p>\n<p>If I\u2019m feeling lucky, I will try opening one. I\u2019ve been burned a few times at this step, and I am beginning to firmly believe that gingerly clicking on one of the volumes rather than confidently swaggering in is more likely to be successful. Otherwise, the share will sense my cockiness and promptly disconnect me. Today is a good day:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-139\" src=\"https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/4_careful_selection.png\" alt=\"Screenshot of terminal window returning &quot;Invalid argument&quot; when attempting to change directory into it.\" width=\"665\" height=\"515\" srcset=\"https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/4_careful_selection.png 665w, https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/4_careful_selection-300x232.png 300w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/p>\n<p>Things could be worse. The network drives are probably accessible 50% of the time and since I am pretty eager to get to work, I decide to accept that prayer is a good enough solution rather than looking for a permanent fix. Just gonna open the terminal and start working with the files and \u2013 well.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-138\" src=\"https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/5_terminal_reports.png\" alt=\"Screenshot of OSX finder indicating that the connection to the drive has failed\" width=\"828\" height=\"227\" srcset=\"https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/5_terminal_reports.png 828w, https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/5_terminal_reports-300x82.png 300w, https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/5_terminal_reports-768x211.png 768w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\" \/><\/p>\n<p>I made a big mistake by changing windows. The network drives, having deigned to show up at the connection party, do not like being ignored. Clicking back to them, I find that they have disconnected. Through trial and error I have found that the volumes dislike being ignored regardless of whether or not I have interacted with them in the terminal. No problem, I\u2019ll just start over and reconnect\u2026<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-140\" src=\"https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/6_clicked_away.png\" alt=\"Screenshot of volume mounted in the finder\" width=\"444\" height=\"476\" srcset=\"https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/6_clicked_away.png 444w, https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/6_clicked_away-280x300.png 280w\" sizes=\"auto, (max-width: 444px) 100vw, 444px\" \/><\/p>\n<p>Or maybe not. \u201cThere was a problem connecting to the server\u2026Check the server name or IP address, and then try again.\u201d<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-137\" src=\"https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/7_sometimes_error.png\" alt=\"Screenshot indicating a problem connecting to the server\" width=\"425\" height=\"288\" srcset=\"https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/7_sometimes_error.png 425w, https:\/\/cdrhdev.unl.edu\/log\/wp-content\/uploads\/2015\/06\/7_sometimes_error-300x203.png 300w\" sizes=\"auto, (max-width: 425px) 100vw, 425px\" \/><\/p>\n<p>Frustratingly, I could not simply unmount the drives via the command line with the \u201cumount\u201d command. It was time to go research network drives. \ud83d\ude41<\/p>\n<h2 id=\"solution\">The Solution<\/h2>\n<p>Previous to this experience, I knew nothing about SMB or Windows sharing, etc. I did some reading about the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Server_Message_Block\">SMB<\/a> \u201cServer Message Block\u201d protocol. To my dismay, I found that not all of the Samba tools are available for Mac, which has switched to using some of its own SMB utilities. It seems simple now, but it took me more than a try or two to connect to the network drives when I was looking at examples on the internet.<\/p>\n<p>If you want to see all the volumes associated with a particular network drive:<\/p>\n<div class=\"highlighter-rouge\">\n<pre class=\"highlight\"><code>smbutil view \/\/libsvr12\n<\/code><\/pre>\n<\/div>\n<p>List all drives currently mounted:<\/p>\n<div class=\"highlighter-rouge\">\n<pre class=\"highlight\"><code>mount -t smbfs\n<\/code><\/pre>\n<\/div>\n<p>Mount a drive! Many examples on the internet listed a password as part of the command, but when I tried that I was unable to connect. The below command will simply prompt you for the password (which is 10x better, anyway).<\/p>\n<figure class=\"highlight\">\n<pre><code class=\"language-bash\" data-lang=\"bash\">mkdir \/Volumes\/rosewater3\nmount -t smbfs \/\/jdussault@servername\/Rosewater3 \/Volumes\/rosewater3\n<span class=\"c\"># mount -t smbfs \/\/username@server\/volume \/mount\/path<\/span><\/code><\/pre>\n<\/figure>\n<p>Unmount the drives. Although I had not been able\u00a0to use \u201cumount\u201d above, I found that with the -t for \u201cvfstype\u201d I was able to unmount the volumes, including the ones that said claimed they were not really there.<\/p>\n<div class=\"highlighter-rouge\">\n<pre class=\"highlight\"><code>umount -t smbfs \/mount\/path\n<\/code><\/pre>\n<\/div>\n<p>I\u2019ve been mounting and unmounting the volumes this way for a few weeks and it seems to help, at least when the volumes get \u201cstuck\u201d in that halfway they\u2019re-mounted-but-don\u2019t-exist kind of state.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Originally posted by Jessica Dussault, June 17, 2015 on Github Pages] We recently finished work on making the Nebraska Newspapers version of the Chronicling America project, which involved moving around lots of really, really large files like tiffs. I got off to a rocky start because my computer was having trouble connecting to the network&hellip;<\/p>\n <a href=\"https:\/\/cdrhdev.unl.edu\/log\/2015\/network-drive-connection-problems\/\" title=\"Network Drive Connection Problems (and Solution)\" class=\"entry-more-link\"><span>Read More<\/span> <span class=\"screen-reader-text\">Network Drive Connection Problems (and Solution)<\/span><\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"Layout":"1c","footnotes":""},"categories":[6],"tags":[8,7],"class_list":["entry","author-jdussault","post-48","post","type-post","status-publish","format-standard","category-network","tag-network-drive","tag-smb"],"_links":{"self":[{"href":"https:\/\/cdrhdev.unl.edu\/log\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cdrhdev.unl.edu\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cdrhdev.unl.edu\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cdrhdev.unl.edu\/log\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cdrhdev.unl.edu\/log\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":6,"href":"https:\/\/cdrhdev.unl.edu\/log\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":690,"href":"https:\/\/cdrhdev.unl.edu\/log\/wp-json\/wp\/v2\/posts\/48\/revisions\/690"}],"wp:attachment":[{"href":"https:\/\/cdrhdev.unl.edu\/log\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cdrhdev.unl.edu\/log\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cdrhdev.unl.edu\/log\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}