<?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>Rayhan's blog (raynux.com) &#187; Troublshooting</title>
	<atom:link href="http://raynux.com/blog/tag/troublshooting/feed/" rel="self" type="application/rss+xml" />
	<link>http://raynux.com/blog</link>
	<description>Rayhan's Personal Web Blog Site</description>
	<lastBuildDate>Mon, 11 Apr 2011 06:33:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Recovering Ubuntu or Fedora Linux after installing windows</title>
		<link>http://raynux.com/blog/2008/09/21/recovering-ubuntu-or-fedora-linux-after-installing-windows/</link>
		<comments>http://raynux.com/blog/2008/09/21/recovering-ubuntu-or-fedora-linux-after-installing-windows/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 19:40:26 +0000</pubDate>
		<dc:creator>rayhan</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Boot]]></category>
		<category><![CDATA[GRUB]]></category>
		<category><![CDATA[Troublshooting]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://raynux.com/blog/?p=41</guid>
		<description><![CDATA[Running linux with windows in dual boot mode is not hassle free at all. Specially if you reinstall or repair windows, your linux system will disappear. As a newbie you may stop using linux or reinstall it again instead of solving the problem. In this article I will share my experience on how to recover [...]]]></description>
			<content:encoded><![CDATA[<p>Running linux with windows in dual boot mode is not hassle free at all. Specially if you reinstall or repair windows, your linux system will disappear. As a newbie you may stop using linux or reinstall it again instead of solving the problem. In this article I will share my experience on how to recover the boot option for linux. I will cover two well known linux distro ubuntu 8 and fedora 7. I will try to cover the fail safe situation here.</p>
<p>In both Fedora and Ubuntu this task includes two basic steps. These are:</p>
<ul>
<li><strong>Enter into your existing hard disk linux system.</strong></li>
<li><strong>Setup GRUB Boot Loader using GRUB program.</strong></li>
</ul>
<p><strong>a. Enter into your existing hard disk linux system.</strong></p>
<p>Fedora 7:</p>
<p>In fedora recovering grub is easy task as fedora automatically mount the existing system image to /mnt/sysimage in rescue mode.</p>
<ol>
<li>Insert the fedora installation cd to boot from cd.</li>
<li>When the boot menu appear enter the rescue mode. A message will be prompt saying mounting the existing fedora system on /mnt/sysimage, click ok.</li>
<li>In rescue mode you will be in a shell</li>
<li>Enter the following command<br />
<code>#chroot /mnt/sysimage</code></li>
<li>Now you are in your existing fedora operating system.</li>
</ol>
<p>Ubuntu 8.04 LTS:</p>
<p>In ubuntu you will have to mount the existing system image manually.</p>
<ol>
<li>Insert the ubuntu live cd and start a live session from cd.</li>
<li>open the terminal window</li>
<li>the following command will display currently mounted device or harddisk partitions<br />
<code>#df -h</code></li>
<li>get the device name for <em>/boot</em> if exists or <em>/</em> (root) partition say <em>/dev/sda9</em>.</li>
<li>enter the following command<br />
<code>#sudo mkdir ubuntu<br />
#sudo mount -t ext3 /dev/sda9 ubuntu</code></li>
<li>If you have separate <em>/usr</em> partition say <em>/dev/sda7</em> enter the following command too.<br />
<code>#sudo mount -t ext3 /dev/sda7 ubuntu/usr<br />
</code></li>
<li>Enter the following command to mount <em>/proc</em> and <em>/dev</em> and change chroot.<br />
<code>#sudo mount -t proc none ubuntu/proc<br />
#sudo mount -o bind /dev/ ubuntu/dev<br />
#sudo chroot ubuntu /bin/bash</code></li>
<li>Now you are in your existing ubuntu operating system.</li>
</ol>
<p><strong>b. Setup GRUB Boot Loader using GRUB program.</strong></p>
<p>In grub you are mainly required to find the boot device and set the root to bood device.</p>
<ol>
<li>Insert the ubuntu live cd and start a live session from cd.<br />
<code>#grub</code></li>
<li>Find the existing boot device using following command. Which will out put something like (hd0,0) or (hd0,5) say (hdX,Y).<br />
<code>#grub&gt; find /boot/grub/stage1</code></li>
<li>Use the above output in the following two commands.<br />
<code>#grub&gt; root (hdX,Y)<br />
#grub&gt; setup (hdX)<br />
#grub&gt; quit</code></li>
<li>if everything is ok then you are done. just reboot the system.</li>
</ol>
<p>This article is completely based on my current experience and I am still a newbie in linux environment. so there may have sevaral other options to do the same task.</p>
]]></content:encoded>
			<wfw:commentRss>http://raynux.com/blog/2008/09/21/recovering-ubuntu-or-fedora-linux-after-installing-windows/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

