{"id":193,"date":"2010-01-26T07:08:57","date_gmt":"2010-01-26T07:08:57","guid":{"rendered":"http:\/\/www.mrericsir.com\/blog\/?p=193"},"modified":"2023-07-14T18:44:03","modified_gmt":"2023-07-14T18:44:03","slug":"fixing-linux-when-it-gave-up-waiting-for-a-root-device","status":"publish","type":"post","link":"https:\/\/www.mrericsir.com\/blog\/technology\/fixing-linux-when-it-gave-up-waiting-for-a-root-device\/","title":{"rendered":"Fixing Linux when it &#8220;gave up waiting for a root device&#8221;"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Recently I was installing Kubuntu 9.10 (also known as Karmic Koala) when my system refused to boot. I was informed that my system had &#8220;given up waiting for a root device.&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But there&#8217;s a simple solution!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I suspect many of you may be in a similar situation and that&#8217;s why you&#8217;re here. Let&#8217;s first consider the &#8220;gave up waiting for root device&#8221; error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What does it all mean? Well, your boot loader was trying to see if your main hard drive (i.e. &#8220;root device&#8221;) was starting up. But guess what? It didn&#8217;t start &#8212; probably because it wasn&#8217;t there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;But I didn&#8217;t take it out!&#8221; you exclaim, because you&#8217;re not stupid enough to take your hard drive out of your computer and then be surprised when it doesn&#8217;t work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">No, the problem is because your computer couldn&#8217;t <em>find<\/em> your drive.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;ve got to fix the boot loader, and you have two options. If you&#8217;re lucky like me, your computer drops to a &#8220;Busy box&#8221; shell on this type of error. This is a sort of bare minimum shell that does just enough to get your computer running. If this happens, you&#8217;ll see some instructions on the screen regarding Busy box.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><b>Use Busy box to access your drive<\/b><br>Here&#8217;s what to do if you&#8217;re using the Busy box command line:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a new folder to mount your hard drive.<\/li>\n<\/ol>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">mkdir \/drive<\/p>\n<\/blockquote>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Mount your hard drive to the folder you just made.<\/li>\n<\/ol>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">mount \/dev\/sda1 \/drive<\/p>\n<\/blockquote>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In my example, my hard drive was located at \/dev\/sda1 and I suspect this is pretty normal. Your drive may be sda2, sdb1, sdd0&#8230; who knows! It may take a few tries. If you guessed the number incorrectly, you can always try again by unmounting and then going back to step 2. Here&#8217;s how you unmount your drive:<br>\n<blockquote><p>umount \/drive<\/p><\/blockquote>\n<\/li>\n\n\n\n<li>Make your hard drive the root so we can fix it.<\/li>\n<\/ol>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">chroot \/drive<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">From here you can use nano, emacs, or vi to fix your problem. Skip below for more info.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><b>Without Busy box<\/b><br>If you&#8217;re not lucky enough to get Busy box prompt, you can always boot off of a Linux Live boot CD. The regular Ubuntu install CD can be used in live boot mode, as can Knoppix. When you boot off of that CD you&#8217;ll be taken to a full-fledged Linux environment where you can fix your problem in the same way. Your hard drive should be easily accessible, probably with a nice GUI and everything. Just open the drive and you&#8217;re ready to go.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><b>What to do next<\/b><br>If you have a similar problem as me, the official <a href=\"https:\/\/help.ubuntu.com\/community\/KarmicUpgrades#Unable%20to%20Load%20Linux%20Drive\">Ubuntu 9.10 KarmicUpgrades doc has a resolution<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Otherwise, try Googling around some more. It&#8217;s probably a very similar boot loader issue that can be fixed easily once you&#8217;ve completed the above steps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I was installing Kubuntu 9.10 (also known as Karmic Koala) when my system refused to boot. I was informed that my system had &#8220;given [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","slim_seo":{"title":"Fixing Linux when it \"gave up waiting for a root device\" - MrEricSir.com","description":"Recently I was installing Kubuntu 9.10 (also known as Karmic Koala) when my system refused to boot. I was informed that my system had \"given up waiting for a ro"},"autoblue_enabled":true,"autoblue_custom_message":"","autoblue_shares":[],"autoblue_post_url":"","autoblue_publish_document":false,"footnotes":""},"categories":[3],"tags":[102,99,101,100],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-technology","tag-busybox","tag-linux","tag-rootdevice","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.mrericsir.com\/blog\/wp-json\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrericsir.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mrericsir.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrericsir.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrericsir.com\/blog\/wp-json\/wp\/v2\/comments?post=193"}],"version-history":[{"count":11,"href":"https:\/\/www.mrericsir.com\/blog\/wp-json\/wp\/v2\/posts\/193\/revisions"}],"predecessor-version":[{"id":10517,"href":"https:\/\/www.mrericsir.com\/blog\/wp-json\/wp\/v2\/posts\/193\/revisions\/10517"}],"wp:attachment":[{"href":"https:\/\/www.mrericsir.com\/blog\/wp-json\/wp\/v2\/media?parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mrericsir.com\/blog\/wp-json\/wp\/v2\/categories?post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mrericsir.com\/blog\/wp-json\/wp\/v2\/tags?post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}