<?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>Chris JeanChris Jean &#187; dual boot</title>
	<atom:link href="http://chrisjean.com/tag/dual-boot/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisjean.com</link>
	<description>Linux, WordPress, programming, anime, and other stuff</description>
	<lastBuildDate>Mon, 16 Jan 2012 15:22:13 +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>Dual Boot Ubuntu and Linux Mint with Shared /home</title>
		<link>http://chrisjean.com/2009/01/07/dual-boot-ubuntu-and-linux-mint-with-shared-home/</link>
		<comments>http://chrisjean.com/2009/01/07/dual-boot-ubuntu-and-linux-mint-with-shared-home/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 20:31:46 +0000</pubDate>
		<dc:creator>Chris Jean</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips 'n Tricks]]></category>
		<category><![CDATA[computer problems]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Distro]]></category>
		<category><![CDATA[dual boot]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[operating system]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://gaarai.com/?p=497</guid>
		<description><![CDATA[Lumière is a system I built a couple of months ago to be a pure Linux-only machine. I haven&#8217;t done much with her, but it&#8217;s time to change that. As I&#8217;ve posted before, I really wanted to run different distros through their paces in order to weigh their pros and cons. However, I also wanted [...]]]></description>
			<content:encoded><![CDATA[<!-- filtered -->
<p>Lumière is a system I built a couple of months ago to be a pure Linux-only machine. I haven&#8217;t done much with her, but it&#8217;s time to change that. As I&#8217;ve posted before, I really wanted to run <a href="http://chrisjean.com/2008/08/04/initial-linux-distro-selections/" target="_blank">different distros</a> <a href="http://chrisjean.com/2008/08/07/linux-distro-tests/" target="_blank">through their paces</a> in order to weigh their pros and cons. However, I also wanted to have a system that I could actually use, so I decided to do a multiboot system with shared /home partitions.</p>
<p>Last night, I decided to start off easy and add <a href="http://linuxmint.com/" target="_blank">Linux Mint</a> (Felicia) on top of <a href="http://ubuntu.com/" target="_blank">Ubuntu</a> (Intrepid Ibex). Now I say that this is easy since Linux Mint is actually a modified version of Ubuntu (which also happens to be a modified version of <a href="http://www.debian.org/" target="_blank">Debian</a>). Since Linux Mint and Ubuntu share a similar structure, all the user and group IDs would be the same. This means that setting up a shared /home partition would be much simpler.</p>
<p>I also wanted to use Linux Mint since it has been highly recommended to me many times.</p>
<p><span id="more-497"></span>I didn&#8217;t know how to do this on my own since I&#8217;m still so new with running Linux for a desktop, so I used this very helpful guide: <a href="http://www.go2linux.org/dual-boot-two-linux-distros-debian-and-mandriva" target="_blank">Dual boot with two Linux, using the same home directory</a>. This guide uses Debian Etch and Mandriva rather than Ubuntu and Linux Mint, but all the instructions seemed to match any combination of distros that I&#8217;d like to use.</p>
<p>In fact, doing the installation was even easier than the instructions as I didn&#8217;t have to mess with any syncing of user and group IDs. My process went as follows:</p>
<ol>
<li>I booted from my Linux Mint disk and ran the installation program once the live desktop loaded.</li>
<li>I did everything as normal until I reached the &#8220;Prepare disk space&#8221; step of the installer. Since this step is for setting up the partitions and I wanted to share the /home partition, I need to do some work.
<ul>
<li>I selected the Manual option and clicked Forward.</li>
<li>I have two drives: /dev/sda and /dev/sdb. /dev/sdb is the drive I want since that&#8217;s where Ubuntu is installed while /dev/sda is merely for storage. I selected the unpartitioned space on /dev/sdb, created a new partition, selected a mount point of /, and selected an ext3 format. I then edited the /dev/sdb5 partition, which is my /home partition, and set it to a mount point of /home. I also have a swap partition, /dev/sdb4, so I edited it and set it to my swap.</li>
<li>After making these changes, I clicked Forward.</li>
</ul>
</li>
<li>On the &#8220;Who are you?&#8221; step, I supplied the same username and password as I had used for Ubuntu. I don&#8217;t believe that this is necessary as just the IDs have to match, but I did this nonetheless.</li>
<li>I continued the rest of the installer as normal until I reached the &#8220;Ready to install&#8221; step. I clicked &#8220;Advanced&#8230;&#8221; and selected to have the boot loader installed on /dev/sdb7, my newly created / partition, rather than on the /boot partition.</li>
<li>I then completed running the installer.</li>
<li>Going back to the instructions in the guide, I rebooted the system into Ubuntu.</li>
<li>I opened the /boot/grub/menu.lst file and modified it by adding the following at the very bottom:
<div style="padding-left:30px;"><code>title Linux Mint<br />
root (<strong>hd1,6</strong>)<br />
chainloader +1</code></div>
<p>I emboldened some of the text to point out the truly important part to get right. I remember cringing when I first saw this a few years back, and it still doesn&#8217;t look friendly.</p>
<p>Basically, Grub uses different drive and partition identifiers than Linux uses. The first number represents the drive while the second number represents the partition.</p>
<p>Linux starts naming my drives sda, sdb, sdc, etc, Grub starts naming my drives hd0, hd1, hd2, etc. Notice that the letter is now a number and rather than starting at 1, it starts at 0. Similarly, the partitions also start at 0 rather than 1. So in my system, /dev/sdb7 is actually hd1,6 to Grub. You can find a lengthier description at <a href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-grub-terminology.html" target="_blank">Grub Terminology</a>.</li>
<li>After I saved this change, I rebooted, hit ESC to bring up Ubuntu&#8217;s boot menu (you have to do this quickly as it just gives you 3 seconds by default), and selected my new Linux Mint option.</li>
</ol>
<p>That should be the end of the story, but I ran into a problem. When I got to Linux Mint&#8217;s Grub menu and selected a boot option, I received the following error:</p>
<pre style="padding-left:30px;">GRUB Error 22: No such partition</pre>
<p>I was very disheartened when I saw this since problems with boot partition/Grub configuration haunted me during my earliest attempts to run Linux. I decided to power through this problem since I needed to learn how to handle these situations at some point.</p>
<p>I went back to the menu selection screen for Linux Mint, edited the default option (pressed &#8216;e&#8217; while that option was highlighted), and looked at the information. I knew that I had the correct partition, and I double-checked to ensure that I did the count starting at 0 rather than count starting at 1. Everything checked out. I don&#8217;t have any reasoning to explain what I did, but I had a hunch and took a stab at it. I had the following configuration:</p>
<div style="padding-left:30px;"><code>title		Linux Mint, kernel 2.6.24-16-generic<br />
root		<strong>(hd1,6)</strong><br />
kernel		/boot/vmlinuz-2.6.24-16-generic root=/dev/sdb7 ro quiet<br />
initrd		/boot/initrd.img-2.6.24-16-generic</code></div>
<p>I then changed it to the following:</p>
<div style="padding-left:30px;"><code>title		Linux Mint, kernel 2.6.24-16-generic<br />
root		<strong>(hd0,6)</strong><br />
kernel		/boot/vmlinuz-2.6.24-16-generic root=/dev/sdb7 ro quiet<br />
initrd		/boot/initrd.img-2.6.24-16-generic</code></div>
<p>Amazing! It&#8217;s booting up. That&#8217;s when I hit the next major snag. Linux Mint itself failed to load and complained about a missing partition. &#8220;What in the world?&#8221; I thought. I rebooted and edited the boot option again. That&#8217;s when I saw it. The partition was also referenced in the kernel option. So, I made one more change:</p>
<div style="padding-left:30px;"><code>title		Linux Mint, kernel 2.6.24-16-generic<br />
root		(hd0,6)<br />
kernel		/boot/vmlinuz-2.6.24-16-generic root=<strong>/dev/sda7</strong> ro quiet<br />
initrd		/boot/initrd.img-2.6.24-16-generic</code></div>
<p>Note: I removed <code>splash</code> from the end of the <code>kernel</code> option in order to make the data fit nicely on the page.</p>
<p>I booted from this newly-modified set of options, and after a couple of minutes, I was greeted with a friendly login screen. When I logged in, I was very surprised. In the midst of fixing all those boot errors, I forgot what the point of all this was. When the desktop loaded, I was looking at nearly the exact same desktop as I had on Ubuntu. The shared /home partition worked beautifully.</p>
<p>So, what was the problem that I had and why did my fix work? Ubuntu and its Grub loader saw my OS drive as the second drive in the system, so that drive was treated as /dev/sdb (or hd1). However, Linux Mint and its Grub loader saw the same drive as the first drive and named it /dev/sda (or hd0). My hunch was that they somehow saw the drives differently and changed hd1,6 to hd0,6 and /dev/sdb7 to /dev/sda7. I still don&#8217;t know why this is, but I&#8217;m going to keep digging. When I have an answer, I&#8217;ll post it here.</p>
<p>As for Linux Mint, I&#8217;m going to test it out over the next couple of days. Expect to see some posts about it soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjean.com/2009/01/07/dual-boot-ubuntu-and-linux-mint-with-shared-home/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

