{"id":92,"date":"2005-07-09T13:10:31","date_gmt":"2005-07-09T13:10:31","guid":{"rendered":"http:\/\/blog.drinky.org.uk\/?p=92"},"modified":"2015-07-21T11:17:27","modified_gmt":"2015-07-21T10:17:27","slug":"fixing-my-pc-with-initrd","status":"publish","type":"post","link":"https:\/\/blog.adamsweet.org\/?p=92","title":{"rendered":"Fixing my PC with initrd"},"content":{"rendered":"<p>Fucking hell.<\/p>\n<p>So as people might know (hell, I&#8217;ve complained about it enough), my main workstation broke down. Removed all of the components from the board and no difference. So it was either the CPU or the motherboard itself. I put all of the parts into another machine and it ran fine.<\/p>\n<p>Well I have work to do and I need Windows for some of it and I don&#8217;t have a spare machine good enough to play some of my games, which meant I needed a new motherboard and\/or CPU. After some faffing I spotted a tiny burnt out component on the board so I took pot luck and bought a new Socket A motherboard that fitted the bill as closely as I could find at short notice. Seems most people aren&#8217;t stocking many Socket A boards these days as everyone is moving on to bigger and better things, but being skint as usual I decided it was better to just buy a replacement board than a replacement machine while I wait for 64 bit support, PCIE and ATI graphics etc to be known to work well together. Not much point in buying a 32 bit machine now when I would have upgraded to 64 bit next year anyway.<\/p>\n<p>So I bought a board with SATA as I need the extra disk channels. I have 3 PATA disks, one for Windows which needs to go on hda, my Linux system disk which needs to go on the SATA controller as my other disk, my enormous Linux \/home doesn&#8217;t work with the SATA converter I have and so needs to go on hdb. I also have 2 optical drives which of course need to go on the other PATA channel.<\/p>\n<p>So, I install Windows and I boot from a live CD to alter the grub and \/etc\/fstab settings accordingly. All works fine. Nice boot menu, Windows boots fine. Try to boot Linux. Umm. No. pivot_root error and can&#8217;t find initrd. Shit. But it works fine on hda. Try all possible permutations of disks and controllers, but one always fails.<\/p>\n<p>So I post to Wolves LUG mailing list about whether I will be attending the meeting and say I won&#8217;t as I&#8217;ve been fixing my PC and I need to get it up and running but the SATA controller is being an arse and Linux can&#8217;t boot from it. Dave Goodwin pops up and offers some advice. I follow through and explain what I have done so far and he says do this:<\/p>\n<blockquote><p>You should just need to do the following to &#8220;fix&#8221; your problem :<\/p>\n<p>Edit \/etc\/mkinitrd\/modules and add in the sata modules necessary for your card, as well as probably scsi_mod and sd_mod. (Just list the modules, one per line).<\/p>\n<p>Then, try running :<\/p>\n<p><em>mkinitrd -o \/boot\/mkinitrd.img.custom `uname -r`<\/em><\/p>\n<p>(Where the output of `uname -r` looks pretty like 2.6.10-5-K7.<\/p>\n<p>Edit \/boot\/grub\/menu.lst (or edit it at bootup) and get it to use your new custom image, and cross your fingers \ud83d\ude42<\/p><\/blockquote>\n<p>And it worked. Gawd bless him. I&#8217;m so grateful to him for picking this up. I was expecting to spend the rest of my days swapping disks over to do any work. It took me a week of testing and diagnosing to get this far and probably 3 weeks before that of working out where the problem lay and getting a spare machine to work on.<\/p>\n<p>Life can now continue, but what a ball ache.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fucking hell. So as people might know (hell, I&#8217;ve complained about it enough), my main workstation broke down. Removed all of the components from the board and no difference. So it was either the CPU or the motherboard itself. I &hellip; <a href=\"https:\/\/blog.adamsweet.org\/?p=92\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,2],"tags":[],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-linux","category-rants"],"_links":{"self":[{"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92"}],"version-history":[{"count":1,"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":661,"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=\/wp\/v2\/posts\/92\/revisions\/661"}],"wp:attachment":[{"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.adamsweet.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}