{"id":3176,"date":"2019-06-09T22:08:10","date_gmt":"2019-06-09T22:08:10","guid":{"rendered":"https:\/\/blog.paranoidprofessor.com\/?p=3176"},"modified":"2019-06-09T22:08:10","modified_gmt":"2019-06-09T22:08:10","slug":"cmos-scheemos-clean-up-after-yourself","status":"publish","type":"post","link":"https:\/\/blog.paranoidprofessor.com\/index.php\/2019\/06\/09\/cmos-scheemos-clean-up-after-yourself\/","title":{"rendered":"CMOS scheeMOS, clean up after yourself"},"content":{"rendered":"<p>I have had a problem with my home computer for some time.\u00a0 It doesn&#8217;t quite boot right.\u00a0 That is to say, when you turn it on, it actually doesn&#8217;t start windows or anything.\u00a0 I have done some investigations and found out that when the computer is booting up it encounters a POST request of 36 and then it stops.\u00a0 The workaround for this problem was to turn it off, and then after about 10-15 seconds turn it back on.<\/p>\n<blockquote><p>presto<\/p><\/blockquote>\n<p>Yet, as this has bothered me for some time and eventually I did do a bit of research.\u00a0 The answer that most people seemed to agree on was that the CMOS needed to be reset. I guess must have been living under a lucky star as with all of my computers I have never actually had this problem.\u00a0 I have seen the battery go bad, problems with hard disks, windows patches mess things up, but never had this exact problem.<\/p>\n<p>Perhaps I should set the stage.\u00a0\u00a0My personal computer is fairly old as I have had it for six or seven years.\u00a0 It was assembled with some assistance from my friend out of the following main parts.<\/p>\n<div style=\"margin-left: 1cm;\">Gigabyte FX v4.0 eXtreme<br \/>\nAMD 8350<br \/>\nblue ray dvd<br \/>\n8 GB<\/div>\n<p>The machine had Windows 7 installed but it also had a dual boot for Linux Mint.\u00a0 I didn&#8217;t want a hodgepodge of boot screens so I installed <a href=\"http:\/\/www.rodsbooks.com\/refind\/\" target=\"_blank\" rel=\"noopener\">rEFInd<\/a> as a unifying boot manager.\u00a0 One boot manager to allow me to easily and graphically decide which operating system.<\/p>\n<p>Resetting the CMOS won&#8217;t really be removing any of the files or changing the flle system but I keep putting this off this &#8220;small fix&#8221;.\u00a0 That nagging little part of my brain that probably knows better but just last weekend I decided to cross that item off my list.\u00a0 The process took about 15 minutes if you include moving the computer, cleaning out the dust bunnies, and replacing one of my fans.<\/p>\n<p>The computer booted into windows on the very first try &#8211; one problem down.\u00a0 This would have been good news except the boot manager should be the one getting booted.\u00a0 It only took me a minute to discover that my boot manager was now gone.\u00a0 That is to say, it was no longer considered to be a boot device by the motherboard.\u00a0 Just the drives and the windows boot manager were the only possibilities.\u00a0 It must have taken me 10 minutes to remember that last time I was fooling around with a linux tool to install rEFInd as an option to the listed among the boot devices.<\/p>\n<div style=\"margin-left: 1cm;\">$ sudo efibootmgr<br \/>\nBootCurrent: 0000<br \/>\nTimeout: 4 seconds<br \/>\nBootOrder: 0001,0000,0006,0005,0004,0003<br \/>\nBoot0000* rEFInd<br \/>\nBoot0001* Windows Boot Manager<br \/>\nBoot0003* Hard Drive<br \/>\nBoot0004* CD\/DVD Drive<br \/>\nBoot0005* USB<br \/>\nBoot0006* UEFI: Built-in EFI Shell<\/div>\n<p>Google did help me to find that this tool was probably efibootmgr but what was the exact syntax.\u00a0 I booted up with a boot DVD and mounted the UEFI boot partition but I must have had a typo as it was showing me the old 8.3 files with two versions of rEFInd.<\/p>\n<div style=\"margin-left: 1cm;\">refind~.1<br \/>\nrefind~.2<\/div>\n<p>That didn&#8217;t seem right. I suspected that at that time I was fooling with a new version and simply failed to delete the old files.\u00a0 Reboot, mount the boot partition correctly and then take a closer look.<\/p>\n<p>The file system is correctly mounted but I am not sure why I have both the 32 and 64 bit versions in my refind directory.\u00a0 Type first, think later. I take a look some other examples of how to add back my boot manager but now I have quite a few different combinations ahead of me.<\/p>\n<div style=\"margin-left: 1cm;\">efibootmgr -c -d \/dev\/sda -L refind -l fs0:\\EFI\\refind\\refind_x64.efi<br \/>\nefibootmgr -c -d \/dev\/sda -L refind -l fs0:\\EFI\\refind\\refind_ia32.efi<br \/>\nefibootmgr -c -d \/dev\/sda -L refind -l \\EFI\\refind\\refind_x64.efi<br \/>\nefibootmgr -c -d \/dev\/sda -L refind -l \\EFI\\refind\\refind_ia32.efi<\/div>\n<p>Each time I try one of these options I have to reboot everything.\u00a0 If this doesn&#8217;t work then I need to delete that boot manager entry.<\/p>\n<div style=\"margin-left: 1cm;\">efibootmgr -Bb 0000<\/div>\n<p>The only problem is that my entry is not 0000 but 0001.\u00a0 Copy, fix, run, reboot, copy, fix, run, reboot, &#8230;.<\/p>\n<p>I imagine it was fate that had me delete entry 0000 not 0001.\u00a0 I am not happy that Linux wasn&#8217;t working but now I am less happy that the windows boot process has been deleted.<\/p>\n<p>Can I possibly stay cool long enough to fix this?\u00a0 Maybe.\u00a0 I have gone through all the possibilities in my list but I have had no success.<\/p>\n<p>I could have tried to install a newer version of Linux but that both feels like cheating but also may be delaying the problem another 30 minutes. I decided to go back to the source and take a look at the <a href=\"http:\/\/www.rodsbooks.com\/efi-bootloaders\/installation.html\" target=\"_blank\" rel=\"noopener\">excellent page by Rod Smith<\/a>. .\u00a0 I was actually a victim of Microsoft and their backslashes, well that and my apparent inability to delete the old unused configurations and files.<\/p>\n<p>After using a few more slashes everything comes up roses.<\/p>\n<div style=\"margin-left: 1cm;\">efibootmgr -c -l \\\\EFI\\\\refind\\\\refind_x64.efi -L rEFInd<\/div>\n<p>This time I need to not only make some notes, but I also need to save them someplace really safe for next time.\u00a0 Who knows next time it might be an upgrade or replacing a disk after a crash.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have had a problem with my home computer for some time.\u00a0 It doesn&#8217;t quite boot right.\u00a0 That is to say, when you turn it on, it actually doesn&#8217;t start windows or anything.\u00a0 I have done some investigations and found &hellip; <a href=\"https:\/\/blog.paranoidprofessor.com\/index.php\/2019\/06\/09\/cmos-scheemos-clean-up-after-yourself\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/3176"}],"collection":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/comments?post=3176"}],"version-history":[{"count":6,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/3176\/revisions"}],"predecessor-version":[{"id":3186,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/3176\/revisions\/3186"}],"wp:attachment":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/media?parent=3176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/categories?post=3176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/tags?post=3176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}