{"id":6,"date":"2009-01-01T20:53:35","date_gmt":"2009-01-01T19:53:35","guid":{"rendered":"http:\/\/kudzia.eu\/b\/?p=6"},"modified":"2011-04-30T10:22:27","modified_gmt":"2011-04-30T09:22:27","slug":"data-recovery-from-dying-hard-disk-with-dd","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2009\/01\/data-recovery-from-dying-hard-disk-with-dd\/","title":{"rendered":"data recovery from dying hard disk with dd"},"content":{"rendered":"<p>situation: i receive notebook with hdd in agonal state. winxp no longer boots up. i decide to connect hdd to desktop pc. bios detects it, but operating system [another winxp] is unable to recognize partitions. surprisingly linux [namely <a href=\"http:\/\/www.knoppix.org\/\">knoppix<\/a>] detects partitions and is even able to read some files from secondary partition.<\/p>\n<p>i take another ide hard drive, under windows i create similar partitioning as on original &#8211; faulty &#8211; disk: primary partition, one logical drive, with size a bit bigger than in original.<\/p>\n<p>i reboot again to knoppix and use dd with syntax as below to copy data:<\/p>\n<pre class=\"prettyprint\">\r\ndd if=\/dev\/hdcX of=\/dev\/hddX conv=noerror,sync\r\n<\/pre>\n<p>when dd got stuck on bad sectors area i\u2019ve terminated it and got as result sth similar:<\/p>\n<p><code>29072+0 records in<br \/>\n29072+0 records out<br \/>\n14884864 bytes transferred in 0.627128 seconds (23734970 bytes\/sec)<br \/>\n<\/code><\/p>\n<p>so dd managed to read 14884864 bytes from src hard drive and got stuck on bad sectors area. it\u2019ll slow down significantly and make multiple attempts to read each of bad sectors. but we can skip this area and continue after few megabytes. obviously it means loss of few MB of data, but still &#8211; rest of it will be recovered.<\/p>\n<pre class=\"prettyprint\">dd if=\/dev\/hdcX of=\/dev\/hddX conv=noerror,sync seek=XXXXXXX skip=XXXXXXX ibs=512<\/pre>\n<p>where XXXXXXX is (14884864+some number of bytes to skip)\/512<\/p>\n<p>thus i skip [and loose] some amount of data, but i\u2019m able to continue copying at the point where other tools crashed [ norton ghost and <a href=\"http:\/\/www.partimage.org\/\">partimage<\/a> were tested ]. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>situation: i receive notebook with hdd in agonal state. winxp no longer boots up. i decide to connect hdd to desktop pc. bios detects it, but operating system [another winxp] is unable to recognize partitions. surprisingly linux [namely knoppix] detects partitions and is even able to read some files from secondary partition. i take another [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[3],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-tech","tag-old-stuff"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":11,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":607,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/6\/revisions\/607"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}