{"id":221,"date":"2011-10-26T09:00:40","date_gmt":"2011-10-26T09:00:40","guid":{"rendered":"http:\/\/blog.thepcmechanic.org\/?p=221"},"modified":"2011-10-26T09:46:15","modified_gmt":"2011-10-26T09:46:15","slug":"how-to-recover-data-from-a-faulty-hard-drive","status":"publish","type":"post","link":"https:\/\/blog.thepcmechanic.org\/?p=221","title":{"rendered":"How to recover files and data from a faulty hard drive"},"content":{"rendered":"<p>Greetings!<\/p>\n<p>Following on from my post about how to replace a laptop hard disk, this post focuses on data recovery from a faulty hard disk.<\/p>\n<p>Firstly the reason the laptop hard drive failed on my flat-mates laptop was\u00a0because\u00a0 it was overheating. This was a combination of dust inside the case, vista being a bit heavy and some undetected viruses on the machine. So to save yourself issues, if you notice you laptop\/desktop getting hot or over heating, make sure that it is free from viruses and give the insides a clean!<\/p>\n<p>I cannot guarantee that using the method descibed below will recover lost data on a hard disk, as hard drives can break down in many different ways, however it did work for me, so it may do for you.<\/p>\n<p><strong>Problem:<\/strong><\/p>\n<p>Hard disk is faulty and cannot be read correctly.<\/p>\n<p><strong>Symptoms:<\/strong><\/p>\n<p>The disk I\u00a0recovered\u00a0data from wouldn&#8217;t get past a certain part in the boot-up sequence. I removed the disk from the machine found it to be a SATA drive. \u00a0Interestingly if you have a 3.5 inch disk caddy for a SATA disk drive, you may be able to conect a 2.5 inch laptop disk to it (which is what I did). <strong>The SATA and power connectors are the same.<\/strong><\/p>\n<p>After I removed the disk and put it in a caddy, windows reported that the disk couldn&#8217;t be read as it wasn&#8217;t formatted.<\/p>\n<p><strong>Solution:<\/strong><\/p>\n<p>After a bit of research and searching I came across<strong> two completely free tools that can help you recover data.<\/strong> They are made by the same people, or should I say person,\u00a0Christophe Grenier at\u00a0<a href=\"http:\/\/www.cgsecurity.org\">www.cgsecurity.org<\/a><\/p>\n<p>The first one I tried was <strong>testdisk <\/strong><a href=\"http:\/\/www.cgsecurity.org\/wiki\/TestDisk\">http:\/\/www.cgsecurity.org\/wiki\/TestDisk<\/a><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<div id=\"attachment_258\" style=\"width: 773px\" class=\"wp-caption aligncenter\"><strong><a href=\"https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/Testdisk.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-258\" class=\"size-full wp-image-258\" title=\"Testdisk\" src=\"https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/Testdisk.png\" alt=\"\" width=\"763\" height=\"507\" srcset=\"https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/Testdisk.png 763w, https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/Testdisk-300x199.png 300w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/a><\/strong><p id=\"caption-attachment-258\" class=\"wp-caption-text\">Interface for Testdisk<\/p><\/div>\n<p>&nbsp;<\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p><strong> <\/strong><\/p>\n<p>It is designed to recover lost partitions. As you can see it doesn&#8217;t use a <strong>GUI <\/strong>(graphical user interface) instead it uses text commands. Its not too difficult once you get the hang of navigating it using just a keyboard and there is quite a lot of user support if you get stuck on the authors website, including a walk-through guide.<\/p>\n<p>I tried it several times with different options without success. If it had been successful, I would have been able to read the disk as normal, so I had to try\u00a0something\u00a0else, plan B.<\/p>\n<p>The second piece of software I tried was <strong>PhotoRec<\/strong>:\u00a0<a href=\"http:\/\/www.cgsecurity.org\/wiki\/PhotoRec\">http:\/\/www.cgsecurity.org\/wiki\/PhotoRec<\/a><\/p>\n<div id=\"attachment_273\" style=\"width: 677px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/PhotoRec_startup.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-273\" class=\"size-full wp-image-273\" title=\"PhotoRec_startup\" src=\"https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/PhotoRec_startup.png\" alt=\"\" width=\"667\" height=\"479\" srcset=\"https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/PhotoRec_startup.png 667w, https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/PhotoRec_startup-300x215.png 300w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/a><p id=\"caption-attachment-273\" class=\"wp-caption-text\">Another text based user interface program!<\/p><\/div>\n<p>This software doesn&#8217;t worry about partitions it just looks at the data blocks and clusters on the disk. The upshot of this is that you can recover any data on a disk if the partition table is missing, as long as the drive is not\u00a0physically\u00a0damaged in such a way that makes the disk unreadable. This includes\u00a0previously\u00a0deleted files and files from a drive that has been re-formatted.<\/p>\n<p>After going through some of the options in the program, you can choose which type of files you want to recover:<\/p>\n<div id=\"attachment_275\" style=\"width: 677px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/PhotoRec_files.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-275\" class=\"size-full wp-image-275\" title=\"PhotoRec_files\" src=\"https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/PhotoRec_files.png\" alt=\"\" width=\"667\" height=\"479\" srcset=\"https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/PhotoRec_files.png 667w, https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/PhotoRec_files-300x215.png 300w\" sizes=\"auto, (max-width: 667px) 100vw, 667px\" \/><\/a><p id=\"caption-attachment-275\" class=\"wp-caption-text\">Choose the file type(s) to recover<\/p><\/div>\n<p>This is\u00a0extremely\u00a0useful, as instead of recovering all the data from the disk, you can just recover certain files such as picture\/photo files including bmp and jpg files. Of course you can still recover the whole disk if you want to.<\/p>\n<p>The one downside of recovering all of this data is the original file name will be lost. So if you had a some photos and one of them was called, &#8216;midnight in paris.jpg&#8217; this information will be lost and instead you will get a list files that looks like this:<\/p>\n<div id=\"attachment_277\" style=\"width: 435px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/photorec_recovered.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-277\" class=\"size-full wp-image-277\" title=\"photorec_recovered\" src=\"https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/photorec_recovered.png\" alt=\"\" width=\"425\" height=\"139\" srcset=\"https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/photorec_recovered.png 425w, https:\/\/blog.thepcmechanic.org\/wp-content\/uploads\/2011\/10\/photorec_recovered-300x98.png 300w\" sizes=\"auto, (max-width: 425px) 100vw, 425px\" \/><\/a><p id=\"caption-attachment-277\" class=\"wp-caption-text\">crytpic file names<\/p><\/div>\n<p>This means you will have to go through the results find the photos you want and rename them with a more suitable name. But at least you get your files back!<\/p>\n<p>It was this second method that enabled me to recover my flat-mates files and make him a very happy chappy indeed.<\/p>\n<p>Just make sure you have an up to date anti-virus when you recover old data from\u00a0someone\u00a0else&#8217;s disk!<\/p>\n<p><strong>Final word<\/strong><\/p>\n<p>PhotoRec is a very powerful tool and enables you you recover data from damaged disks. This is not its limit though because it can also recover data from CD-ROM&#8217;s and memory cards such as SD and MMC. It also runs on many operating systems:<\/p>\n<ul>\n<li>DOS\/Win9x<\/li>\n<li>Windows NT 4\/2000\/XP\/2003\/Vista\/2008\/7<\/li>\n<li>Linux<\/li>\n<li>FreeBSD, NetBSD, OpenBSD<\/li>\n<li>Sun Solaris<\/li>\n<li>Mac OS X<\/li>\n<\/ul>\n<p>And can recover data from multiple file formats:<\/p>\n<ul>\n<li>FAT,<\/li>\n<li>NTFS,<\/li>\n<li>EXT2\/EXT3 filesystem<\/li>\n<li>HFS+<\/li>\n<\/ul>\n<p>Untill next time!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Greetings! Following on from my post about how to replace a laptop hard disk, this post focuses on data recovery from a faulty hard disk. Firstly the reason the laptop hard drive failed on my flat-mates laptop was\u00a0because\u00a0 it was &hellip; <a href=\"https:\/\/blog.thepcmechanic.org\/?p=221\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-221","post","type-post","status-publish","format-standard","hentry","category-how-to"],"_links":{"self":[{"href":"https:\/\/blog.thepcmechanic.org\/index.php?rest_route=\/wp\/v2\/posts\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.thepcmechanic.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.thepcmechanic.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.thepcmechanic.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.thepcmechanic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=221"}],"version-history":[{"count":36,"href":"https:\/\/blog.thepcmechanic.org\/index.php?rest_route=\/wp\/v2\/posts\/221\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/blog.thepcmechanic.org\/index.php?rest_route=\/wp\/v2\/posts\/221\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/blog.thepcmechanic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.thepcmechanic.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.thepcmechanic.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}