{"id":1446,"date":"2012-11-29T11:10:52","date_gmt":"2012-11-29T11:10:52","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=1446"},"modified":"2012-11-29T11:17:18","modified_gmt":"2012-11-29T11:17:18","slug":"monitoring-progress-of-dd-on-osx","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=1446","title":{"rendered":"Monitoring Progress of DD on OSX"},"content":{"rendered":"<p>I needed to copy an iso to a flash drive to install Windows 7 on my friends computer and decided that\u00a0<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">&lt;a href=&quot;http:\/\/linux.die.net\/man\/1\/dd&quot;&gt;dd&lt;\/a&gt;<\/div><\/div>\n<p>\u00a0was the right tool to perform this transfer. However, I know from past experience that\u00a0<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">dd<\/div><\/div>\n<p>\u00a0will not show any kind of progress or progress bar. In the past I have been able to send a command along the lines of:<\/p>\n<div>\n<blockquote data-result=\"[object Object]\"><p>killall -USR1 dd<\/p><\/blockquote>\n<p>It\u00a0appears\u00a0that dd in OSX requires a -INFO flag from a kill \/ killall command rather then a -USR1 flag as is the standard in most Linux distributions I have played with. This brought me the following info:<\/p>\n<blockquote data-result=\"[object Object]\" data-second_best=\"[object Object]\"><p>1952+0\u00a0records\u00a0in<br \/>\n1951+0\u00a0records out<br \/>\n2045771776\u00a0bytes transferred\u00a0in\u00a01486.640041\u00a0secs (1376104bytes\/sec)<\/p><\/blockquote>\n<p>This is nice, but what if I want more information? Ok well then I can use\u00a0<a href=\"http:\/\/linux.die.net\/man\/1\/iostat\">iostat<\/a>. In my case the command I used was:<\/p>\n<blockquote data-result=\"[object Object]\"><p>iostat -Iw 3 disk1<\/p><\/blockquote>\n<p>This showed me a transfer summary every 3 seconds for disk1. The output looked like this:<\/p>\n<blockquote data-result=\"[object Object]\"><p>\u00a0 \u00a0\u00a0disk1\u00a0\u00a0 \u00a0 \u00a0\u00a0cpu\u00a0\u00a0 \u00a0\u00a0load\u00a0average<br \/>\nKB\/t\u00a0xfrs\u00a0\u00a0\u00a0MB\u00a0\u00a0us\u00a0sy\u00a0id\u00a0\u00a0\u00a01m\u00a0\u00a0\u00a05m\u00a0\u00a0\u00a015m<br \/>\n4.00\u00a0683747\u00a02670.89\u00a0\u00a0\u00a02\u00a0\u00a04\u00a094\u00a0\u00a00.18\u00a00.29\u00a00.70<br \/>\n4.00\u00a0684771\u00a02674.89\u00a0\u00a0\u00a02\u00a0\u00a03\u00a095\u00a0\u00a00.17\u00a00.29\u00a00.70<br \/>\n4.00\u00a0685795\u00a02678.89\u00a0\u00a0\u00a06\u00a0\u00a06\u00a088\u00a0\u00a00.17\u00a00.29\u00a00.70<br \/>\n4.00\u00a0686819\u00a02682.89\u00a0\u00a0\u00a04\u00a0\u00a05\u00a091\u00a0\u00a00.15\u00a00.28\u00a00.69<br \/>\n4.00\u00a0687843\u00a02686.89\u00a0\u00a0\u00a06\u00a0\u00a05\u00a089\u00a0\u00a00.14\u00a00.28\u00a00.69<br \/>\n4.00\u00a0688867\u00a02690.89\u00a0\u00a0\u00a03\u00a0\u00a05\u00a092\u00a0\u00a00.14\u00a00.28\u00a00.69<br \/>\n4.00\u00a0689868\u00a02694.80\u00a0\u00a0\u00a03\u00a0\u00a05\u00a092\u00a0\u00a00.13\u00a00.27\u00a00.69<\/p><\/blockquote>\n<p>Between the two, this was enough for my needs. However if you want a &#8220;graphical&#8221; way to monitor the transfer, check out\u00a0<a href=\"http:\/\/www.ivarch.com\/programs\/pv.shtml\">Pipe Viewer<\/a>.<\/p>\n<p>PV is used to pipe data through and gives you speed. \u00a0if you give it a size via the -s switch then it will give you a progress bar<\/p>\n<p>dd if=~\/Desktop\/file.dd | pv -s 256000k | dd of=\/dev\/disk1 bs=1024<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I needed to copy an iso to a flash drive to install Windows 7 on my friends computer and decided that\u00a0 &lt;a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1446","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1446"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1446\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}