{"id":5907,"date":"2014-05-28T00:25:23","date_gmt":"2014-05-27T22:25:23","guid":{"rendered":"http:\/\/daniel.haxx.se\/blog\/?p=5907"},"modified":"2014-05-28T00:25:23","modified_gmt":"2014-05-27T22:25:23","slug":"crashed-and-recovered-in-no-time","status":"publish","type":"post","link":"https:\/\/daniel.haxx.se\/blog\/2014\/05\/28\/crashed-and-recovered-in-no-time\/","title":{"rendered":"Crashed and recovered in no time"},"content":{"rendered":"<p>Working from home, even writing software from home, my computer setup is pretty crucial for a productive work day.<\/p>\n<p>Yesterday morning after I had sat down with my coffee and started to work on my latest patch iteration I noticed that some disk operations seemed to be very slow. I looked around and then suddenly an &#8216;ls&#8217; of a directory returned an error!<\/p>\n<p>I checked the system logs and I saw them filling up with error messages identifying problems with a hard drive. Very quickly I identified the drive as the bigger one (I have one SSD and one much larger HDD). Luckily, that&#8217;s the one I mostly store document, pictures and videos on and I backup that thing every night. This disk is not very old and I&#8217;ve never experienced this sort of disk crash before, not even with disks that I&#8217;ve used for many years more than I&#8217;ve used this&#8230;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2678 alignright\" title=\"boom\" src=\"http:\/\/daniel.haxx.se\/blog\/wp-content\/uploads\/2011\/03\/boom.jpg\" alt=\"boom\" width=\"200\" height=\"180\" srcset=\"https:\/\/daniel.haxx.se\/blog\/wp-content\/uploads\/2011\/03\/boom.jpg 200w, https:\/\/daniel.haxx.se\/blog\/wp-content\/uploads\/2011\/03\/boom-150x135.jpg 150w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/>I ripped the thing out, booted up again and I could still work since my source code and OS are on the SSD. I ordered a new one at once. Phew.<\/p>\n<p>Tuesday morning I noticed that for some unexplainable reason I had my \/var partition on the dead drive (and not backed up). That turned out to be a bit inconvenient since now my Debian Linux had no idea which packages I had installed and apt-get and dpkg were all crippled to death.<\/p>\n<p>I did some googling and as my laptop is also a Debian sid install I managed to restore it pretty swiftly by copying over data from there. At least it (the \/var contents) is now mostly back to where it was before.<\/p>\n<p>On Tuesday midday, some 26 hours after I ripped out the disk, my doorbell bing-bonged and the delivery guy handed me a box with a new and shiny 3 TB drive. A couple of hours ago I inserted it, portioned it, read back a couple of hundred gigabytes of backup, put back the backup job in cron again and &#8230; yeah, I think I&#8217;m basically back to where I was before it went south.<\/p>\n<p>All in all: saved by the backup. Not many tears. Phew this time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Working from home, even writing software from home, my computer setup is pretty crucial for a productive work day. Yesterday morning after I had sat down with my coffee and started to work on my latest patch iteration I noticed that some disk operations seemed to be very slow. I looked around and then suddenly &hellip; <a href=\"https:\/\/daniel.haxx.se\/blog\/2014\/05\/28\/crashed-and-recovered-in-no-time\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Crashed and recovered in no time<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,12,22],"tags":[425,427],"class_list":["post-5907","post","type-post","status-publish","format-standard","hentry","category-development","category-electronics","category-mozilla","tag-mozilla","tag-work"],"_links":{"self":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/5907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/comments?post=5907"}],"version-history":[{"count":9,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/5907\/revisions"}],"predecessor-version":[{"id":5916,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/5907\/revisions\/5916"}],"wp:attachment":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/media?parent=5907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/categories?post=5907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/tags?post=5907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}