{"id":406,"date":"2014-01-27T17:38:34","date_gmt":"2014-01-27T17:38:34","guid":{"rendered":"http:\/\/www.buildcube.com\/tech_blog\/?p=406"},"modified":"2025-11-08T07:27:47","modified_gmt":"2025-11-08T07:27:47","slug":"the-linux-dd-command","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2014\/01\/27\/the-linux-dd-command\/","title":{"rendered":"The Linux DD command"},"content":{"rendered":"\n<p>DD can create sparse files, skipping blocks that are entirely made of zeros<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo dd if=\/dev\/sdb of=my.img bs=4M conv=sparse status=progress<\/pre>\n\n\n\n<p>To detect the progress or how far dd has come in a running copy, open a second terminal window, run top to get the id of the dd process, then issue the command kill -USR1 xxxx (replace xxx with the actual ID of the process), now it may appear that nothing happened, but switch the terminal to the one dd is running in<\/p>\n\n\n\n<p>you should see something like<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">1036902161+0 records in\n1036902160+0 records out\n530893905920 bytes (531 GB) copied, 29702.1 s, 17.9 MB\/s<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>DD can create sparse files, skipping blocks that are entirely made of zeros sudo dd if=\/dev\/sdb of=my.img bs=4M conv=sparse status=progress To detect the progress or how far dd has come in a running copy, open a second terminal window, run top to get the id of the dd process, then issue the command kill -USR1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,156],"tags":[],"class_list":["post-406","post","type-post","status-publish","format-standard","hentry","category-linux","category-storage"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=406"}],"version-history":[{"count":2,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/406\/revisions"}],"predecessor-version":[{"id":6023,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/406\/revisions\/6023"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}