{"id":527,"date":"2009-09-04T22:18:52","date_gmt":"2009-09-04T10:18:52","guid":{"rendered":"http:\/\/p-s.co.nz\/wordpress\/?p=527"},"modified":"2009-10-04T20:47:04","modified_gmt":"2009-10-04T08:47:04","slug":"ubuntu-karmic-alpha-5-editing-grub2","status":"publish","type":"post","link":"http:\/\/p-s.co.nz\/wordpress\/ubuntu-karmic-alpha-5-editing-grub2\/","title":{"rendered":"Ubuntu Karmic Alpha 5 Editing GRUB2"},"content":{"rendered":"<p>I used to know how to edit \/boot\/grub\/menu.lst to change the order of Operating Systems (e.g. Windows XP, Ubuntu Jaunty, Ubuntu Karmic, and Kubuntu Jaunty), set the default, and set the delay.  But with alpha 5 of Ubuntu Karmic that has all changed with the introduction of GRUB2.  Here&#8217;s what I did instead.<\/p>\n<p>Your goal is to change \/boot\/grub\/grub.cfg but you shouldn&#8217;t do that directly.  You should change some config files and then run a special grub update command.<\/p>\n<p>Open one of the config files for other OSs (as root):<br \/>\n<code>sudo gedit \/etc\/grub.d\/30_otheros<\/code><br \/>\n[update]<br \/>\n<code>sudo gedit \/etc\/grub.d\/30_os-prober<\/code><\/p>\n<p>I commented out redundant entries e.g. different kernel versions, and then saved it.<\/p>\n<p>Then edit the main grub config file:<br \/>\n<code>sudo gedit \/etc\/default\/grub<\/code><\/p>\n<p>I changed the relevant line to:<br \/>\n<code>GRUB_DEFAULT = 4<\/code><br \/>\nso that the 5th item (0,1,2 &#8230;) would boot by default.<\/p>\n<p>Finally, run the grub update command to regenerate \/boot\/grub\/grub.cfg:<br \/>\n<code>sudo update-grub<\/code><\/p>\n<p>You can check the result in \/boot\/grub\/grub.cfg to see everything went well.<\/p>\n<p>Not a lot trickier than under plain GRUB and apparently GRUB2 has a lot of possible benefits depending on your circumstances (<a href=\"http:\/\/www.gnu.org\/software\/grub\/grub-2.en.html\">http:\/\/www.gnu.org\/software\/grub\/grub-2.en.html<\/a>).<\/p>\n<p>BTW GRUB2 has attracted some controversy and there are some interesting points in the following article and its comments (<a href=\"http:\/\/aronzak.wordpress.com\/2008\/09\/30\/stay-away-from-grub2\/\">http:\/\/aronzak.wordpress.com\/2008\/09\/30\/stay-away-from-grub2\/<\/a>).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used to know how to edit \/boot\/grub\/menu.lst to change the order of Operating Systems (e.g. Windows XP, Ubuntu Jaunty, Ubuntu Karmic, and Kubuntu Jaunty), set the default, and set the delay. But with alpha 5 of Ubuntu Karmic that &hellip; <a href=\"http:\/\/p-s.co.nz\/wordpress\/ubuntu-karmic-alpha-5-editing-grub2\/\">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":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-527","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/527"}],"collection":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/comments?post=527"}],"version-history":[{"count":5,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/527\/revisions"}],"predecessor-version":[{"id":543,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/527\/revisions\/543"}],"wp:attachment":[{"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/media?parent=527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/categories?post=527"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/tags?post=527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}