{"id":1393,"date":"2016-03-21T16:05:54","date_gmt":"2016-03-21T15:05:54","guid":{"rendered":"http:\/\/www.gistlabs.net\/weblogs\/?p=1393"},"modified":"2016-03-21T16:08:03","modified_gmt":"2016-03-21T15:08:03","slug":"making-a-sd-card-for-the-raspberry-pi-from-an-image-with-ddrescue","status":"publish","type":"post","link":"https:\/\/www.gistlabs.net\/weblogs\/making-a-sd-card-for-the-raspberry-pi-from-an-image-with-ddrescue\/","title":{"rendered":"Making a SD card for the Raspberry Pi from an image with ddrescue."},"content":{"rendered":"<h1><a href=\"https:\/\/www.gistlabs.net\/weblogs\/index.php\/2016\/making-a-sd-card-for-the-raspberry-pi-from-an-image-with-ddrescue\/ddrescue_1\/\" rel=\"attachment wp-att-1394\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1394\" src=\"https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2016\/03\/ddrescue_1.jpg\" alt=\"ddrescue\" width=\"674\" height=\"573\" srcset=\"https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2016\/03\/ddrescue_1.jpg 674w, https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2016\/03\/ddrescue_1-300x255.jpg 300w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/a>On GNU\/Linux :<\/h1>\n<p>The SD card may be presented on any device like \/dev\/sdx so use on the <strong>Terminal<\/strong> the command <strong>lsblk<\/strong>\u00a0 or <strong>sudo fdisk -lu<\/strong> to\u00a0check.<\/p>\n<p>&nbsp;<\/p>\n<blockquote>\n<pre>sudo apt-get install gddrescue xz-utils\r\nunxz myimage-raspberry-pi.img.xz\r\nsudo ddrescue -D --force myimage-raspberry-pi.img \/dev\/sdx<\/pre>\n<p>&nbsp;<\/p><\/blockquote>\n<h2><\/h2>\n<h2>On MacOSX :<\/h2>\n<p>On MacOsx you&#8217;ll need a real package handler aka : <strong>brew<\/strong> !<\/p>\n<ol>\n<li>Press <code>Command+Space<\/code> and type <b><i>Terminal<\/i><\/b> and press <b><i>enter\/return<\/i><\/b> key.<\/li>\n<li>Run in Terminal app:<br \/>\n<blockquote><p><code>ruby -e \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)\" &lt; \/dev\/null 2&gt; \/dev\/null<\/code><\/p><\/blockquote>\n<p>and press <b><i>enter\/return<\/i><\/b> key. Wait for the command to finish.<\/li>\n<li>Run:<br \/>\n<code>brew install ddrescue<\/code><\/li>\n<li>Search where is your SD card device with <strong>diskutil list<\/strong><\/li>\n<li>Then use it :<\/li>\n<\/ol>\n<blockquote>\n<pre>sudo ddrescue -D --force myimage-raspberry-pi.img \/dev\/diskx<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>On GNU\/Linux : The SD card may be presented on any device like \/dev\/sdx so use on the Terminal the command lsblk\u00a0 or sudo fdisk -lu to\u00a0check. &nbsp; sudo apt-get install gddrescue xz-utils unxz myimage-raspberry-pi.img.xz sudo ddrescue -D &#8211;force myimage-raspberry-pi.img \/dev\/sdx &nbsp; On MacOSX : On MacOsx you&#8217;ll need a real package handler aka : &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.gistlabs.net\/weblogs\/making-a-sd-card-for-the-raspberry-pi-from-an-image-with-ddrescue\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[245,9,13],"tags":[406,404,401,155,405,29,339,372,362,402,403],"class_list":["post-1393","post","type-post","status-publish","format-standard","hentry","category-electronique","category-dev","category-unix","tag-img","tag-brew","tag-ddrescue","tag-gnu","tag-image","tag-linux","tag-macosx","tag-pi","tag-raspberry","tag-raspberry-pi","tag-terminal","item-wrap"],"_links":{"self":[{"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/posts\/1393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/comments?post=1393"}],"version-history":[{"count":3,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/posts\/1393\/revisions"}],"predecessor-version":[{"id":1397,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/posts\/1393\/revisions\/1397"}],"wp:attachment":[{"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/media?parent=1393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/categories?post=1393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/tags?post=1393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}