<?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 Linux, ubuntu desktop, Linux operating system, ubuntu guide &#187; grub error</title>
	<atom:link href="http://ubuntulinux.co.in/blog/tag/grub-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://ubuntulinux.co.in/blog</link>
	<description>How to fix the Technical issue in Ubuntu linux</description>
	<lastBuildDate>Sat, 21 Jan 2012 05:57:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Fixing the grub error in Ubuntu</title>
		<link>http://ubuntulinux.co.in/blog/ubuntu/fixing-the-grub-error-in-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fixing-the-grub-error-in-ubuntu</link>
		<comments>http://ubuntulinux.co.in/blog/ubuntu/fixing-the-grub-error-in-ubuntu/#comments</comments>
		<pubDate>Thu, 27 May 2010 08:51:54 +0000</pubDate>
		<dc:creator>sahab</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 10.04]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[grub error]]></category>

		<guid isPermaLink="false">http://ubuntulinux.co.in/blog/?p=102</guid>
		<description><![CDATA[Installing Windows After Ubuntu]]></description>
			<content:encoded><![CDATA[<p><!-- @page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H1 { margin-bottom: 0.21cm } 		H1.western { font-family: "Nimbus Roman No9 L", serif } 		H1.cjk { font-family: "DejaVu Sans" } 		H1.ctl { font-family: "DejaVu Sans" } --> <!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H1 { margin-bottom: 0.21cm } 		H1.western { font-family: "Nimbus Roman No9 L", serif } 		H1.cjk { font-family: "DejaVu Sans" } 		H1.ctl { font-family: "DejaVu Sans" } --></p>
<h1><span style="font-family: Times New Roman,serif;"><span style="font-size: x-small;"><strong><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><strong>Installing Windows After Ubuntu</strong></span></span></strong></span></span></h1>
<p><span style="font-family: Times New Roman,serif;"><span style="font-size: small;">Normally when Windows is installed after Ubuntu the master boot record will be overwritten. This means that you would have to boot off a LiveCD and re-install grub. The steps are</span></span></p>
<p><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><strong>#sudo grub</strong></span></span></p>
<p><span style="font-family: Times New Roman,serif;"><span style="font-size: small;">From the grub</span></span></p>
<p><span style="font-family: Times New Roman,serif;"><span style="font-size: small;">Type </span></span></p>
<p><span style="font-size: small;"><span style="font-family: Times New Roman,serif;"><strong>grub&gt; find /boot/grub/stage1</strong></span> <span style="font-family: Times New Roman,serif;">(If you installed separate /boot partition, then</span> <span style="font-family: Times New Roman,serif;"><strong>find /grub/stage1 </strong></span><span style="font-family: Times New Roman,serif;">)</span></span></p>
<p><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><strong>(hd0,1) </strong></span></span></p>
<p><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><strong>(hd0,5)</strong></span></span></p>
<p><span style="font-family: Times New Roman,serif;"><span style="font-size: small;">It dispay partition which contains your grub files. I have two linux OS installed. </span></span></p>
<p><span style="font-family: Times New Roman,serif;"><span style="font-size: small;">Then run the following command</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Times New Roman,serif;"><strong>&gt;root (hd0,1)</strong></span><span style="font-family: Times New Roman,serif;"><br />
&gt;</span><span style="font-family: Times New Roman,serif;"><strong>setup (hd0)</strong></span></span></p>
<p><span style="font-family: Times New Roman,serif;"><span style="font-size: small;">(hd0) = the MBR for the hard disk which is where grub needs to install itself too for it to load on bootup.</span></span></p>
<p><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><strong>Another Method</strong></span></span></p>
<p><span style="font-family: Times New Roman,serif;"><span style="font-size: small;"><strong>fdisk -l</strong></span></span></p>
<p><span style="font-size: small;">Disk /dev/hda: 120.0 GB, 120034123776 bytes<br />
255 heads, 63 sectors/track, 14593 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</span></p>
<p><span style="font-size: small;">Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1               1           8       64228+  83  Linux<br />
/dev/sda2               9        1224     9767520   83  Linux<br />
/dev/sda3   *        1225        2440     9767520   a5  FreeBSD<br />
/dev/sda4            2441       14593    97618972+   5  Extended<br />
/dev/sda5           14532       14593      498015   82  Linux swap / Solaris<br />
/dev/sda6            2441       14530    97112862   83  Linux</span></p>
<p><span style="font-size: small;">Partition table entries are not in disk order</span></p>
<p><span style="font-size: small;">Here are listed three Linux partitions. /dev/sda2 is the root partition, /dev/sda1 is the /boot partition and /dev/sda6 is the /home partition. If you only have one partition, this means that your entire Ubuntu system is installed on that one.</span></p>
<p><span style="font-size: small;">Later there will be a section on how to determine which partition your Ubuntu installation is on if you have several different partitions.</span></p>
<p><span style="font-size: small;">First, create a mountpoint for your partition, for example:</span></p>
<p><span style="font-size: small;"><strong>mkdir /media/root</strong></span></p>
<p><span style="font-size: small;">Then mount your partition in it. If you don&#8217;t know which one it is, then mount any of them, we will determine if it is the correct one.</span></p>
<p><span style="font-size: small;"><strong>mount /dev/sda2 /media/root</strong></span></p>
<p><span style="font-size: small;">Replace /dev/sda2 with the correct name of your partition. To check if it is the correct one, run ls /media/root which should output something like this:</span></p>
<p><span style="font-size: small;">bin    dev      home        lib    mnt   root     srv  usr<br />
boot   etc      initrd      lib64  opt   sbin     sys  var<br />
cdrom  initrd.img  media  proc  selinux  tmp  vmlinuz</span></p>
<p><span style="font-size: small;">If what you have looks nothing like this, the drive you have selected is incorrect. Run umount /media/root in the Terminal to unmount it then mount and try another one. Should you have made a /boot partition you can mount it like so:</span></p>
<p><span style="font-size: small;"><strong>mount /dev/sda1 /media/root/boot</strong></span></p>
<p><span style="font-size: small;">To make sure this is indeed the /boot partition, run ls /media/root/boot, which should output something like this :</span></p>
<p><span style="font-size: small;">config-2.6.18-3-686      initrd.img-2.6.18-3-686.bak  System.map-2.6.18-3-686<br />
grub                     lost+found                   vmlinuz-2.6.18-3-686<br />
initrd.img-2.6.18-3-686  memtest86+.bin</span></p>
<p><span style="font-size: small;">Once again, if what you have is not similar, unmount it and try another partition.</span></p>
<p><span style="font-size: small;">Now that everything is mounted, we just need to reinstall GRUB:</span></p>
<p><span style="font-size: small;"><strong>sudo grub-install &#8211;root-directory=/media/root /dev/sda</strong></span></p>
<p><span style="font-size: small;">If you get BIOS warnings try:</span></p>
<p><span style="font-size: small;"><strong>sudo grub-install &#8211;root-directory=/media/root /dev/sda &#8211;recheck</strong></span></p>
<p><span style="font-size: small;">Note: Replace /dev/sda with the location you want to install GRUB on. If all went well, you should see something like this:</span></p>
<p><span style="font-size: small;">Installation finished. No error reported.<br />
This is the contents of the device map /boot/grub/device.map.<br />
Check if this is correct or not. If any of the lines is incorrect,<br />
fix it and re-run the script <strong>`grub-install&#8217;</strong>.</span></p>
<p><span style="font-size: small;">(hd0)   /dev/sda</span></p>
<p><span style="font-size: small;">Reboot, making sure to boot to your hard drive and not to the live CD. Grub should be installed and both Ubuntu and Windows should have been automatically detected. </span></p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntulinux.co.in/blog/ubuntu/fixing-the-grub-error-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

