{"id":18094,"date":"2012-12-18T08:30:55","date_gmt":"2012-12-18T13:30:55","guid":{"rendered":"http:\/\/www.shamusyoung.com\/twentysidedtale\/?p=18094"},"modified":"2012-12-18T12:29:30","modified_gmt":"2012-12-18T17:29:30","slug":"the-thing-that-broke","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=18094","title":{"rendered":"The Thing That Broke"},"content":{"rendered":"<p><table   class=\"\" cellpadding='0' cellspacing='0' border='0' align='center'><tr><td><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/splash_computer_trash.jpg' class='insetimage'   alt='splash_computer_trash.jpg' title='splash_computer_trash.jpg'\/><\/td><\/tr><\/table><\/p>\n<p>It was the strangest thing. My computer would just lock up. Now, locking up isn&#8217;t an exotic problem by any stretch, but I&#8217;ve never had a machine lock up in this way. It begins with me alt-tabbing over to a window I haven&#8217;t used in a while, and the window just flat-out refuses to wake back up. Other than the one zonked window, everything seems fine, but the machine is actually in a death spiral now and there&#8217;s nothing I can do to save it. I can wait, or I can click on another window, or hit alt-Tab again. It doesn&#8217;t matter. In about ten seconds the mouse cursor will stop moving, and  few seconds later the sound will begin stuttering and the machine will be borked.<\/p>\n<h3>Diagnosis<\/h3>\n<p>I can use the computer for hours without problems. I can even play games, which taxes basically every part of the machine. No problem.  But if I walk away for twenty minutes it will be dead when I get back. Note that this is the inverse of how problems usually manifest. Usually the machine will fail when it&#8217;s being pushed, not when it&#8217;s idle. <\/p>\n<p>Once the machine dies, it seems to recover incrementally. The first boot attempt will stall while the BIOS is still getting things going.  Then I reboot again and I&#8217;ll get to the boot loader where I can pick which operating system to use. (Windows 7 or Ubuntu, the latter being installed mostly as a novelty.) If I boot into Win 7, then it will stall on the black logo screen. I&#8217;ll reboot again and I&#8217;ll get all the way to the blue logo screen, or perhaps get a brief glimpse of the desktop before it dies again. But after N attempts, it boots fine and the machine seems normal again. Once I successfully boot, the machine acts like nothing was wrong.<\/p>\n<p>This problem leads to weeks of bafflement and confusion. It&#8217;s a problem with Win 7! My graphics card is overheating! The power supply is dying! The memory is going bad! I&#8217;ve seen a lot of sick machines in my day, but I&#8217;ve never seen one exhibit these symptoms in this pattern. I scan the hard drive, I test the memory, I re-install drivers. Everything seems fine. I&#8217;d blame Windows 7 (just because Ubuntu seems to work and I&#8217;m out of hardware to blame) but this doesn&#8217;t <em>feel<\/em> like a software problem. <\/p>\n<p>There really is no upper limit on the number of random tests and guesses you can make, so usually I noodle around until I get bored with the problem and go back to ignoring it. At some point I begin to suspect the machine is simply haunted.  <\/p>\n<p><!--more--><\/p>\n<p><table   class=\"\" cellpadding='0' cellspacing='0' border='0' align='center'><tr><td><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/broken_monitor.jpg' class='insetimage'   alt='broken_monitor.jpg' title='broken_monitor.jpg'\/><\/td><\/tr><\/table><\/p>\n<h3>The Cause Revealed<\/h3>\n<p>On Saturday morning I get up to find the machine won&#8217;t start at all. According to Win 7, files are &#8220;missing&#8221;.  Booting into Ubuntu, I see a couple of hard drives are gone. <\/p>\n<p>Ah! Now I get it. <\/p>\n<p>Okay, this machine is a Frankenstein&#8217;s monster of new and old parts. When I got the machine, I stuck an old hard drive into it. The machine began with a 2TB SATA HD, but I dropped in an IDE drive from the previous machine. The IDE drive is naturally slower and smaller, but more space is always good and putting the drive into the machine was easier than trying to copy the 500GB of data it contained.   <\/p>\n<p>So, my machine has 3 drives:<\/p>\n<p>HD1: The big fast drive that came with the machine<br \/>\nHD2: A modestly-sized IDE drive<br \/>\nHD3: DVD drive<\/p>\n<p>However, BOTH hard drives are split into two different logical drives, purely for organizational purposes. When I installed Windows 7, I put it onto HD#2. It then proceeded to re-letter all the drives so that it would still appear on C:.  So my drive list was something like:<\/p>\n<p>C: First partition of HD #2. This was JUST Windows 7.<br \/>\nD: First partition of HD#1. This was where Ubuntu and the Win7 boot loader lived. This is where I kept all my projects. (Coding, comics, stuff for the website. Anything that might be called work with a straight face.)<br \/>\nE: Second partition of HD#1. My Games drive, which is basically &#8220;Steam&#8221;, plus a few other things.<br \/>\nF: Second partition of HD#2.  My archives.<br \/>\nG: The DVD drive.<\/p>\n<p>I forgot all about this, to the point where I couldn&#8217;t remember how many physical drives I had in the machine, or how they were divided up. I&#8217;d totally forgotten that Windows 7 had shuffled all the drive letters around like this.<\/p>\n<p>You might think it&#8217;s sort of daft to forget how my machine is mapped out, but keep in mind I&#8217;ve been at this for a long time. I&#8217;ve rebuilt, bought, and re-purposed so many machines over the years that after a while it all starts to blur together. <\/p>\n<p>Now that the thing has failed, I&#8217;ve gone over the symptoms in my head and this is what I&#8217;ve come up with: The drive was going to sleep, and then not waking up again. Drives spin down after some period of inactivity, and this one was spinning down and staying down. This explains the strange behavior where the problem only manifested when the machine was idle.  While I was playing (say) Borderlands 2, the game was auto-saving every couple of minutes or so. This kept the drive awake. Then I&#8217;d walk away for N minutes, and the drive would quit. If I was reading a webpage, this problem might not manifest immediately. I might come back and continue reading, and the dead drive wouldn&#8217;t become a problem until I tried to access something that had been <a href=\"http:\/\/en.wikipedia.org\/wiki\/Virtual_memory\" title=\"Virtual memory - Wikipedia\">paged out of memory<\/a>. At that point the OS itself would die, thus preventing me from seeing that a drive had vanished.<\/p>\n<p>The drive that was disappearing was the one where Windows 7 lived, so the OS itself would die without even managing a &#8220;OH MY GOODNESS THE C: DRIVE IS GONE AND THE WORLD IS ENDING HEEEEELP!&#8221; popup to let me know what went wrong.<\/p>\n<p>I didn&#8217;t suspect this was a hard drive problem because I&#8217;ve had HD problems in the past, and they never looked like this. Normally my HD problems take one of two forms:<\/p>\n<ol>\n<li>Gradually accumulating read\/write errors. Bad sectors and data corruption alert you to the problem before the drive fails.\n<\/li>\n<li>Instant and total hardware death.<\/li>\n<\/ol>\n<p>This intermittent drive availability and screwy boot-up problems (still not sure of the mechanics of how that worked) confused me and prevented me from seeing the root cause. All I could see was the triggers, and I couldn&#8217;t make sense of them.<\/p>\n<p><table   class=\"\" cellpadding='0' cellspacing='0' border='0' align='center'><tr><td><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/broken_cards.jpg' class='insetimage'   alt='broken_cards.jpg' title='broken_cards.jpg'\/><\/td><\/tr><\/table><\/p>\n<h3>The Aftermath<\/h3>\n<p>So it&#8217;s Saturday. My plan was to spend the day playing Far Cry 3. Now the machine is dead. Hm.  What did I lose? Let&#8217;s go over the important stuff:<\/p>\n<ol>\n<li>My novel should be fine. I&#8217;m pretty sure it&#8217;s saved to Google drive. Also, I sent a copy to my wife the last time I worked on it. <\/li>\n<li>I lost my Windows 7 install. Big deal. Easily replaced. Installing the OS to its own drive is an excellent policy and one I probably should have adopted ages ago.<\/li>\n<li>I lost all of my save game data that end up saved in \/Documents and Settings\/Username\/User&#8217;s Data Ghetto\/, after which the files could be in any one of a thousand places because it&#8217;s chaos down in there. Some games are stored under \/Application Data\/Gamename. Others are in \/Games\/Gamename, or \/Publisher\/Gamename, or \/Savegames\/Gamename, or \/GFWL\/Gamename, or just \/Gamename. I don&#8217;t bother backing that stuff up because it&#8217;s such an incomprehensible mess. It&#8217;s annoying to lose this stuff, but it&#8217;s not a huge deal and I&#8217;d rather lose my save games every couple of years than waste my life trying to make and restore proper backups in this sea of disorganized data. I&#8217;d rather alphabetize the Window&#8217;s registry. Some of this stuff might end up in the Steam cloud, and I&#8217;m not too worried about the rest.\n<p>Moreover, I was between games. I&#8217;d just finished Borderlands 2 and was about to begin Far Cry 3. I also lost my Minecraft worlds, but since I play on hardcore I&#8217;m used to throwing worlds away and starting new ones all the time.<\/li>\n<li>The projects drive is fine. Moreover, I do try to keep that thing backed up. In any case, anything really valuable is under source control and stored remotely.<\/li>\n<li>I lost my archives. Hm.<\/li>\n<\/ol>\n<p>That last one is&#8230; kind of a relief. See, my archives were OLD. The contents of that directory go back more than a decade. Desktop wall papers, MP3 files, old game footage, the source files for Windows Movie Maker projects, and rare game mods and patches that used to be hard to find but are now trivial. (For example, the intro movie to System Shock. Back in the day it took AGES to find that sucker and even longer to download it. Now I can find it on YouTube faster than I can find it on my own hard drive.) <\/p>\n<p>I don&#8217;t even know what else was in the archives. I know they were too big to reasonably back up to DVD&#8217;s. The thing is, I never used any of it. Ever. I saved stuff in there all the time, but I never went back for it. When I download a new desktop wallpaper, I don&#8217;t look in the archives. I searched the net and then dropped the new file into the archives. (A lot of the wallpapers were 1024&#215;768, relics from the days when I used a 4:3 monitor.) I&#8217;ve been dragging those files around for years, simply because it was too much trouble to dig through  them and see what was still relevant.<\/p>\n<p>I guess I lost some of my MP3&#8217;s. Most of them were ripped from CD&#8217;s I own, and I can just rip them again.  The rest I bought from <a href=\"http:\/\/www.emusic.com\/welcome\/join-emusic-50-songs\/\" title=\"Emuci.com\">eMusic<\/a>.  Eh. I probably should feel bad about losing music I bought, but&#8230; I haven&#8217;t listened to any of that stuff in over two years, and in fact I can&#8217;t even think of a single track that I&#8217;ll miss. I was mostly using emusic as a way to discover new music, and I have Pandora, Spottify, and Grooveshark for that now.<\/p>\n<p>So, this hard drive failure didn&#8217;t really destroy anything valuable. It only managed to delete a bunch of files I didn&#8217;t need but didn&#8217;t have the guts to erase.  The archives were actually kind of a burden. At hundreds of gigabytes, they were too big to back up in a meaningful way.  They were just this giant glob of useless crap that I had to shuffle around and worry about from time to time.<\/p>\n<h3>Recovery<\/h3>\n<p>I didn&#8217;t lose any important data. However, I did lose a drive. I don&#8217;t want to put Windows 7 on the same drive as my games, and I don&#8217;t have enough room on the projects drive. If I want to fix this I&#8217;ll need to boot into Ubuntu and spend a few hours clearing space and moving files so that the ginormous Windows 7 can fit.<\/p>\n<p>I&#8217;ve been really happy with Windows 7 so far. It really is a great OS. Aside from the way they deprecated \/ hid the quicklaunch bar, it&#8217;s basically everything I loved about XP and nothing I hated about Vista. But it is going to be a chore to get it rolling again.<\/p>\n<p>For some reason, I decide to install Linux. My wife just jumped from Ubuntu to Mint, and my 11 year old son just moved from Vista to Linux Mint, and both of them are really happy with it. I&#8217;m going to give it a try. Installing Linux only takes a couple of minutes and if it doesn&#8217;t work out I can always re-install Win 7.<\/p>\n<p>I&#8217;ll let you know how the Linux adventure is going later in the week.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It was the strangest thing. My computer would just lock up. Now, locking up isn&#8217;t an exotic problem by any stretch, but I&#8217;ve never had a machine lock up in this way. It begins with me alt-tabbing over to a window I haven&#8217;t used in a while, and the window just flat-out refuses to wake [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[273,274,275,272],"class_list":["post-18094","post","type-post","status-publish","format-standard","hentry","category-personal","tag-linux","tag-mint","tag-ubuntu","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/18094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18094"}],"version-history":[{"count":0,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/18094\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}