{"id":32,"date":"2008-02-29T15:30:41","date_gmt":"2008-02-29T14:30:41","guid":{"rendered":"http:\/\/www.miscdebris.net\/blog\/2008\/02\/29\/mounting-directory-from-mac-os-x-host-in-ubuntu-gutsy-gibbon-guest-in-virtualbox\/"},"modified":"2008-04-14T15:08:47","modified_gmt":"2008-04-14T14:08:47","slug":"mounting-directory-from-mac-os-x-host-in-ubuntu-gutsy-gibbon-guest-in-virtualbox","status":"publish","type":"post","link":"http:\/\/www.miscdebris.net\/blog\/2008\/02\/29\/mounting-directory-from-mac-os-x-host-in-ubuntu-gutsy-gibbon-guest-in-virtualbox\/","title":{"rendered":"Mounting directory from Mac OS X host in Ubuntu Gutsy Gibbon guest in VirtualBox"},"content":{"rendered":"<p>There is a <a href=\"http:\/\/www.virtualbox.org\/wiki\/Downloads\" target=\"_blank\">new beta version<\/a> of VirtualBox for Mac OS X available and installing Ubuntu Gutsy Gibbon worked like a charm (in opposition to Parallels). The only problem I encountered was, that it was not possible to mount a directory from the Mac OS X host in the guest system with either the internal mechanism (Folder sharing) and just directly via samba. In the latter case I could mount the host directory and could view it once, but than the mount was always busy and I had no access anymore. But I found another solution: sshfs. Here is a short introduction how to do that:<\/p>\n<p><!--more--><\/p>\n<ul>\n<li>Install sshfs via &#8220;sudo apt-get install sshfs&#8221;<\/li>\n<li>Add your user to the fuse group &#8220;sudo adduser user fuse&#8221; and logout\/login to become member of this group.<\/li>\n<li>On the Mac OS X host allow ssh access: System Preferences-&gt;Sharing, Service &#8220;Remote Login&#8221;. Make sure your user is allowed to access via ssh<\/li>\n<li> Make a directory where you want to mount the host directory, e.g. &#8220;mkdir ~\/MacDocs&#8221;<\/li>\n<li>Than mount a directory from the host with &#8220;sshfs -o uid=1000,gid=1000 username@server:\/Users\/username\/ ~\/MacDocs&#8221;. Here the uid and gid should be of your username, have a look in \/etc\/passwd. That&#8217;s it.<\/li>\n<li>Unmount the directory with fusermount -u MacDocs.<\/li>\n<\/ul>\n<p>Links: <a href=\"http:\/\/wiki.ubuntuusers.de\/FUSE\/sshfs\" target=\"_blank\">http:\/\/wiki.ubuntuusers.de\/FUSE\/sshfs<\/a> (German), <a href=\"http:\/\/ubuntu.wordpress.com\/2005\/10\/28\/how-to-mount-a-remote-ssh-filesystem-using-sshfs\/\" target=\"_blank\">http:\/\/ubuntu.wordpress.com\/2005\/10\/28\/how-&#8230;&#8230;&#8230;-sshfs\/<\/a>, <a href=\"http:\/\/wiki.ubuntuusers.de\/SSH\" target=\"_blank\">http:\/\/wiki.ubuntuusers.de\/SSH<\/a> (German)<\/p>\n<p>It&#8217;s also possible to have the directory <a href=\"http:\/\/wiki.ubuntuusers.de\/SSH\" target=\"_blank\">automounted at system start<\/a>, but I never managed to not enter my password or passphrase, so I just run a script with the &#8220;sshfs &#8230;&#8221; command if I need access to the host.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a new beta version of VirtualBox for Mac OS X available and installing Ubuntu Gutsy Gibbon worked like a charm (in opposition to Parallels). The only problem I encountered was, that it was not possible to mount a directory from the Mac OS X host in the guest system with either the internal &hellip; <a href=\"http:\/\/www.miscdebris.net\/blog\/2008\/02\/29\/mounting-directory-from-mac-os-x-host-in-ubuntu-gutsy-gibbon-guest-in-virtualbox\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Mounting directory from Mac OS X host in Ubuntu Gutsy Gibbon guest in VirtualBox<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[9,10],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-linux","category-macosx"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6pnj-w","_links":{"self":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/32"}],"collection":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":0,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}