{"id":5189,"date":"2012-07-26T00:55:28","date_gmt":"2012-07-26T05:55:28","guid":{"rendered":"http:\/\/bucktownbell.com\/?p=5189"},"modified":"2012-07-26T01:21:08","modified_gmt":"2012-07-26T06:21:08","slug":"using-dd-to-image-a-disk-over-ssh","status":"publish","type":"post","link":"http:\/\/bucktownbell.com\/?p=5189","title":{"rendered":"using DD to image a disk over SSH"},"content":{"rendered":"<blockquote><p>What I like to do is log into the remote server and run &#8220;<strong>watch -n 1 iptables &#8211;list -v -n<\/strong>&#8221; to watch the byte count to give you an idea of how much data has been passed already. of course you&#8217;ll have to start iptables first if it isnt running.<\/p><\/blockquote>\n<p>via <a href=\"http:\/\/daverdave.com\/node\/65\">using DD to image a disk over SSH | daverdave.com<\/a>.<\/p>\n<p>This is pretty useful too.\u00a0 I couldn&#8217;t do this using sshfs so googled and found that regular ssh works.\u00a0 I do not like to image disks with disks running other than the one being imaged.\u00a0 I find it too dangerous that a single mistype could wipe out a functioning disk.\u00a0 Doing this over a nework seems much safer.\u00a0 Here&#8217;s the command I used from the linked to article:<\/p>\n<p>ssh desthost.domain.com &#8220;dd if=\/dev\/sda&#8221; | dd of=\/dev\/sda bs=1024k conv=notrunc,noerror<\/p>\n<p>The destination host feeds the image.\u00a0 The host that runs this command is a Knoppix live boot with the only HD running being the one being written to.\u00a0 I suppose if I were to do this a lot then a dedicated image machine might prove useful with an HD to store the images and some OS and a burn HD in a hot swap slot.\u00a0 The HD with OS and images would be expendible in that an accidental overwrite would be a mere inconvenience instead of actual loss of data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What I like to do is log into the remote server and run &#8220;watch -n 1 iptables &#8211;list -v -n&#8221; to watch the byte count to give you an idea of how much data has been passed already. of course &hellip; <a href=\"http:\/\/bucktownbell.com\/?p=5189\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[271,28,157],"class_list":["post-5189","post","type-post","status-publish","format-standard","hentry","category-operating-systems","tag-dd","tag-linux-command","tag-ssh"],"_links":{"self":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/5189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5189"}],"version-history":[{"count":6,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/5189\/revisions"}],"predecessor-version":[{"id":5192,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/5189\/revisions\/5192"}],"wp:attachment":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5189"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}