{"id":94,"date":"2011-11-22T00:23:58","date_gmt":"2011-11-22T06:23:58","guid":{"rendered":"http:\/\/csmartonline.com\/blog\/?p=94"},"modified":"2011-11-22T13:00:40","modified_gmt":"2011-11-22T19:00:40","slug":"94","status":"publish","type":"post","link":"http:\/\/csmartonline.com\/blog\/2011\/11\/22\/94\/","title":{"rendered":"Adding Chromium OS to Grub2&#8217;s menu&#8230;"},"content":{"rendered":"<p>Once you have <a title=\"Updating Hexxeh\u2019s Chromium OS builds\u2026\" href=\"http:\/\/csmartonline.com\/blog\/?p=41\">Chromium OS installed<\/a> you may want to customize the Grub2 menu to have a more friendly name than what the default is.<\/p>\n<p>First, open a terminal and cd to the \/etc\/grub.d\/ directory. Next, remove the executable flag from &#8217;10_linux&#8217;, &#8217;20_memtest86+&#8217; and &#8217;30_os-prober&#8217;:<\/p>\n<pre class=\"snippet-code\">\r\n$ sudo chmod -x 10_linux\r\n$ sudo chmod -x 20_memtest86+\r\n$ sudo chmod -x 30_os-prober\r\n<\/pre>\n<p>Then edit the &#8217;40_custom&#8217; file:<\/p>\n<pre class=\"snippet-code\">$ sudo gedit 40_custom<\/pre>\n<p>You can copy the entries that you want to keep from &#8216;\/boot\/grub\/grub.cfg&#8217; into the &#8217;40_custom&#8217; file so that you don&#8217;t have to manually recreate them. Mine looks like this:<\/p>\n<pre class=\"snippet-code\">\r\n#!\/bin\/sh\r\nexec tail -n +3 $0\r\n# This file provides an easy way to add custom menu entries.\u00a0 Simply type the\r\n# menu entries you want to add after this comment.\u00a0 Be careful not to change\r\n# the 'exec tail' line above.\r\n\r\nmenuentry \"Chromium OS\" --class gnu-linux --class gnu --class os {\r\ninsmod part_gpt\r\ninsmod ext2\r\nset root='(hd0,gpt3)'\r\nsearch --no-floppy --fs-uuid --set=root 00000000-0000-0000-0000-000000000000\r\nlinux\u00a0\u00a0 \/boot\/vmlinuz root=\/dev\/sda3 rw noresume noswap i915.modeset=1 loglevel=1 quiet\r\n}\r\nmenuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {\r\nrecordfail\r\nset gfxpayload=$linux_gfx_mode\r\ninsmod gzio\r\ninsmod part_gpt\r\ninsmod ext2\r\nset root='(hd0,gpt14)'\r\nsearch --no-floppy --fs-uuid --set=root 2c4d68b7-726e-4358-b2d0-acd77b6e3267\r\nlinux\u00a0\u00a0 \u00a0\/boot\/vmlinuz-3.0.0-12-generic root=UUID=2c4d68b7-726e-4358-b2d0-acd77b6e3267 ro\u00a0\u00a0 quiet splash vt.handoff=7\r\ninitrd\u00a0\u00a0 \u00a0\/boot\/initrd.img-3.0.0-12-generic\r\n}\r\nmenuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {\r\nrecordfail\r\ninsmod gzio\r\ninsmod part_gpt\r\ninsmod ext2\r\nset root='(hd0,gpt14)'\r\nsearch --no-floppy --fs-uuid --set=root 2c4d68b7-726e-4358-b2d0-acd77b6e3267\r\necho\u00a0\u00a0 \u00a0'Loading Linux 3.0.0-12-generic ...'\r\nlinux\u00a0\u00a0 \u00a0\/boot\/vmlinuz-3.0.0-12-generic root=UUID=2c4d68b7-726e-4358-b2d0-acd77b6e3267 ro recovery nomodeset\r\necho\u00a0\u00a0 \u00a0'Loading initial ramdisk ...'\r\ninitrd\u00a0\u00a0 \u00a0\/boot\/initrd.img-3.0.0-12-generic\r\n}\r\nmenuentry \"Memory test (memtest86+)\" {\r\ninsmod part_gpt\r\ninsmod ext2\r\nset root='(hd0,gpt14)'\r\nsearch --no-floppy --fs-uuid --set=root 2c4d68b7-726e-4358-b2d0-acd77b6e3267\r\nlinux16\u00a0\u00a0 \u00a0\/boot\/memtest86+.bin\r\n}\r\nmenuentry \"Memory test (memtest86+, serial console 115200)\" {\r\ninsmod part_gpt\r\ninsmod ext2\r\nset root='(hd0,gpt14)'\r\nsearch --no-floppy --fs-uuid --set=root 2c4d68b7-726e-4358-b2d0-acd77b6e3267\r\nlinux16\u00a0\u00a0 \u00a0\/boot\/memtest86+.bin console=ttyS0,115200n8\r\n}\r\n<\/pre>\n<p>Now you need to update grub:<\/p>\n<pre class=\"snippet-code\">\r\n$ sudo update-grub2\r\n<\/pre>\n<p>Now cross your fingers and reboot! Congratulations! You have successfully added Chromium OS to your Grub2 menu! If you want to customize your menu even further, I recommend you read the following:<\/p>\n<p><a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=1195275\">http:\/\/ubuntuforums.org\/showthread.php?t=1195275<\/a><\/p>\n<p>You may also want to check out <a href=\"http:\/\/chromeos.hexxeh.net\/wiki\/doku.php?id=multiboot\">http:\/\/chromeos.hexxeh.net\/wiki\/doku.php?id=multiboot<\/a> for references to Chromium OS specific linux kernel commands needed on the kernel line within the Grub2 menu.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once you have Chromium OS installed you may want to customize the Grub2 menu to have a more friendly name than what the default is. First, open a terminal and cd to the \/etc\/grub.d\/ directory. Next, remove the executable flag &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/csmartonline.com\/blog\/2011\/11\/22\/94\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[25,4,3,24,26],"class_list":["post-94","post","type-post","status-publish","format-standard","hentry","category-tiptrick","tag-boot","tag-chrome-os","tag-chromium-os","tag-grub2","tag-menu"],"_links":{"self":[{"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/posts\/94","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/comments?post=94"}],"version-history":[{"count":13,"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/posts\/94\/revisions"}],"predecessor-version":[{"id":107,"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/posts\/94\/revisions\/107"}],"wp:attachment":[{"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/media?parent=94"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/categories?post=94"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/tags?post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}