{"id":763,"date":"2015-05-19T02:58:41","date_gmt":"2015-05-19T02:58:41","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=763"},"modified":"2015-05-19T02:59:45","modified_gmt":"2015-05-19T02:59:45","slug":"create-an-image-of-a-hard-drive-with-ddrescue-on-os-x","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/create-an-image-of-a-hard-drive-with-ddrescue-on-os-x\/","title":{"rendered":"Create an Image of Hard Drive with ddrescue on OS X"},"content":{"rendered":"<p>Install ddrescue<\/p>\n<pre>sudo port install ddrescue<\/pre>\n<p>If you don&#8217;t have ports installed, then I would recommend doing some web searching on how to install ddrescue.<\/p>\n<p><strong>Identify Disk:<\/strong><\/p>\n<p>identify the &#8220;name&#8221; of the disk you want to &#8220;image&#8221; .<\/p>\n<pre>diskutil list<\/pre>\n<p>Example:<\/p>\n<pre>Macbook:~ bob$ diskutil list\r\n \/dev\/disk0\r\n #:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TYPE NAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IDENTIFIER\r\n 0:\u00a0\u00a0\u00a0\u00a0\u00a0 GUID_partition_scheme\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 *200.1 GB\u00a0\u00a0 disk0\r\n 1:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 EFI EFI\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 204.2 MB\u00a0\u00a0 disk0s1\r\n 2:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Apple_HFS Mac\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 199.7 GB\u00a0\u00a0 disk0s2\r\n 3:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Apple_Boot Recovery HD\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 641.1 MB\u00a0\u00a0 disk0s3\r\n \/dev\/disk1\r\n #:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TYPE NAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IDENTIFIER\r\n 0:\u00a0\u00a0\u00a0\u00a0 FDisk_partition_scheme\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 *250.8 GB\u00a0\u00a0 disk1\r\n 1:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Windows_NTFS Windows Hard Drive\u00a0\u00a0\u00a0\u00a0\u00a0 250.8 GB\u00a0\u00a0 disk1s1\r\n Macbook:~ bob$<\/pre>\n<p>The first disk &#8220;disk0&#8221; is the OS X System disk, the second one &#8220;disk1&#8221; is an external drive, the one I want to image.<\/p>\n<p><strong>Recovery\/Image command:<\/strong><\/p>\n<p>Change \/dev\/disk1s1 to your disk.\u00a0 If you have multiple partitions and want to image the whole drive then just use the disk name like &#8220;\/dev\/disk1&#8221;\u00a0 instead of\u00a0 &#8220;\/dev\/disk1s1&#8221;.<\/p>\n<pre>sudo ddrescue -v \/dev\/disk1s1 ~\/Desktop\/ddrescue.dmg ddrescue.log<\/pre>\n<p>In the above command I am attempting to rescue data from the first partition on disk1 and send it to an image &#8220;ddrescue.dmg&#8221; on my desktop.<\/p>\n<p>Now go get some coffee, lunch, etc. and it might be finished when you get back&#8230;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install ddrescue sudo port install ddrescue If you don&#8217;t have ports installed, then I would recommend doing some web searching on how to install ddrescue. Identify Disk: identify the &#8220;name&#8221; of the disk you want to &#8220;image&#8221; . diskutil list &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/create-an-image-of-a-hard-drive-with-ddrescue-on-os-x\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[220,216,218,36,274,217],"class_list":["post-763","post","type-post","status-publish","format-standard","hentry","category-os-x","tag-ddrescues","tag-disk-recovery","tag-hard-disk","tag-mac","tag-os-x","tag-recovery"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=763"}],"version-history":[{"count":15,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/763\/revisions"}],"predecessor-version":[{"id":778,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/763\/revisions\/778"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}