{"id":1165,"date":"2012-05-04T22:13:46","date_gmt":"2012-05-05T02:13:46","guid":{"rendered":"https:\/\/lowtek.ca\/roo\/?p=1165"},"modified":"2012-05-04T22:13:46","modified_gmt":"2012-05-05T02:13:46","slug":"when-ubuntu-fails","status":"publish","type":"post","link":"https:\/\/lowtek.ca\/roo\/2012\/when-ubuntu-fails\/","title":{"rendered":"When Ubuntu fails"},"content":{"rendered":"<p>I&#8217;ve been busy <a href=\"http:\/\/www.urbandictionary.com\/define.php?term=IRL\">IRL<\/a> so posting here has taken a backseat to other things, as well I haven&#8217;t had a lot of time to tinker. This is an old draft I had kicking around that I&#8217;ve cleaned up a bit.<\/p>\n<p>Yes, I&#8217;m\u00a0guilty of running for &#8216;weeks&#8217; with a pending reboot required, this is probably not helping the situation. \u00a0I&#8217;ve probably also had several power fails etc with the system in a suspended state. Still, I didn&#8217;t expect my <a href=\"http:\/\/www.ubuntu.com\/\">Ubuntu<\/a> system to get to the state it did.<\/p>\n<p>After rebooting my system, the system drive would no longer boot and I was dumped into the (initramfs) busybox<\/p>\n<p><code>mount: mounting \/dev on \/root\/dev failed: No such file or directory<br \/>\nmount: mounting \/sys on \/root\/sys failed: No such file or directory<br \/>\nmount: mounting \/proc on \/root\/proc failed: No such file or directory<br \/>\nTarget Filesystem doesn't have \/sbin\/init.<br \/>\nNo init found. Try passing init=bootarg.<\/code><\/p>\n<p><code>BusyBox v1.10.2 (Ubuntu 1:1.10.2-2ubuntu7) built-in shell (ash)<br \/>\nEnter 'help' for a list of built-in commands.<\/code><\/p>\n<p><code>(initramfs)<\/code><\/p>\n<p>Ok I think, so there is some filesystem issue with my boot drive &#8211; booting a live CD version of Ubuntu should give me the tools to fix it. It turns out the answer was no &#8211; the live CD won&#8217;t help me either. Sigh, this is the type of thing I&#8217;d expect of <a href=\"https:\/\/lowtek.ca\/roo\/2012\/windows-vista-recovery\/\">Windows Vista<\/a> but not Ubuntu.<\/p>\n<p>Off the to forums and I turn up <a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=1601810\">a post which shows others have had the same issue<\/a> and the solution. From here it was a <a href=\"https:\/\/twitter.com\/#!\/andrew_low\/status\/32622475703492609\">simple matter<\/a> of booting the <a href=\"https:\/\/help.ubuntu.com\/community\/LiveCD\">Ubuntu live CD<\/a> to download a copy of <a href=\"http:\/\/www.slax.org\/\">SLAX<\/a> to burn to CD then boot from the new SLAX CD to repair the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Ext4\">ext4<\/a> filesystem. Good thing I had a Ubuntu live CD around.<\/p>\n<p>Once your booted into SLAX, start a root shell and find the volume.<\/p>\n<p><code>root@slax:~# fdisk -l<br \/>\n<\/code><br \/>\nThis will list all of the drives (if you have more than one) and the partitions on those drives. Next is simply a matter of issuing the filesystem check and repair command on the correct partition<\/p>\n<p><code>root@slax:~# fsck \/dev\/sda2<\/code><\/p>\n<p>You&#8217;ll want to say <strong>yes<\/strong> to fixing the problems obviously. Once this completes, simply reboot back to a working system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been busy IRL so posting here has taken a backseat to other things, as well I haven&#8217;t had a lot of time to tinker. This is an old draft I had kicking around that I&#8217;ve cleaned up a bit. Yes, I&#8217;m\u00a0guilty of running for &#8216;weeks&#8217; with a pending reboot required, this is probably not &hellip; <a href=\"https:\/\/lowtek.ca\/roo\/2012\/when-ubuntu-fails\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;When Ubuntu fails&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1165","post","type-post","status-publish","format-standard","hentry","category-computing"],"_links":{"self":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/1165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/comments?post=1165"}],"version-history":[{"count":3,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/1165\/revisions"}],"predecessor-version":[{"id":1168,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/posts\/1165\/revisions\/1168"}],"wp:attachment":[{"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/media?parent=1165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/categories?post=1165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lowtek.ca\/roo\/wp-json\/wp\/v2\/tags?post=1165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}