{"id":283,"date":"2009-01-13T20:32:44","date_gmt":"2009-01-14T01:32:44","guid":{"rendered":"http:\/\/www.familytidings.com\/blog\/?p=283"},"modified":"2009-01-13T20:32:44","modified_gmt":"2009-01-14T01:32:44","slug":"adding-grub-after-ubuntu-installation","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=283","title":{"rendered":"Adding Grub After Ubuntu Installation"},"content":{"rendered":"<p>The Ubuntu installation isn&#8217;t updating the grub configuration file.  I updated <code>\/boot\/grub\/menu.lst<\/code> by hand to use the new kernel.  I also installed &#8220;Choose next default for grub&#8221; and &#8220;StartUp-Manager&#8221; (System\/Administration\/StartUp-Manager on the menu).<br \/>\nThe StartUp_manager returns the error &#8220;Grub configuration file lacks ### END DEBIAN AUTOMAGIC KERNELS LIST&#8221;.  I exited and backed up <code>\/boot\/grub\/menu.lst<\/code>, restarted StartUp-Manager, left options alone, and exited.  menu.lst was unchanged.  Next, I restarted, checked &#8220;show text at startup&#8221; (you have to change something to get it to rewrite the configuration file) and exited.  Still no change.<br \/>\nI&#8217;m thinking Ubuntu won&#8217;t update Grub&#8217;s configuration because I told it not to install a boot loader.  <a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=609548\">These instructions<\/a> tell how to add Grub after the fact.  This is what I did:<br \/>\n<code>$ sudo grub<br \/>\ngrub> find \/boot\/grub\/stage1<br \/>\n (hd0,2)<br \/>\ngrub setup (hd0,2)<br \/>\nError 12: Invalid device request<br \/>\n<\/code><br \/>\n<a href=\"https:\/\/help.ubuntu.com\/community\/GrubHowto\">The Grub How-To<\/a> didn&#8217;t provide much help for error 12, other than indicating that you can run <code>update-grub<\/code> manually:<br \/>\n<code>sudo update-grub<br \/>\n\/var\/cache\/debconf\/config.dat is locked by another process<br \/>\n<\/code><br \/>\nRebooting solved that problem, but then Grub still refused to install.<br \/>\nAs a test, I backed up \/boot and installed Ubuntu in another partition and told it to install the boot loader on the \/boot partition (as openSUSE was set up).  The installation gave me the same error.  What&#8217;s suddenly wrong with that partition?<br \/>\nRunning short on time, I reinstalled and told Ubuntu to format \/boot.  This worked.  I mounted the first Ubuntu partition and updated \/boot with the old files to restore the original Ubuntu and the old openSUSE.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Ubuntu installation isn&#8217;t updating the grub configuration file. I updated \/boot\/grub\/menu.lst by hand to use the new kernel. I also installed &#8220;Choose next default for grub&#8221; and &#8220;StartUp-Manager&#8221; (System\/Administration\/StartUp-Manager on the menu). The StartUp_manager returns the error &#8220;Grub configuration file lacks ### END DEBIAN AUTOMAGIC KERNELS LIST&#8221;. I exited and backed up \/boot\/grub\/menu.lst, restarted [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-283","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=283"}],"version-history":[{"count":4,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/283\/revisions"}],"predecessor-version":[{"id":287,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/283\/revisions\/287"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}