{"id":694,"date":"2020-07-13T12:00:00","date_gmt":"2020-07-13T19:00:00","guid":{"rendered":"http:\/\/letsbuildroboticswithshadow8472.com\/?p=694"},"modified":"2020-07-13T04:08:54","modified_gmt":"2020-07-13T11:08:54","slug":"recovery","status":"publish","type":"post","link":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/2020\/07\/13\/recovery\/","title":{"rendered":"Recovery"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Good Morning from my Robotics Lab! This is Shadow_8472, and today, I am trying to recover my Laptop&#8217;s Windows drive. Let&#8217;s get started!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This project&#8230; this project I never wanted to need&#8230; has bullied around other stuff, and I&#8217;ll be glad when the equipment I&#8217;m using for it is freed up.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What felt like ages ago, I was formatting a drive so I could install MineOS on a 1 TB drive and move my family&#8217;s Minecraft server over from a smaller drive. The tutorial I was following said to format sdb, and I formatted sdb, but sdc was the one I really wanted to format. I missed the warning signs, and by the time I noticed, the deed was done. Normal procedure would dictate that I immediately shut down and remove the affected drive, but it&#8217;s screwed in and the computer is presently functioning as my primary workstation. Aside from mounting it once or twice right away to verify the damage, I&#8217;ve mostly left it alone.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ideally, I would have backed anything up right away and only worked on a copy. For that, we ordered an eSATA to SATA cable (with power included) and it came on a slow boat from Taiwan. In the meantime, doflagie, a friend from my family&#8217;s server who has a few decades in IT, told me how handy USB to SATA cords are and &#8220;[wished] you were next door, I&#8217;d throw you one!&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With the cord in hand, I hooked it up and quickly learned to treat it more like an internal SATA connection and less like an external USB drive. I HAVE A QUESTION OUT ABOUT <strong>USB<\/strong> TO <strong>eSATA<\/strong>. I had to rearrange the BIOS again to prefer USB over eSATA, but that wasn&#8217;t anything new to me.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I learned my way around the <strong>dd<\/strong> command. There&#8217;s a reason it&#8217;s called Disk Destroyer, and I&#8217;m thankful I haven&#8217;t learned that lesson for myself yet, and I hope this lesson I&#8217;m going through now is close enough. Data Duplicator, the actual name, is a rather odd command when you look at it. Where most commands would have you order your parameters, <strong>dd<\/strong> makes you explicitly state the input and output files. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I eventually dumped the formatted disk straight onto a waiting 1 TB SSD and took it to my tower upstairs. I don&#8217;t want any chance of wiping another important drive, so I grabbed the original HDD from ButtonMash, the drive with my first Linux install, and put it in my personal desktop instead of another Windows drive. I tried installing TestDisk from a package, but I was missing dependencies, and Ubuntu didn&#8217;t like my USB Wi-Fi dongle (What is it with that machine and OS changes needing different Wi-Fi? I mean, first Win10 hates my internal Wi-Fi card and now this?).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is where the project lingered while I worked on my Pi 4 Wi-Fi to Ethernet router. I broke down and finished that the easy way shortly after posting about it last, and due to fatigue and a photo chest week, I bumped this post a couple weeks and used something I had in reserve about a scam. I had another one, by the way. This time it was only about half a Bitcoin, but I reported it right away.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With a working Internet solution, I installed TestDisk and let it run. All I know about this utility is that if you&#8217;re doing free and open source data recovery, you&#8217;re dealing with TestDisk. I didn&#8217;t really see another option. I used it to find missing partitions, and I didn&#8217;t understand a lick of what I was doing. I ended up giving up and making an ISO file of the original drive over the copy I had made.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ISO copies don&#8217;t appear to be readily editable, it seems. I&#8217;ve since been working with the main drive. Most of my work toward this project has been the slog through the hard drive, looking for partitions, multiple times over.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I tried burning Win10 recovery CD. which needed a few megabytes more than a single layer, single sided DVD. A new, low-end USB drive has joined the fold, and it&#8217;s the biggest thumb drive I now have, weighing in at 16 GB. The ISO Microsoft gave me didn&#8217;t work: &#8220;operation [sic] not found&#8221;. I tried booting to it from my GRUB CD, but was told something or rather was invalid. I also tried some small distro called Trinity Recovery Kit, but again, it&#8217;s the right tools in inexperienced hands.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m getting tired of this. I want to move on, and doflagie even told me I could be on this for months. I just want to run a general recovery program and see what I can grab from the mess of things I have now, then try again after putting the ISO back for another pass. After that, this project needs to go rest in peace.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Addendum: I was going to make this post a two parter, but in all reality, I&#8217;m done with this project. I don&#8217;t have enough content for a second half. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I carved out what I could with some program I forget the name of. It combed through the remains of my hard disk and spat out a bunch of files. At least it had the courtesy to separate them by file type, because when I opened the PNG and JPG folders to sift through the ashes with a GUI viewer, my laptop chugged at tens of thousands of tiny, little files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I had to learn the <strong>find<\/strong> command to weed out the smaller ones. I figure in the hands of someone who knows what they&#8217;re doing, it can fully replace all functions you would expect from a GUI file viewer except actually generating a preview. One little adventure here was when I had around 22,000 or so PNG&#8217;s larger than one kilobyte , roughly 50,000 PNG&#8217;s total, yet 0 of those were smaller that 1k. The difference were exactly at 1k.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Another small adventure was when I moved the 1k files into their folder, but then it tried moving each file over and over again in an infinite loop. I immediately knew I was dealing with a recursive directory error. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When I finally went and combed through the reasonably sized PNG&#8217;s it was mostly stuff I probably had lying around in a cache or swap at some time. Other bits were system icons like for forward or back. The JPG folder looks more promising, so I hope to recover more memories from there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m done with this project. As with a few of my other projects, I need to release this one before all progress possible is made. Data recovery is expensive for a reason. I&#8217;ve done what it&#8217;s worth it to salvage things. Any additional data the professionals might glean from my drive isn&#8217;t worth it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Final Question: What projects have you had to lay to rest with no intent to ever finish?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Good Morning from my Robotics Lab! This is Shadow_8472, and today, I am trying to recover my Laptop&#8217;s Windows drive. Let&#8217;s get started! This project&#8230; this project I never wanted to need&#8230; has bullied around other stuff, and I&#8217;ll be glad when the equipment I&#8217;m using for it is freed up. What felt like ages &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/2020\/07\/13\/recovery\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Recovery&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[3,2],"tags":[],"class_list":["post-694","post","type-post","status-publish","format-standard","hentry","category-computer-maintenance-and-repair","category-linux"],"_links":{"self":[{"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/posts\/694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/comments?post=694"}],"version-history":[{"count":3,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/posts\/694\/revisions"}],"predecessor-version":[{"id":704,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/posts\/694\/revisions\/704"}],"wp:attachment":[{"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/media?parent=694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/categories?post=694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/tags?post=694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}