<?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>LinuxHub &#187; restore grub ubuntu</title>
	<atom:link href="http://linuxhub.net/tag/restore-grub-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxhub.net</link>
	<description>Making Linux Simple!</description>
	<lastBuildDate>Sun, 16 Oct 2011 13:13:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Restoring Grub in Ubuntu: How-to</title>
		<link>http://linuxhub.net/2009/07/restoring-grub-in-ubuntu-how-to/</link>
		<comments>http://linuxhub.net/2009/07/restoring-grub-in-ubuntu-how-to/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 06:55:22 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[GNU GRUB]]></category>
		<category><![CDATA[grub ubuntu]]></category>
		<category><![CDATA[re-install grub ubuntu]]></category>
		<category><![CDATA[reinstall grub]]></category>
		<category><![CDATA[restore grub]]></category>
		<category><![CDATA[restore grub ubuntu]]></category>

		<guid isPermaLink="false">http://linuxhub.net/?p=195</guid>
		<description><![CDATA[I had to re-install Windows on my partition and in the process it was obvious that I was going to lose my Grub. However, I knew I could very easily get it back. You can lose grub for various reasons and the most common being installing windows, which unfortunately doesn&#8217;t respect your settings and  [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="size-full wp-image-200 alignright" style="border: 0pt none; margin-left: 5px; margin-right: 5px;" title="grubicon" src="http://linuxhub.net/wp-content/uploads/2009/07/grubicon.png" alt="grubicon" width="237" height="86" />I had to re-install Windows on my partition and in the process it was obvious that I was going to lose my Grub. However, I knew I could very easily get it back. You can lose grub for various reasons and the most common being installing windows, which unfortunately doesn&#8217;t respect your settings and erases your grub. However, there&#8217;s nothing to panic in that case because restoring grub is no rocket science.</p>
<p style="text-align: justify;">Let&#8217;s see how to restore grub on a machine which has <a class="zem_slink" title="Ubuntu" rel="homepage" href="http://www.ubuntu.com/">Ubuntu</a>:</p>
<p style="text-align: justify;">1. Boot using a <a class="zem_slink" title="Live CD" rel="wikipedia" href="http://en.wikipedia.org/wiki/Live_CD">Live CD</a> or pen drive of Ubuntu. You&#8217;ll be having a live session running.</p>
<p style="text-align: justify;">2. Start a <a class="zem_slink" title="Terminal emulator" rel="wikipedia" href="http://en.wikipedia.org/wiki/Terminal_emulator">terminal</a> Window by hitting ALT+F2 and typing <span style="color: #888888;">gnome-terminal</span>.</p>
<p style="text-align: justify;"><img class="alignnone" title="Terminal" src="http://linuxhub.net/wp-content/uploads/2009/07/terminalrun2.png" alt="" width="452" height="218" /></p>
<p style="text-align: justify;">3. On the terminal window type the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> grub</pre></div></div>

<p style="text-align: justify;">You&#8217;ll see the prompt changing in the terminal window.</p>
<p style="text-align: justify;">4. At the grub prompt, type the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>stage1</pre></div></div>

<p style="text-align: justify;">This should show you info about location</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-197" title="grublocation" src="http://linuxhub.net/wp-content/uploads/2009/07/grublocation.png" alt="grublocation" width="500" height="350" /></p>
<p style="text-align: justify;">5. As I got (hd0,5) in my case, following is what I am going to enter at the grub prompt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">5</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p style="text-align: justify;">and hit enter</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-198" title="grubroot" src="http://linuxhub.net/wp-content/uploads/2009/07/grubroot.png" alt="grubroot" width="500" height="350" /></p>
<p style="text-align: justify;">6. Next we&#8217;ll install the grub at the <a class="zem_slink" title="Master boot record" rel="wikipedia" href="http://en.wikipedia.org/wiki/Master_boot_record">mbr</a> using the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">setup <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p style="text-align: justify;">You&#8217;ll see the confirmation of installation of Grub.</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-199" title="grubinstall" src="http://linuxhub.net/wp-content/uploads/2009/07/grubinstall.png" alt="grubinstall" width="500" height="350" /></p>
<p style="text-align: justify;">7. Type <span style="color: #888888;">quit</span> to exit grub prompt. Close the terminal window and restart your computer.</p>
<p style="text-align: justify;">You&#8217;ll have your grub restored.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxhub.net/2009/07/restoring-grub-in-ubuntu-how-to/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

