{"id":1635,"date":"2009-02-27T10:05:10","date_gmt":"2009-02-27T15:05:10","guid":{"rendered":"http:\/\/blogs.terrorware.com\/geoff\/?p=1635"},"modified":"2009-02-27T10:05:10","modified_gmt":"2009-02-27T15:05:10","slug":"hfs-on-linux","status":"publish","type":"post","link":"https:\/\/blogs.terrorware.com\/geoff\/2009\/02\/27\/hfs-on-linux\/","title":{"rendered":"hfs+ on linux"},"content":{"rendered":"<p>I got a new MacBook from work and need to migrate files from my old Dell notebook running Xubuntu Linux.\u00c2\u00a0 Luckily, I had recovered a drive from a bricked machine that was donated to pages that I could use to transfer the files.<\/p>\n<p>I don&#8217;t like the Fat32 file system, so I formatted the external drive as hfs+.\u00c2\u00a0 My workstation, running Debian, mounted the drive fine, but I couldn&#8217;t write.\u00c2\u00a0 I <a href=\"http:\/\/ubuntuforums.org\/showthread.php?p=2346494#post2346494\">found that I had to disable journaling<\/a> on the drive before I could write it in Linux:<\/p>\n<blockquote>\n<pre>$ diskutil disableJournal \/Volumes\/ghingexternal<\/pre>\n<\/blockquote>\n<p>Note: that command has to be run on the Mac.<\/p>\n<p>Once I did this, I could write to the disk, but only as root.\u00c2\u00a0 <a href=\"http:\/\/ubuntuforums.org\/archive\/index.php\/t-224663.html\">Permissions of hfsplus partition<\/a>, a thread on the Ubuntu message boards, provides this insight which is likely the case:<\/p>\n<p>I got a new MacBook from work and need to migrate files from my old Dell notebook running Xubuntu Linux.\u00c2\u00a0 Luckily, I had recovered a drive from a bricked machine that was donated to pages that I could use to transfer the files.<\/p>\n<p>I don&#8217;t like the Fat32 file system, so I formatted the external drive as hfs+.\u00c2\u00a0 My workstation, running Debian, mounted the drive fine, but I couldn&#8217;t write.\u00c2\u00a0 I <a href=\"http:\/\/ubuntuforums.org\/showthread.php?p=2346494#post2346494\">found that I had to disable journaling<\/a> on the drive before I could write it in Linux:<\/p>\n<blockquote>\n<pre>$ diskutil disableJournal \/Volumes\/ghingexternal<\/pre>\n<\/blockquote>\n<p>Note: that command has to be run on the Mac.<\/p>\n<p>Once I did this, I could write to the disk, but only as root.\u00c2\u00a0 <a href=\"http:\/\/ubuntuforums.org\/archive\/index.php\/t-224663.html\">Permissions of hfsplus partition<\/a>, a thread on the Ubuntu message boards, provides this insight which is likely part of the problem (since the mountpoint of the hfs+ formatted drive has uid:gid 99:99 on my Linux box):<\/p>\n<blockquote><p>I have to preface my entry with the warning that I am a complete newbie. I was having the same problem with accessing my files on my hfs+ partition. What I discovered is that by default OSX doesn&#8217;t allow any access for the gid for files and folders in your User&#8217;s folders. I don&#8217;t know if this is the wisest thing, but I went into the Finder, did a &#8220;Get Info&#8221; on all the files\/folders I wanted to access in Ubuntu, I then went under permissions and switched the Group ID to something I could use in Ubuntu. I then made sure that the line in the fstab that mounts my hfs+ partition had a &#8220;gid=XXX&#8221; statement that matched what I set in OSX. I also made sure that the user I was using in Ubuntu was part of the group mentioned above. If this doesn&#8217;t make sense, let me know and I will clarify. Also, if you need help with OSX permissions, here is a link to an Apple KB article: http:\/\/docs.info.apple.com\/article.html?artnum=107039<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I got a new MacBook from work and need to migrate files from my old Dell notebook running Xubuntu Linux.\u00c2\u00a0 Luckily, I had recovered a drive from a bricked machine that was donated to pages that I could use to transfer the files. I don&#8217;t like the Fat32 file system, so I formatted the external&hellip; <a class=\"more-link\" href=\"https:\/\/blogs.terrorware.com\/geoff\/2009\/02\/27\/hfs-on-linux\/\">Continue reading <span class=\"screen-reader-text\">hfs+ on linux<\/span><\/a><\/p>\n","protected":false},"author":3,"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","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,5,145],"tags":[712,68,96,614,713,21287],"class_list":["post-1635","post","type-post","status-publish","format-standard","hentry","category-note-to-self","category-howto","category-technology","tag-disk","tag-hfs","tag-linux","tag-mac","tag-mount","tag-howto","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4wnIz-qn","_links":{"self":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/1635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/comments?post=1635"}],"version-history":[{"count":1,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/1635\/revisions"}],"predecessor-version":[{"id":1636,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/1635\/revisions\/1636"}],"wp:attachment":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/media?parent=1635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/categories?post=1635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/tags?post=1635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}