<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ubuntu Sharing &#187; grub 2</title>
	<atom:link href="http://ubuntuguide.net/tag/grub-2/feed" rel="self" type="application/rss+xml" />
	<link>http://ubuntuguide.net</link>
	<description>Ubuntu Tips &#124; Ubuntu Howtos &#124; Ubuntu Tutorials</description>
	<lastBuildDate>Tue, 22 May 2012 07:49:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Add OS logos into Grub2 boot menu using BURG</title>
		<link>http://ubuntuguide.net/add-os-logos-into-grub2-boot-menu-using-burg</link>
		<comments>http://ubuntuguide.net/add-os-logos-into-grub2-boot-menu-using-burg#comments</comments>
		<pubDate>Thu, 03 Dec 2009 12:57:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[grub 2]]></category>

		<guid isPermaLink="false">http://ubuntuguide.net/?p=2193</guid>
		<description><![CDATA[There&#8217;s a great theme that add OS logos into grub2 boot menu list.Follow is how to install this. Step1:Install and configure burg project. See the step1 and step2 in this post:http://ubuntuguide.net/decorate-grub-2-boot-loader-using-burg Step2: Download the theme (sora-v0_3.tar.gz) from http://groups.google.com/group/burg-devel Then,extract it into /boot/grub/themes cd /boot/grub/themes/ sudo tar xzf ~/Downloads/sora-v0_3.tar.gz change &#8220;~/Downloads&#8221; to the path you downloaded [...]
Related posts:<ol>
<li><a href='http://ubuntuguide.net/decorate-grub-2-boot-loader-using-burg' rel='bookmark' title='Decorate Grub 2 boot loader using BURG'>Decorate Grub 2 boot loader using BURG</a></li>
<li><a href='http://ubuntuguide.net/decorate-grub-2-boot-loader-with-burg-manager-gui-for-burg' rel='bookmark' title='Decorate Grub 2 boot loader with Burg-Manager (GUI for Burg)'>Decorate Grub 2 boot loader with Burg-Manager (GUI for Burg)</a></li>
<li><a href='http://ubuntuguide.net/how-to-restore-grub2-boot-loader-onto-portable-hard-drive' rel='bookmark' title='How to Restore Grub2 boot loader onto portable hard drive'>How to Restore Grub2 boot loader onto portable hard drive</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a great theme that add OS logos into grub2 boot menu list.Follow is how to install this.</p>
<p><strong>Step1:</strong>Install and configure burg project.<br />
See the <em>step1</em> and <em>step2</em> in this post:<a href="http://ubuntuguide.net/decorate-grub-2-boot-loader-using-burg" target="_blank">http://ubuntuguide.net/decorate-grub-2-boot-loader-using-burg</a></p>
<p><strong>Step2:</strong><br />
Download the theme (sora-v0_3.tar.gz) from <a href="http://groups.google.com/group/burg-devel" target="_blank">http://groups.google.com/group/burg-devel</a><br />
Then,extract it into <em> /boot/grub/themes</em></p>
<pre lang="bash">cd /boot/grub/themes/
sudo tar xzf ~/Downloads/sora-v0_3.tar.gz</pre>
<p>change &#8220;~/Downloads&#8221; to the path you downloaded this package.<br />
<strong>Step3:</strong><br />
Edit /etc/grub.d/40_custom:</p>
<pre lang="bash">sudo gedit /etc/grub.d/40_custom</pre>
<p>choose one code and add into this file:<br />
<em>code:</em></p>
<blockquote><p>. /boot/grub/themes/sora/theme.cfg</p></blockquote>
<p><a href="http://ubuntuguide.net/wp-content/uploads/2009/12/os_logo.png"><img class="alignnone size-medium wp-image-2194" title="os_logo" src="http://ubuntuguide.net/wp-content/uploads/2009/12/os_logo-500x314.png" alt="os_logo" width="500" height="314" /></a></p>
<blockquote><p>. /boot/grub/themes/sora/clean/theme.cfg</p></blockquote>
<p><a href="http://ubuntuguide.net/wp-content/uploads/2009/12/os_logo1.png"><img class="alignnone size-medium wp-image-2195" title="os_logo1" src="http://ubuntuguide.net/wp-content/uploads/2009/12/os_logo1-500x313.png" alt="os_logo1" width="500" height="313" /></a></p>
<blockquote><p>. /boot/grub/themes/sora/extended/theme.cfg</p></blockquote>
<p><a href="http://ubuntuguide.net/wp-content/uploads/2009/12/os_logo2.png"><img class="alignnone size-medium wp-image-2196" title="os_logo2" src="http://ubuntuguide.net/wp-content/uploads/2009/12/os_logo2-500x312.png" alt="os_logo2" width="500" height="312" /></a></p>
<p><strong>Step4:</strong><br />
Run this command to create <em>grub.cfg</em>:</p>
<pre lang="bash">sudo update-grub</pre>
<p><strong>Note:</strong>Edit <strong>/boot/grub/themes/sora/theme.cfg</strong> and change screen resolution in this line:</p>
<blockquote><p>set gfxmode=&#8221;1920&#215;1200&#8243;</p></blockquote>
<p>Related posts:<ol>
<li><a href='http://ubuntuguide.net/decorate-grub-2-boot-loader-using-burg' rel='bookmark' title='Decorate Grub 2 boot loader using BURG'>Decorate Grub 2 boot loader using BURG</a></li>
<li><a href='http://ubuntuguide.net/decorate-grub-2-boot-loader-with-burg-manager-gui-for-burg' rel='bookmark' title='Decorate Grub 2 boot loader with Burg-Manager (GUI for Burg)'>Decorate Grub 2 boot loader with Burg-Manager (GUI for Burg)</a></li>
<li><a href='http://ubuntuguide.net/how-to-restore-grub2-boot-loader-onto-portable-hard-drive' rel='bookmark' title='How to Restore Grub2 boot loader onto portable hard drive'>How to Restore Grub2 boot loader onto portable hard drive</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ubuntuguide.net/add-os-logos-into-grub2-boot-menu-using-burg/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>3 Ways Setting XP/Vista/Windows 7 as default bootup OS In Grub 2</title>
		<link>http://ubuntuguide.net/3-ways-setting-xpvistawindows-7-as-default-bootup-os-in-grub-2</link>
		<comments>http://ubuntuguide.net/3-ways-setting-xpvistawindows-7-as-default-bootup-os-in-grub-2#comments</comments>
		<pubDate>Fri, 20 Nov 2009 02:14:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[grub 2]]></category>

		<guid isPermaLink="false">http://ubuntuguide.net/?p=2056</guid>
		<description><![CDATA[This tutorial shows how to set default boot up OS in Grub 2 in 3 ways.And in my opinion the third one should be the best one,also the easiest one. Following use XP as example. Method 1: Edit /boot/grub/grub.cfg and change XP to the first entry in grub 2. By default this is read-only file,so [...]
Related posts:<ol>
<li><a href='http://ubuntuguide.net/how-to-restore-grub-2-after-reinstalling-windows-xpvistawin7' rel='bookmark' title='How to restore Grub 2 after reinstalling Windows XP/Vista/Win7'>How to restore Grub 2 after reinstalling Windows XP/Vista/Win7</a></li>
<li><a href='http://ubuntuguide.net/set-windows-as-default-os-in-grub' rel='bookmark' title='Set Windows as Default OS in Grub'>Set Windows as Default OS in Grub</a></li>
<li><a href='http://ubuntuguide.net/grub-missedor-grub-error' rel='bookmark' title='Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition'>Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This tutorial shows how to set default boot up OS in Grub 2 in 3 ways.And in my opinion the third one should be the best one,also the easiest one.<br />
Following use XP as example.<br />
<strong>Method 1:</strong><br />
Edit <em>/boot/grub/grub.cfg</em> and change XP to the first entry in grub 2.<br />
By default this is read-only file,so change its permission in terminal(Applications/Accessories/Terminal):</p>
<pre lang="bash">sudo chmod 755 /boot/grub/grub.cfg</pre>
<p>Then open this file:</p>
<pre lang="bash">sudo gedit /boot/grub/grub.cfg</pre>
<p>Cut this section:</p>
<pre>### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
	insmod ntfs
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 48142b45142b34fa
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###</pre>
<p>Paste it between following two sections:</p>
<blockquote><p>### BEGIN /etc/grub.d/05_debian_theme ###<br />
set menu_color_normal=cyan/blue<br />
set menu_color_highlight=white/blue<br />
### END /etc/grub.d/05_debian_theme ###</p></blockquote>
<blockquote><p>
### BEGIN /etc/grub.d/10_linux ###<br />
menuentry &#8220;Ubuntu GNU/Linux, with Linux 2.6.31-14-generic&#8221; {<br />
	insmod ext2<br />
	set root=(hd0,6)<br />
	search &#8211;no-floppy &#8211;fs-uuid &#8211;set ff848303-508a-46d6-b275-0c263f7b8938</p></blockquote>
<p>Close and save this file.<br />
<strong>Note:</strong>If you run <code>update-grub</code> for some reasons,all things you do will back.You need to do again to set this default OS.<br />
<strong>Mathod 2:</strong><br />
Count in <em>/boot/grub/grub.cfg</em>(start number 0),and in my case XP is 4.<br />
<a href="http://ubuntuguide.net/wp-content/uploads/2009/11/grub2_default.png"><img class="alignnone size-medium wp-image-2057" title="grub2_default" src="http://ubuntuguide.net/wp-content/uploads/2009/11/grub2_default-350x360.png" alt="grub2_default" width="350" height="360" /></a><br />
So edit <em>/etc/default/grub</em></p>
<pre lang="bash">sudo gedit /etc/default/grub</pre>
<blockquote><p>change <strong>Grub_default=0</strong> into <strong>Grub_default=4</strong></p></blockquote>
<p><strong>Note:</strong>This method won&#8217;t change grub menu order.However,when you upgrade kernel,the previous number will change and you need to set this again.<br />
<strong>Method 3:edit /etc/grub.d/30_os-prober</strong><br />
<em>/etc/grub.d/30_os-prober</em> could be found in following section in <em>/boot/grub/grub.cfg</em></p>
<pre>### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
	insmod ntfs
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 48142b45142b34fa
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###</pre>
<p>First,make a backup:</p>
<pre lang="bash">cd /etc/grub.d
sudo cp 30_os-prober 30_os-prober_backup</pre>
<p>Then,change &#8220;30&#8243; in filename to the number bewteen &#8220;5&#8243; and &#8220;10&#8243; (without 5 and 10).For instance:</p>
<pre lang="bash">sudo mv 30_os-prober 08_os-prober
sudo update-grub</pre>
<p>Related posts:<ol>
<li><a href='http://ubuntuguide.net/how-to-restore-grub-2-after-reinstalling-windows-xpvistawin7' rel='bookmark' title='How to restore Grub 2 after reinstalling Windows XP/Vista/Win7'>How to restore Grub 2 after reinstalling Windows XP/Vista/Win7</a></li>
<li><a href='http://ubuntuguide.net/set-windows-as-default-os-in-grub' rel='bookmark' title='Set Windows as Default OS in Grub'>Set Windows as Default OS in Grub</a></li>
<li><a href='http://ubuntuguide.net/grub-missedor-grub-error' rel='bookmark' title='Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition'>Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ubuntuguide.net/3-ways-setting-xpvistawindows-7-as-default-bootup-os-in-grub-2/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Decorate Grub 2 boot loader using BURG</title>
		<link>http://ubuntuguide.net/decorate-grub-2-boot-loader-using-burg</link>
		<comments>http://ubuntuguide.net/decorate-grub-2-boot-loader-using-burg#comments</comments>
		<pubDate>Thu, 19 Nov 2009 05:16:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[grub 2]]></category>

		<guid isPermaLink="false">http://ubuntuguide.net/?p=2044</guid>
		<description><![CDATA[BURG is a program based-on Grub 2,BURG uses new menu list,screen layout and shortcut keys that all easily customized.Following is tested in Ubuntu Karmic. Update: Burg has released a first version front-end GUI called Burg-Manager. Read more 1.Install BURG Edit source.list file(Open terminal from Applications/Accessories/Terminal): sudo gedit /etc/apt/sources.list add following into the file and save [...]
Related posts:<ol>
<li><a href='http://ubuntuguide.net/decorate-grub-2-boot-loader-with-burg-manager-gui-for-burg' rel='bookmark' title='Decorate Grub 2 boot loader with Burg-Manager (GUI for Burg)'>Decorate Grub 2 boot loader with Burg-Manager (GUI for Burg)</a></li>
<li><a href='http://ubuntuguide.net/add-os-logos-into-grub2-boot-menu-using-burg' rel='bookmark' title='Add OS logos into Grub2 boot menu using BURG'>Add OS logos into Grub2 boot menu using BURG</a></li>
<li><a href='http://ubuntuguide.net/manager-grub2-boot-loader-using-grub-customizergui' rel='bookmark' title='Manager Grub2 boot loader using Grub Customizer(GUI)'>Manager Grub2 boot loader using Grub Customizer(GUI)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>BURG is a program based-on Grub 2,BURG uses new menu list,screen layout and shortcut keys that all easily customized.Following is tested in Ubuntu Karmic.</p>
<p>Update: Burg has released a first version front-end GUI called Burg-Manager. Read <a href="http://ubuntuguide.net/decorate-grub-2-boot-loader-with-burg-manager-gui-for-burg">more</a></p>
<p><strong>1.Install BURG</strong><br />
Edit source.list file(Open terminal from Applications/Accessories/Terminal):</p>
<pre lang="bash">sudo gedit /etc/apt/sources.list</pre>
<p>add following into the file and save it.</p>
<pre>deb http://ppa.launchpad.net/bean123ch/burg/ubuntu karmic main
deb-src http://ppa.launchpad.net/bean123ch/burg/ubuntu karmic main</pre>
<p>Add GPG key:</p>
<pre lang="bash">gpg --keyserver subkeys.pgp.net --recv 55708F1EE06803C5
gpg --export --armor 55708F1EE06803C5 | sudo apt-key add -</pre>
<p>update and install:</p>
<pre lang="bash">sudo apt-get update
sudo apt-get install grub-pc</pre>
<p>Then,write the new startup code into MBR:</p>
<pre lang="bash">sudo grub-install "(hd0)"</pre>
<p><strong>2</strong>.Download themes:</p>
<pre lang="bash">wget http://grub4dos.sourceforge.net/themes.tar.bz2</pre>
<p>Extract it to /boot/grub/themes:</p>
<pre lang="bash">sudo tar -xjf themes.tar.bz2 -C /boot/grub/themes/</pre>
<p>Then,edit <em> /etc/default/grub</em>:</p>
<pre lang="bash">sudo gedit /etc/default/grub</pre>
<p>delete the &#8220;#&#8221;(without quotes) before this:</p>
<pre>GRUB_TERMINAL=console</pre>
<p><strong>3.</strong>Now,edit <em>/etc/grub.d/40_custom</em>:</p>
<pre lang="bash">sudo gedit /etc/grub.d/40_custom</pre>
<p>copy and paste following into this file:<br />
<code>set gfxmode="640x480"<br />
set gfxfont="Unifont Regular 16"<br />
loadfont /boot/grub/themes/fonts/unifont.pf2<br />
loadfont /boot/grub/themes/fonts/aqui.pf2<br />
loadfont /boot/grub/themes/fonts/edges.pf2<br />
loadfont /boot/grub/themes/fonts/lime.pf2<br />
loadfont /boot/grub/themes/fonts/7x13B.pf2<br />
loadfont /boot/grub/themes/fonts/smoothansi.pf2<br />
loadfont /boot/grub/themes/fonts/Helvetica-Bold-14.pf2<br />
insmod vbe<br />
insmod png<br />
insmod coreui<br />
load_config /boot/grub/themes/proto/theme.txt</code></p>
<p>the last line will load the theme.You can change this line to :<br />
<em>ubuntu theme:</em><br />
<code>load_config /boot/grub/themes/ubuntu/theme.txt</code><br />
<em>winter theme:</em><br />
<code>load_config /boot/grub/themes/winter/theme.txt</code><br />
<em>proto theme:</em><br />
<code>load_config /boot/grub/themes/proto/theme.txt</code><br />
Now,use this command to create <em>grub.cfg</em> file:</p>
<pre lang="bash">sudo update-grub</pre>
<p><a href="http://ubuntuguide.net/wp-content/uploads/2009/11/grub2_theme.png"><img class="alignnone size-full wp-image-2045" title="grub2_theme" src="http://ubuntuguide.net/wp-content/uploads/2009/11/grub2_theme.png" alt="grub2_theme" width="410" height="308" /></a></p>
<p style="text-align: center;">ubuntu</p>
<p><a href="http://ubuntuguide.net/wp-content/uploads/2009/11/grub2_theme_1.png"><img class="alignnone size-full wp-image-2046" title="grub2_theme_1" src="http://ubuntuguide.net/wp-content/uploads/2009/11/grub2_theme_1.png" alt="grub2_theme_1" width="408" height="310" /></a></p>
<p style="text-align: center;">proto</p>
<p><a href="http://ubuntuguide.net/wp-content/uploads/2009/11/grub2_theme_2.png"><img class="alignnone size-medium wp-image-2047" title="grub2_theme_2" src="http://ubuntuguide.net/wp-content/uploads/2009/11/grub2_theme_2-475x360.png" alt="grub2_theme_2" width="475" height="360" /></a></p>
<p style="text-align: center;">winter</p>
<p>For more Burg details see:<a href="https://help.ubuntu.com/community/Burg/">https://help.ubuntu.com/community/Burg/</a></p>
<p>Related posts:<ol>
<li><a href='http://ubuntuguide.net/decorate-grub-2-boot-loader-with-burg-manager-gui-for-burg' rel='bookmark' title='Decorate Grub 2 boot loader with Burg-Manager (GUI for Burg)'>Decorate Grub 2 boot loader with Burg-Manager (GUI for Burg)</a></li>
<li><a href='http://ubuntuguide.net/add-os-logos-into-grub2-boot-menu-using-burg' rel='bookmark' title='Add OS logos into Grub2 boot menu using BURG'>Add OS logos into Grub2 boot menu using BURG</a></li>
<li><a href='http://ubuntuguide.net/manager-grub2-boot-loader-using-grub-customizergui' rel='bookmark' title='Manager Grub2 boot loader using Grub Customizer(GUI)'>Manager Grub2 boot loader using Grub Customizer(GUI)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ubuntuguide.net/decorate-grub-2-boot-loader-using-burg/feed</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Manually adding/removing entries to Grub 2 Menu</title>
		<link>http://ubuntuguide.net/manually-addingremoving-entries-to-grub-2-menu</link>
		<comments>http://ubuntuguide.net/manually-addingremoving-entries-to-grub-2-menu#comments</comments>
		<pubDate>Tue, 10 Nov 2009 02:12:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[grub 2]]></category>

		<guid isPermaLink="false">http://ubuntuguide.net/?p=1952</guid>
		<description><![CDATA[Grub 2 Menu entries can be added to grub.cfg automatically or manually,and grub.cfg is updated when update-grub is run. Manually adding entries to Grub 2 Entries to grub.cfg can be manually inserted by creating a file in the /etc/grub.d folder. The name of the file determines the order in the menu. 30_os-prober entries will be [...]
Related posts:<ol>
<li><a href='http://ubuntuguide.net/new-grub-customizer-with-default-osbackgroundmenu-colorsresolution-support' rel='bookmark' title='New Grub Customizer with default OS/background/menu colors/resolution support'>New Grub Customizer with default OS/background/menu colors/resolution support</a></li>
<li><a href='http://ubuntuguide.net/clean-up-ubuntu-old-grub-boot-menu-after-upgrades' rel='bookmark' title='Clean up Ubuntu old grub boot menu after upgrades'>Clean up Ubuntu old grub boot menu after upgrades</a></li>
<li><a href='http://ubuntuguide.net/how-to-setup-boot-password-for-grub2-entries' rel='bookmark' title='How to setup Boot password protection for Grub2 Entries'>How to setup Boot password protection for Grub2 Entries</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Grub 2 Menu entries can be added to <em>grub.cfg</em> automatically or manually,and <em>grub.cfg</em> is updated when <em>update-grub</em> is run.<br />
<strong>Manually adding entries to Grub 2</strong></p>
<p>Entries to <span style="color: darkred;"><em>grub.cfg</em></span> can be manually inserted by creating a file in the /etc/grub.d folder.</p>
<ul>
<li>The name of the file determines the order in the menu. 30_os-prober entries will be placed before 40_custom entries, which will be placed before 50_my-sample entries.</li>
<li>Any created file must be made executable. This can be done as root by running &#8220;sudo chmod +x /etc/grub.d/<em>filename</em>&#8220;.</li>
<li>The files in the /etc/grub.d folder will be read and the contents included in <span style="color: darkred;"><em>grub.cfg</em></span> when the &#8220;<span style="color: navy;"><em>update-grub2</em></span>&#8221; command is executed as root.</li>
</ul>
<p>A sample entry. This file creates a menu item for running the SystemRescueCD (previously installed) from a partition created on sda10. Folders and files must have been copied to the correct location in accordance with the SystemRescueCD if you wish to actually use this entry.</p>
<p><em>Quote:</em></p>
<pre>#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
<span style="color: purple;">echo "Adding SystemRescueCD" &gt;&amp;2</span>
menuentry "System Rescue CD" {
set root=(hd0,10)
linux   /sysrcd/rescuecd subdir=sysrcd setkmap=us
initrd  /sysrcd/initram.igz
}</pre>
<p><strong>Tip:</strong> If you want to have your custom entries at the top of the menu (say you want custom titles), create a new file and name it &#8220;07_xxxx&#8221;. Since the files in /etc/grub.d/ are read sequentially, those in &#8220;07_custom&#8221; will be placed before those of &#8220;10_linux&#8221;. I recommend not naming a custom menu file lower than 06 so that any theme run from 05_debian_theme is allowed to run before any custom menu is created. After creating the file, run sudo update-grub and then check the value of &#8220;DEFAULT&#8221; in /etc/default/grub. If it doesn&#8217;t point to the correct menuentry, change the value of DEFAULT to the correct menuentry value.<br />
<strong>Removing entries</strong><br />
* To remove a user-created menu entry, remove the applicable file from the /etc/grub.d folder.<br />
* If a custom file contains multiple entries, individual items may be removed and others retained.<br />
* Once the file has been removed or edited, run &#8220;update-grub2&#8243; to update grub.cfg.</p>
<p>Read: <a href="http://ubuntuforums.org/showthread.php?t=1195275">Original text</a></p>
<p>Related posts:<ol>
<li><a href='http://ubuntuguide.net/new-grub-customizer-with-default-osbackgroundmenu-colorsresolution-support' rel='bookmark' title='New Grub Customizer with default OS/background/menu colors/resolution support'>New Grub Customizer with default OS/background/menu colors/resolution support</a></li>
<li><a href='http://ubuntuguide.net/clean-up-ubuntu-old-grub-boot-menu-after-upgrades' rel='bookmark' title='Clean up Ubuntu old grub boot menu after upgrades'>Clean up Ubuntu old grub boot menu after upgrades</a></li>
<li><a href='http://ubuntuguide.net/how-to-setup-boot-password-for-grub2-entries' rel='bookmark' title='How to setup Boot password protection for Grub2 Entries'>How to setup Boot password protection for Grub2 Entries</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ubuntuguide.net/manually-addingremoving-entries-to-grub-2-menu/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to restore Grub 2 after reinstalling Windows XP/Vista/Win7</title>
		<link>http://ubuntuguide.net/how-to-restore-grub-2-after-reinstalling-windows-xpvistawin7</link>
		<comments>http://ubuntuguide.net/how-to-restore-grub-2-after-reinstalling-windows-xpvistawin7#comments</comments>
		<pubDate>Tue, 20 Oct 2009 07:32:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[grub 2]]></category>

		<guid isPermaLink="false">http://ubuntuguide.net/?p=1752</guid>
		<description><![CDATA[After reinstalling Windows in the computer dual boot with both Windows and Ubuntu Linux,you need restore grub because mbr has been rewritten.This tutorial shows how to restore grub 2. Update:Today I ghost my XP system,but after restore grub,I cannot boot into XP by clicking the old windows option in grub menu.So you&#8217;d better to run [...]
Related posts:<ol>
<li><a href='http://ubuntuguide.net/how-to-install-windows-7-from-ubuntu-without-burnning-a-disc' rel='bookmark' title='How to install Windows 7 from Ubuntu without burnning a disc'>How to install Windows 7 from Ubuntu without burnning a disc</a></li>
<li><a href='http://ubuntuguide.net/3-ways-setting-xpvistawindows-7-as-default-bootup-os-in-grub-2' rel='bookmark' title='3 Ways Setting XP/Vista/Windows 7 as default bootup OS In Grub 2'>3 Ways Setting XP/Vista/Windows 7 as default bootup OS In Grub 2</a></li>
<li><a href='http://ubuntuguide.net/install-ubuntu-without-burning-livecd-from-windows-7-dual-bootnot-wubi' rel='bookmark' title='Install Ubuntu without burning LiveCD from Windows 7 dual-boot(not wubi)'>Install Ubuntu without burning LiveCD from Windows 7 dual-boot(not wubi)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>After reinstalling Windows in the computer dual boot with both Windows and Ubuntu Linux,you need restore <em>grub</em> because <em>mbr</em> has been rewritten.This tutorial shows how to restore <em>grub 2</em>.</p>
<p><strong>Update:</strong>Today I ghost my XP system,but after restore grub,I cannot boot into XP by clicking the old windows option in grub menu.So you&#8217;d better to run this command to renew the grub2 boot list after trying following method:</p>
<pre lang="bash">sudo update-grub</pre>
<p><strong>1).Using grub4dos</strong><br />
First download grub4dos from <a title="click to download grub4dos" href="http://download.gna.org/grub4dos/" target="_blank">here</a>.<br />
<strong>1. </strong><em>For XP user</em>,copy the file &#8220;grldr&#8221;(without quotes) from grub4dos package to <em>C:\</em>.Edit <em>boot.ini</em> (hidden file in C:\) and add this line to the file:</p>
<pre>c:\grldr="grub4dos"</pre>
<p><em>For Vista/win7 user</em>,copy the file &#8220;grldr&#8221;,&#8221;grldr.mbr&#8221; to <em>C:\</em>.Create boot.ini file in the root directory of C:,copy and paste following into this file.</p>
<pre>[boot loader]
timeout=0
default=c:\grldr.mbr
[operating systems]
C:\grldr.mbr="Grub4Dos"</pre>
<p><strong>2.</strong> Now,create <em>menu.lst</em> in root directory of C:,its content:</p>
<pre>timeout 0
default 0
title grub2
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img
boot</pre>
<p>Restart computer,and select boot from <em>Grub4Dos</em>.Then select boot up Ubuntu in grub menu.<br />
Once login,use this command to install grub into mbr:</p>
<pre>sudo grub-install /dev/sda</pre>
<p><strong>2).Using Ubuntu 9.10 livecd or higher</strong><br />
Here assuming the Ubuntu partition is <em>sda7</em>,and /boot partition is <em>sda6</em> (if you have a separate /boot partition).<br />
Boot up ubuntu from the livecd,open terminal and run:</p>
<pre>sudo -i
mount /dev/sda7 /mnt
mount /dev/sda6 /mnt/boot  #skip this one if not have a separate /boot partition
grub-install --root-directory=/mnt/ /dev/sda</pre>
<p>If you miss &#8220;grub.cfg&#8221; file,use following to recreate:</p>
<pre>mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt update-grub
umount /mnt/sys
umount /mnt/dev
umount /mnt/proc
exit</pre>
<p><strong>3).Using the cd/usb boot up with grub</strong><br />
Boot up the cd/usb,press <em>c</em> in grub menu.Type:</p>
<pre>grub&gt;find /boot/grub/core.img
grub&gt;root (hdx,y)   (previous command will output the x,y)
grub&gt;kernel /boot/grub/core.img
grub&gt;boot</pre>
<p>After the boot command,you&#8217;ll go into grub2 menu.Select to boot up ubuntu,and run this command to restore grub:</p>
<pre>sudo grub-install /dev/sda</pre>
<p>Related posts:<ol>
<li><a href='http://ubuntuguide.net/how-to-install-windows-7-from-ubuntu-without-burnning-a-disc' rel='bookmark' title='How to install Windows 7 from Ubuntu without burnning a disc'>How to install Windows 7 from Ubuntu without burnning a disc</a></li>
<li><a href='http://ubuntuguide.net/3-ways-setting-xpvistawindows-7-as-default-bootup-os-in-grub-2' rel='bookmark' title='3 Ways Setting XP/Vista/Windows 7 as default bootup OS In Grub 2'>3 Ways Setting XP/Vista/Windows 7 as default bootup OS In Grub 2</a></li>
<li><a href='http://ubuntuguide.net/install-ubuntu-without-burning-livecd-from-windows-7-dual-bootnot-wubi' rel='bookmark' title='Install Ubuntu without burning LiveCD from Windows 7 dual-boot(not wubi)'>Install Ubuntu without burning LiveCD from Windows 7 dual-boot(not wubi)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ubuntuguide.net/how-to-restore-grub-2-after-reinstalling-windows-xpvistawin7/feed</wfw:commentRss>
		<slash:comments>92</slash:comments>
		</item>
		<item>
		<title>Fix Grub 2 Error 11: unrecognized device string</title>
		<link>http://ubuntuguide.net/fix-grub-2-error-11-unrecognized-device-string</link>
		<comments>http://ubuntuguide.net/fix-grub-2-error-11-unrecognized-device-string#comments</comments>
		<pubDate>Mon, 19 Oct 2009 01:14:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[grub 2]]></category>

		<guid isPermaLink="false">http://ubuntuguide.net/?p=1748</guid>
		<description><![CDATA[If you upgraded Grub 2 in the dual boot with both Windows and Ubuntu machine.When you reinstall Windows and then restore the grub 2,you may encounter &#8220;error 11: unrecognized device string&#8221; after select Ubuntu in grub menu.Following shows how to fix this error: Select Chainload into GRUB 2 in this screen and press E Select [...]
Related posts:<ol>
<li><a href='http://ubuntuguide.net/grub-missedor-grub-error' rel='bookmark' title='Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition'>Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition</a></li>
<li><a href='http://ubuntuguide.net/how-to-restore-grub-2-after-reinstalling-windows-xpvistawin7' rel='bookmark' title='How to restore Grub 2 after reinstalling Windows XP/Vista/Win7'>How to restore Grub 2 after reinstalling Windows XP/Vista/Win7</a></li>
<li><a href='http://ubuntuguide.net/add-windows-into-grub-menu-after-install-ubuntu' rel='bookmark' title='Add Windows into grub menu after install Ubuntu'>Add Windows into grub menu after install Ubuntu</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you<a title="Step by Step Grub 2 Upgrade" href="http://ubuntuguide.net/step-by-step-grub-2-upgrade-guide-in-ubuntu-904"> upgraded <em>Grub 2</em></a> in the dual boot with both Windows and Ubuntu machine.When you reinstall Windows and then <a title="Restore grub 2 after reinstalling Windows" href="http://ubuntuguide.net/how-to-restore-grub-2-after-reinstalling-windows-xpvistawin7">restore the <em>grub 2</em></a>,you may encounter &#8220;error 11: unrecognized device string&#8221; after select Ubuntu in grub menu.Following shows how to fix this error:</p>
<p>Select <strong><em>Chainload into GRUB 2</em></strong> in this screen and press <em>E</em></p>
<p><em><a href="http://ubuntuguide.net/wp-content/uploads/2009/09/grubupgrade2.jpg"><img class="alignnone size-medium wp-image-950" title="grubupgrade2" src="http://ubuntuguide.net/wp-content/uploads/2009/09/grubupgrade2-500x336.jpg" alt="grubupgrade2" width="500" height="336" /></a></em></p>
<p>Select the line start with  <em>&#8220;root&#8221; </em>and press <em>E </em>in next screen.Then change the &#8220;root&#8221; into &#8220;uuid&#8221;(without quotes),press enter and then press <em>B</em>.You will back to grub menu,select Ubuntu and boot up.<br />
<a href="http://ubuntuguide.net/wp-content/uploads/2009/09/grubupgrade1.jpg"><img class="alignnone size-medium wp-image-951" title="grubupgrade1" src="http://ubuntuguide.net/wp-content/uploads/2009/09/grubupgrade1-500x277.jpg" alt="grubupgrade1" width="500" height="277" /></a></p>
<p>Once login,open terminal and type:</p>
<pre lang="bash">sudo upgrade-from-grub-legacy</pre>
<p>Related posts:<ol>
<li><a href='http://ubuntuguide.net/grub-missedor-grub-error' rel='bookmark' title='Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition'>Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition</a></li>
<li><a href='http://ubuntuguide.net/how-to-restore-grub-2-after-reinstalling-windows-xpvistawin7' rel='bookmark' title='How to restore Grub 2 after reinstalling Windows XP/Vista/Win7'>How to restore Grub 2 after reinstalling Windows XP/Vista/Win7</a></li>
<li><a href='http://ubuntuguide.net/add-windows-into-grub-menu-after-install-ubuntu' rel='bookmark' title='Add Windows into grub menu after install Ubuntu'>Add Windows into grub menu after install Ubuntu</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ubuntuguide.net/fix-grub-2-error-11-unrecognized-device-string/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Add Background Picture to Grub 2 on Ubuntu 9.04</title>
		<link>http://ubuntuguide.net/add-background-picture-to-grub-2-on-ubuntu-904</link>
		<comments>http://ubuntuguide.net/add-background-picture-to-grub-2-on-ubuntu-904#comments</comments>
		<pubDate>Thu, 03 Sep 2009 03:04:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[grub 2]]></category>

		<guid isPermaLink="false">http://ubuntuguide.net/?p=976</guid>
		<description><![CDATA[If you have your Grub upgraded to Grub stage 2 on ubuntu,you may enjoy adding a background picture to the Grub,so that your grub looks great when you boot up the computer! First,make sure you have grub 2 upgraded. Then,install grub2-splashimages by this command in terminal: sudo aptitude install grub2-splashimages Now,open up a file folder [...]
Related posts:<ol>
<li><a href='http://ubuntuguide.net/how-to-add-a-background-picture-to-grub2-on-ubuntu-10-10-maverick' rel='bookmark' title='How to Add a Background picture to Grub2 on Ubuntu 10.10 Maverick'>How to Add a Background picture to Grub2 on Ubuntu 10.10 Maverick</a></li>
<li><a href='http://ubuntuguide.net/an-easy-way-to-addchange-grub2-background-image-in-ubuntu-11-04' rel='bookmark' title='An easy way to add/change Grub2 background image in Ubuntu 11.04'>An easy way to add/change Grub2 background image in Ubuntu 11.04</a></li>
<li><a href='http://ubuntuguide.net/how-to-restore-grub-2-after-reinstalling-windows-xpvistawin7' rel='bookmark' title='How to restore Grub 2 after reinstalling Windows XP/Vista/Win7'>How to restore Grub 2 after reinstalling Windows XP/Vista/Win7</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you have your Grub <a href="http://ubuntuguide.net/step-by-step-grub-2-upgrade-guide-in-ubuntu-904">upgraded to Grub stage 2 on ubuntu</a>,you may enjoy adding a background picture to the Grub,so that your grub looks great when you boot up the computer!</p>
<p>First,make sure you have grub 2 upgraded.</p>
<p>Then,install <span class="system">grub2-splashimages by this command in terminal:</span></p>
<pre lang="bash">sudo aptitude install grub2-splashimages</pre>
<p>Now,open up a file folder and navigate to <em>filesystem-<span class="system">&gt;usr-&gt;share-&gt;images-&gt;grub.</span></em><span class="system">You&#8217;ll see many images,select one and copy the filename(without the extension <em>.tga</em>) to </span><span class="system">clipboard.</span></p>
<p><span class="system">In terminal,run this command:</span></p>
<pre lang="bash">sudo gedit /etc/grub.d/05_debian_theme</pre>
<p>Find the line <em>&#8220;for i in {/boot/grub,/usr/share/images/&#8230;}&#8230;&#8221;</em> and change it to   <em>for i in {/boot/grub,/usr/share/images/grub}/Fly-Angel.{png,tga} ; do</em>. Here &#8220;Fly-Angel&#8221; is the filename of the picture.</p>
<p><a href="http://ubuntuguide.net/wp-content/uploads/2009/09/background.png"><img class="alignnone size-medium wp-image-977" title="background" src="http://ubuntuguide.net/wp-content/uploads/2009/09/background-500x296.png" alt="background" width="500" height="296" /></a></p>
<p><span class="system">Now,update and reboot to see the effect!</span></p>
<pre lang="bash">sudo update-grub

sudo reboot</pre>
<p>Related posts:<ol>
<li><a href='http://ubuntuguide.net/how-to-add-a-background-picture-to-grub2-on-ubuntu-10-10-maverick' rel='bookmark' title='How to Add a Background picture to Grub2 on Ubuntu 10.10 Maverick'>How to Add a Background picture to Grub2 on Ubuntu 10.10 Maverick</a></li>
<li><a href='http://ubuntuguide.net/an-easy-way-to-addchange-grub2-background-image-in-ubuntu-11-04' rel='bookmark' title='An easy way to add/change Grub2 background image in Ubuntu 11.04'>An easy way to add/change Grub2 background image in Ubuntu 11.04</a></li>
<li><a href='http://ubuntuguide.net/how-to-restore-grub-2-after-reinstalling-windows-xpvistawin7' rel='bookmark' title='How to restore Grub 2 after reinstalling Windows XP/Vista/Win7'>How to restore Grub 2 after reinstalling Windows XP/Vista/Win7</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ubuntuguide.net/add-background-picture-to-grub-2-on-ubuntu-904/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Step by step GRUB 2 Upgrade guide in ubuntu 9.04</title>
		<link>http://ubuntuguide.net/step-by-step-grub-2-upgrade-guide-in-ubuntu-904</link>
		<comments>http://ubuntuguide.net/step-by-step-grub-2-upgrade-guide-in-ubuntu-904#comments</comments>
		<pubDate>Wed, 02 Sep 2009 07:53:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[grub 2]]></category>

		<guid isPermaLink="false">http://ubuntuguide.net/?p=947</guid>
		<description><![CDATA[This tutorial tells you how to upgrade you Grub to Grub stage 2 in ubuntu 9.04 step by step. First,you need run this command in terminal window: sudo aptitude install grub-pc Select Yes when prompt,and just press Enter when seeing Linux Command Line: screen. Now,reboot computer by this command: sudo reboot You will see a [...]
Related posts:<ol>
<li><a href='http://ubuntuguide.net/fix-grub-2-error-11-unrecognized-device-string' rel='bookmark' title='Fix Grub 2 Error 11: unrecognized device string'>Fix Grub 2 Error 11: unrecognized device string</a></li>
<li><a href='http://ubuntuguide.net/a-step-by-step-guide-for-ubuntu-910karmic-complete-installation' rel='bookmark' title='A Step by step Guide for Ubuntu 9.10(Karmic) complete installation'>A Step by step Guide for Ubuntu 9.10(Karmic) complete installation</a></li>
<li><a href='http://ubuntuguide.net/grub-missedor-grub-error' rel='bookmark' title='Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition'>Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This tutorial tells you how to upgrade you Grub to Grub stage 2 in ubuntu 9.04 step by step.</p>
<p>First,you need run this command in terminal window:</p>
<pre lang="bash">sudo aptitude install grub-pc</pre>
<p>Select <em>Yes</em> when prompt,and just press<em> Enter</em> when seeing <em>Linux Command Line:</em> screen.</p>
<p>Now,reboot computer by this command:</p>
<pre lang="bash">sudo reboot</pre>
<p>You will see a screen with &#8220;Error 11:&#8230;&#8221; and just press anykey to continue.</p>
<p>Select <strong><em>Chainload into GRUB 2</em></strong> in this screen and press <em>E</em></p>
<p><em><a href="http://ubuntuguide.net/wp-content/uploads/2009/09/grubupgrade2.jpg"><img class="alignnone size-medium wp-image-950" title="grubupgrade2" src="http://ubuntuguide.net/wp-content/uploads/2009/09/grubupgrade2-500x336.jpg" alt="grubupgrade2" width="500" height="336" /></a></em></p>
<p>Select the line start with  <em>root </em>and press <em>E </em>in following screen.</p>
<p><a href="http://ubuntuguide.net/wp-content/uploads/2009/09/grubupgrade1.jpg"><img class="alignnone size-medium wp-image-951" title="grubupgrade1" src="http://ubuntuguide.net/wp-content/uploads/2009/09/grubupgrade1-500x277.jpg" alt="grubupgrade1" width="500" height="277" /></a></p>
<p>After<em> grub edit &gt;</em> in next screen,change <em>root</em> to <em>uuid</em>,press<em> enter </em>and them press<em> B</em></p>
<p><a href="http://ubuntuguide.net/wp-content/uploads/2009/09/grubupgrade.jpg"><img class="alignnone size-medium wp-image-952" title="grubupgrade" src="http://ubuntuguide.net/wp-content/uploads/2009/09/grubupgrade-500x293.jpg" alt="grubupgrade" width="500" height="293" /></a></p>
<p>Select Ubuntu in above screen,and run this command when you back to ubuntu:</p>
<pre lang="bash">sudo upgrade-from-grub-legacy

sudo reboot</pre>
<p>Done.</p>
<p>Related posts:<ol>
<li><a href='http://ubuntuguide.net/fix-grub-2-error-11-unrecognized-device-string' rel='bookmark' title='Fix Grub 2 Error 11: unrecognized device string'>Fix Grub 2 Error 11: unrecognized device string</a></li>
<li><a href='http://ubuntuguide.net/a-step-by-step-guide-for-ubuntu-910karmic-complete-installation' rel='bookmark' title='A Step by step Guide for Ubuntu 9.10(Karmic) complete installation'>A Step by step Guide for Ubuntu 9.10(Karmic) complete installation</a></li>
<li><a href='http://ubuntuguide.net/grub-missedor-grub-error' rel='bookmark' title='Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition'>Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ubuntuguide.net/step-by-step-grub-2-upgrade-guide-in-ubuntu-904/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

