{"id":38,"date":"2005-12-27T02:02:49","date_gmt":"2005-12-27T07:02:49","guid":{"rendered":"http:\/\/studorgs.bowdoin.edu\/robocup\/?p=38"},"modified":"2005-12-27T02:02:49","modified_gmt":"2005-12-27T07:02:49","slug":"mounting-memsticks-in-osx","status":"publish","type":"post","link":"https:\/\/research.bowdoin.edu\/robocup\/scripting\/mounting-memsticks-in-osx\/","title":{"rendered":"Mounting MemSticks in OSX"},"content":{"rendered":"<p>Mounting\/Unmounting our Sony Memory Sticks in OSX is becoming increasingly tricky.  <\/p>\n<p>In linux (or even in cygwin for Windows), this is a very easy process.<\/p>\n<p>Mac OSX has a seemingly easy mount command-line program called &#8216;disktool&#8217;.  It identifies the mount internally (e.g. disk1s1 or disk3), and externally (memory sticks typically come up as &#8216;Untitled&#8217;) and users can access this mount at \/Volumes\/Untitled\/.  disktool has commands to unmount drives via shell-scripting, which is very nice.<\/p>\n<p>Annoyingly, OSX identifies sticks differently per machine and even sometimes within the machine (sometimes it&#8217;s &#8216;disk1s1&#8217; or &#8216;disk3s1&#8217;).  If you&#8217;re not careful about setting it properly in the scripts, you can unmount something you don&#8217;t want to.  <strong>I found this out the hard way when I accidently unmounted Chown-dog&#8217;s hard drive. <\/strong> <\/p>\n<p>So all of a sudden today, the external and internal identification of my stick somehow changed as I was fiddling with Makefiles.  First the external id became &#8216;Untitled 1&#8217; then &#8216;Untitled 2&#8217; and ultimately after some ejections and a reboot, &#8216;UNTITLED&#8217; (shell-scripting in OSX is case-sensitive).  This changes the place where we copy all of our sweet code. <\/p>\n<p>I need to use my brain and figure out a way to solve these two annoying mounting issues&#8211;both to safely unmount the correct drive, and to not have to constantly change configuration files whenever osx decides to rename a mount.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mounting\/Unmounting our Sony Memory Sticks in OSX is becoming increasingly tricky. In linux (or even in cygwin for Windows), this is a very easy process. Mac OSX has a seemingly easy mount command-line program called &#8216;disktool&#8217;. It identifies the mount internally (e.g. disk1s1 or disk3), and externally (memory sticks typically come up as &#8216;Untitled&#8217;) and [&hellip;]<\/p>\n","protected":false},"author":56,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85,60],"tags":[],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-memsticks","category-scripting"],"_links":{"self":[{"href":"https:\/\/research.bowdoin.edu\/robocup\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/research.bowdoin.edu\/robocup\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/research.bowdoin.edu\/robocup\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/research.bowdoin.edu\/robocup\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/research.bowdoin.edu\/robocup\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":0,"href":"https:\/\/research.bowdoin.edu\/robocup\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"wp:attachment":[{"href":"https:\/\/research.bowdoin.edu\/robocup\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/research.bowdoin.edu\/robocup\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/research.bowdoin.edu\/robocup\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}