{"id":453,"date":"2010-03-30T17:46:31","date_gmt":"2010-03-30T09:46:31","guid":{"rendered":"http:\/\/himiko.dnsalias.net\/wordpress\/?p=453"},"modified":"2010-03-30T21:48:29","modified_gmt":"2010-03-30T13:48:29","slug":"creating-multi-part-dmg-using-the-commandline","status":"publish","type":"post","link":"https:\/\/himiko.cube.sg\/wp\/2010\/03\/creating-multi-part-dmg-using-the-commandline\/","title":{"rendered":"Creating multi-part DMG using the commandline"},"content":{"rendered":"<p>There have been times whereby it is necessary to create disk image files such that it can be placed unto smaller drives. Maybe you have a 8GB DMG file that needs to be placed into 2 4GB disk. This can be done over the command-line. <!--more-->The steps are as follows<\/p>\n<ol>\n<li>Create the initial disk image for the file and attach it\n<pre>sudo hdiutil create -srcfolder folder_to_image first_file.dmg -attach<\/pre>\n<\/li>\n<li>Take note of the attached device from the output that might look something like this\n<pre>\/dev\/disk2s2           Apple_HFS                         \/Volumes\/folder_to_image<\/pre>\n<\/li>\n<li>Create the multi-part DMG files using the following command line\n<pre>sudo hdiutil create -srcdevice \/dev\/disk2s2 -segmentSize 4g final_file.dmg<\/pre>\n<\/li>\n<\/ol>\n<p>The output of this command will be the multiple DMG parts limited to 4GB with the extension of\u00a0<em>dmgpart<\/em>. Clicking on the first DMG file will result in all the part files being formed together and mounted as one single volume.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There have been times whereby it is necessary to create disk image files such that it can be placed unto smaller drives. Maybe you have a 8GB DMG file that needs to be placed into 2 4GB disk. This can be done over the command-line.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"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],"tags":[16],"class_list":["post-453","post","type-post","status-publish","format-standard","hentry","category-apple","tag-snippets"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paCfEy-7j","_links":{"self":[{"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/posts\/453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/comments?post=453"}],"version-history":[{"count":2,"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/posts\/453\/revisions"}],"predecessor-version":[{"id":496,"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/posts\/453\/revisions\/496"}],"wp:attachment":[{"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/media?parent=453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/categories?post=453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himiko.cube.sg\/wp\/wp-json\/wp\/v2\/tags?post=453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}