{"id":842,"date":"2011-09-05T00:37:59","date_gmt":"2011-09-05T05:37:59","guid":{"rendered":"http:\/\/yourLinuxGuy.com\/?p=842"},"modified":"2011-09-05T17:26:17","modified_gmt":"2011-09-05T22:26:17","slug":"power-outages-my-mother-in-law-and-fsck","status":"publish","type":"post","link":"https:\/\/yourLinuxGuy.com\/?p=842","title":{"rendered":"Power-Outages, My Mother-In-Law, and FSCK&#8230;"},"content":{"rendered":"<p>A couple weeks ago, my mother-in-law (M.I.L.) &#8212; who runs Opensuse 11.3 on her desktop &#8212; had a power outage.\u00a0 After the power came on, she called me to describe a weird error she was getting during boot-up.\u00a0 And the second NFL pre-season game for my team had just kicked off&#8230;.<\/p>\n<p>She described some stuff about it asking for the root password for maintenance, and the messages right above that about initializing the swap on \/dev\/sda2 and \/dev\/sdb2.\u00a0 Ah, it was all coming back to me;\u00a0 this box has two hard drives, and I bet one of them is damaged or dead.\u00a0 But, the worst part is that I could not remember the root password on that machine (yes, I built it).<\/p>\n<p>So, I gave her the choice of either bringing it over to my house (excuse to see the grandkids, and I could fix it at halftime), or I could talk her through the process of &#8220;cracking&#8221; into the Opensuse and attempting to repair all the partitions until we either fix them all or find them totally dead.\u00a0 She was game for the phone-based support, so we began (remember that all of this was over the phone so I was flying blind)&#8230;<\/p>\n<ol>\n<li>First, I pre-instructed her that we were going to reboot, and when she would see the list of &#8220;kernels&#8221;, to just press the down-arrow to stop the clock count-down.\u00a0 So, she did the Ctrl+Alt+Del, and upon reboot hit the up arrow then back down to the previously-selected PAE kernel.<\/li>\n<li>Next, I told her that she was to begin typing the next line I told her, and it should automatically start filling in a line\/box near the bottom.\u00a0 I had her begin, but after the first couple characters I asked if there was a space before the first character or if she needed to add one, and the space was already there so we continued:\u00a0 <code>init=\/bin\/bash<\/code>\u00a0 (this line causes the boot process to forgo the normal initialization process, and just run a shell for you to use for maintenance.)<\/li>\n<li>Once at the &#8220;pound sign&#8221; prompt, it was time to start hammering away at the repairs.\u00a0 I told her to type in <code>mount -o rw,remount \/dev\/sda3<\/code> (I always use a standard disk layout for home-based boxes, so I knew sda3 would be the \/ partition), and she got a message that it mounted with errors.\u00a0 Ah-hah!<\/li>\n<li>Next I had her un-mount the partition we just mounted with <code>umount \/dev\/sda3<\/code> and move to aggressively repairing it with <code>fsck -y \/dev\/sda3<\/code> (yes, I know, I know; you&#8217;re wanting to post a message about how I should never use the &#8220;<code>-y<\/code>&#8221; flag&#8230;\u00a0 But we were moving through the first quarter of the game&#8230;).<\/li>\n<li>Amazingly for me and M.I.L., the repair completed successfully!<\/li>\n<\/ol>\n<p>So, she did another Ctrl+Alt+Del, and she was logging in before the second offensive series was done in the game.\u00a0 So we have a happy M.I.L., and I barely missed anything in the game (well, it is pre-season, so there isn&#8217;t much to miss anyway, but there you go&#8230;)<\/p>\n<p>\ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple weeks ago, my mother-in-law (M.I.L.) &#8212; who runs Opensuse 11.3 on her desktop &#8212; had a power outage.\u00a0 After the power came on, she called me to describe a weird error she was getting during boot-up.\u00a0 And the&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/yourLinuxGuy.com\/?p=842\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[107,11,94],"tags":[],"class_list":["post-842","post","type-post","status-publish","format-standard","hentry","category-fsck","category-intermediate","category-opensuse11-3"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnjn1-dA","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=842"}],"version-history":[{"count":7,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/842\/revisions"}],"predecessor-version":[{"id":844,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=\/wp\/v2\/posts\/842\/revisions\/844"}],"wp:attachment":[{"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yourLinuxGuy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}