<?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>Zemm&#039;s Code Closet</title>
	<atom:link href="http://cadetzemm.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cadetzemm.com</link>
	<description>Another blog fulla nerd stuff</description>
	<lastBuildDate>Tue, 06 Jul 2010 05:28:44 +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>The Lynx, The Leopard, and The MBP Part 2</title>
		<link>http://cadetzemm.com/2010/06/the-lynx-the-leopard-and-the-mbp-part-2/</link>
		<comments>http://cadetzemm.com/2010/06/the-lynx-the-leopard-and-the-mbp-part-2/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 17:34:24 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[dual boot]]></category>
		<category><![CDATA[Grub 2]]></category>
		<category><![CDATA[Lucid Lynx]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[rEFIt]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://cadetzemm.com/?p=8</guid>
		<description><![CDATA[So with partition plans in hand from the previous post I reboot using my Snow Leopard DVD and using this post as a guideline I repartition the HDD into 4 partitions then resize them accordingly. The first partition is formatted as OSX Extended with Journaling enabled with a size of 50GB, which is to house [...]]]></description>
			<content:encoded><![CDATA[<p>So with <a href="/?p=5">partition plans</a> in hand from the <a href="/?p=5">previous post</a> I reboot using my Snow Leopard DVD and using <a href="http://lajosd.blogspot.com/2009/11/reinstall-osx-and-re-partition-from.html">this post</a> as a guideline I repartition the HDD into 4 partitions then resize them accordingly. The first partition is formatted as OSX Extended with Journaling enabled with a size of 50GB, which is to house the OSX install. The second partition is set OSX Extended with Journaling <strong>dis</strong>abled and a size of 240GB, which is to house all of the shared data. The third and fourth partitions need to be 25GB and 5GB respectively but both will be set up by the Ubuntu install so for now they get formatted as msdos/fat partitions. Then I continue with the install stripping out any optional fluff I can find (Printer Drivers and extra languages namely) and let the install go. Thought I&#8217;d note here that after the install was done and all the latest updates applied the Snow Leopard install took up about 12GB, but I plan on installing XCode later which will take up a good sized chunk. I also wanted to use <a href="http://refit.sourceforge.net/">rEFIt</a> rather than having to hold down the alt key anytime I reboot to get to my Ubuntu install (given that I&#8217;d like to use it as the default), so I ran the Installer Package for that before rebooting to do the Ubuntu install.</p>
<p>After that it&#8217;s time to reboot using the Live CD and this time choose &#8220;Install Ubuntu 10.04&#8243;. Again, using <a href="http://lajosd.blogspot.com/2009/11/install-ubuntu-910-karmic-koala-on.html">this article</a> as a guideline I go through the install of Ubuntu. Nothin&#8217; fancy during the install process except for the partitioning, which I chose to do manually. The only things that need to be modified are the last two partitions. The 25GB one should be set as Ext4 for its type and should be flagged to be formatted and mounted at &#8220;/&#8221;. The 5GB one should be set to &#8220;Use as: Swap&#8221;. Other than that it&#8217;s defaults all the way down.</p>
<p><a href="http://cadetzemm.com/wp-content/uploads/2010/06/DiskUtil.png"><img src="http://cadetzemm.com/wp-content/uploads/2010/06/DiskUtil-300x211.png" alt="" title="DiskUtil" width="300" height="211" class="alignnone size-medium wp-image-9" /><br />DiskUtil after both installs have been completed</a></p>
<p>After that install finishes, I&#8217;m able to boot into either OS just fine and I get a nice little GUI splash screen to pick which one I want to boot to each time I reboot. I like that, but I want the auto boot timeout to be a bit quicker, so I boot into OSX and
<pre>sudo vim /efi/refit.conf</pre>
<p> and change the first line there to
<pre>timeout 3</pre>
<p> I also want Linux to be the default OS so I go to the bottom of the file and change the <code>default_selection</code> to
<pre>default_selection L</pre>
<p>Now I want to set up the shared partition so that both OSX and Ubuntu can have symlinks set up to point to the same data, residing on the shared partition. Here&#8217;s my basic process for this.</p>
<ol>
<li>Mount the drive in Ubuntu (see <a href="http://lajosd.blogspot.com/2010/03/configuring-ubuntu-to-mount-shared-hfs.html">here</a> for help with that)</li>
<li>Create the User folder and all of the subfolders that will need to be shared (Documents, Music, Pictures, etc) on the Shared drive.</li>
<li>Delete the corresponding folders in ~ (making sure to move anything from them to their shared equivalent first)</li>
<li>Create the symlinks in ~ to replace them:
<pre>ln -s /mnt/shared/rarana/Documents ~</pre>
</li>
</ol>
<p>After this I had some problems with permissions due to the OSX user and the Ubuntu user having different UID&#8217;s. <a href="http://www.australianguy.com/2010/05/change-your-ubuntu-users-uid-to-501-os-x-uid/">This article</a> took care of that for me. Basically I had to go force Ubuntu to assign my user the UID and GID that the default OSX user uses (501:20).</p>
<p>The last thing I want to take care of while still in Ubuntu is GRUB. It sucks that when I pick Linux in rEFIt, it then sends me to the MBR Partition which I then get a GRUB prompt and have to choose Linux a second time. Since I know that everytime I choose this partition I&#8217;m going to be booting into Ubuntu, I want GRUB to shut up and leave me alone. To make that happen:
<pre>sudo vim /etc/default/grub</pre>
<p> and make sure these 3 lines read like this:</p>
<pre>
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
</pre>
<p>noting that the hidden timeout line has been <strong>un</strong>commented. Then
<pre>sudo vim /etc/grub.d/30_os-prober</pre>
<p> and comment out the if statement:
<pre> if [ "x${found_other_os}" = "x" ] ; then</pre>
<p> and its corresponding fi (hint: its the outermost if statement in the adjust_timeout() function).</p>
<p>After saving that file run
<pre>sudo update-grub</pre>
<p> to generate a new Grub Config file.</p>
<p>After that the only thing left to do for now is boot into OSX and replace the User&#8217;s folders with symlinks to the Shared Partition (which should already be mounted automatically).</p>
<p>Next time I&#8217;ll talk about some minor tweaks to getting things running the way I&#8217;m used to and probably porting over all my backed up data.</p>
<h3>Helpful Links</h3>
<ul>
<li><a href="http://ubuntu-tutorials.com/2007/05/03/make-ubuntu-the-default-boot-on-a-macbook-refit-dual-boot-system/">Make Ubuntu the Default boot on a MacBook rEFIt Dual Boot System</a></li>
<li><a href="https://help.ubuntu.com/community/Grub2">Grub2 Community Documentation</a></li>
<li><a href="http://ubuntuforums.org/showthread.php?t=1287602">Grub 2 Tweaks Thread</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://cadetzemm.com/2010/06/the-lynx-the-leopard-and-the-mbp-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Lynx, The Leopard, and The MBP Part 1</title>
		<link>http://cadetzemm.com/2010/06/the-lynx-the-leopard-and-the-mbp-part-1/</link>
		<comments>http://cadetzemm.com/2010/06/the-lynx-the-leopard-and-the-mbp-part-1/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 07:24:26 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[dual boot]]></category>
		<category><![CDATA[Lucid Lynx]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://cadetzemm.com/?p=5</guid>
		<description><![CDATA[So I&#8217;m a total &#8216;nix newb and it&#8217;s high time I resolved that. And the only way I can think of to do so is to put it on my everyday use machine in a way that I can make myself use it everyday as my main OS. So I&#8217;ve done my research and I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;m a total &#8216;nix newb and it&#8217;s high time I resolved that. And the only way I can think of to do so is to put it on my everyday use machine in a way that I can make myself use it everyday as my main OS. So I&#8217;ve done my research and I&#8217;m going to dual boot my MBP with Ubuntu 10.04 Lucid Lynx (64-bit desktop version) with OSX 10.6 Snow Leopard. I&#8217;m going to set up a shared partition which will hold all of my data (Music, Pictures, Movies, Code, etc) which will be accessible (read/write) from both OS&#8217;s, and I will give Ubuntu an honest try and only boot into OSX when absolutely necessary. I figured this adventure would be a good time to start the ol&#8217; blog back up (rather, start it anew since I lost all my old posts :P ) and document my journey for posterity and all that.</p>
<p>So to start, some information about what I&#8217;ve got currently. I&#8217;m using a Macbook Pro 5,1 (found by running
<pre>sysctl hw.model</pre>
<p> from a Terminal in OSX) 2.8GHz Core2 Duo, 4GB RAM with a 320GB HDD, with about 200GB of it currently used. First step, of course, is to back that up so I can get back to what I&#8217;ve got if I muff this whole thing up. After that I&#8217;ll burn a cd with <a href=http://www.ubuntu.com/desktop/get-ubuntu/download" target="_blank">Ubuntu 10.04 LTS 64-bit Desktop</a> and boot into Ubuntu from the Live CD to verify there&#8217;s no glaring hardware/driver issues and that this whole thing might be worth doing.</p>
<p>Next I&#8217;ll need to take inventory of what all that data is so I can figure out how much space to give each of my partitions. So browsing through my disk I find the following:</p>
<ul>
<li>/Applications &#8211; 4.5GB</li>
<li>/Developer &#8211; 7.9GB</li>
<li>/Library &#8211; 9.2GB</li>
<li>/System &#8211; 4.8GB</li>
<li>/Users/rarana &#8211; 177.2GB
<ul>
<li>~/Documents &#8211; 23.2GB</li>
<li>~/Library &#8211; 23.4GB
<ul>
<li>~/Library/MobileSync &#8211; 2.3GB</li>
<li>~/Library/Caches &#8211; 709MB</li>
<li>~/Library/iTunes &#8211; 702MB</li>
<li>~/Library/Steam &#8211; 17.9GB</li>
</ul>
</li>
<li>~/Movies &#8211; 5GB</li>
<li>~/Music &#8211; 110.5GB</li>
<li>~/Pictures &#8211; 11GB</li>
</ul>
</li>
</ul>
<p>The OSX partition will need to have enough room for <code>/Applications</code>, <code>/Developer</code>, <code>/Library</code>, and <code>/System</code>. The Applications folder should shrink a bit in size as when I do the fresh install I&#8217;ll be trimming some fat. Probably by about the amount that the <code>~/Library</code> folder will add to it (Steam will probably not be added, at least not with all of the games I have installed there currently, which drops the size of that folder by 17GB). So, around 26GB for that partition to hold what it currently holds. With a 320GB HDD, I&#8217;d like to be able to give it plenty of padding so I&#8217;ll call that one at about 45GB.</p>
<p>The <a href="https://help.ubuntu.com/community/Installation/SystemRequirements" target="_blank">System Requirements</a> for Ubuntu 10.04 say it should take about 15GB, again I&#8217;d like to give myself some padding so I&#8217;ll give it 25GB. Ubuntu also needs a swap partition, which, since I have 4GB of RAM, 5GB should be more than sufficient.</p>
<p>The shared partition will need to contain <code>~/Documents</code>, <code>~/Movies</code>, <code>~/Music</code>, and <code>~/Pictures</code>, as well as about 4GB of code and data that I have spread across several folders that I didn&#8217;t want to list out. So that&#8217;s about 153GB that will need to go to the shared partition at least. With 75GB taken by the two OS&#8217;s I&#8217;m left with 245GB so that should cover it :)</p>
<p>With my data all backed up and partitioning all planned out, I&#8217;m off to go make it happen. Check out the <a href="/?p=8">next post</a> to see my notes on actually implementing these plans.</p>
<h3>Useful Links</h3>
<ul>
<li><a href="https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation" target="_blank">Mactel Support Team &#8211; AppleIntelInstallation</a></li>
<li>1) <a href="http://lajosd.blogspot.com/2009/11/dual-booting-osx-and-ubuntu-without.html" target="_blank">Dual booting OSX and Ubuntu on a MacBookPro</a>, 2)<a href="http://lajosd.blogspot.com/2009/11/reinstall-osx-and-re-partition-from.html" target="_blank">Reinstall OSX and Repartition From Scratch</a>, 3) <a href="http://lajosd.blogspot.com/2009/11/install-ubuntu-910-karmic-koala-on.html" target="_blank">Install Ubuntu 9.10</a>, 4) <a href="http://lajosd.blogspot.com/2010/03/configuring-ubuntu-to-mount-shared-hfs.html">Configuring Ubuntu to Mount a Shared HFS+ Partition</a></li>
<li><a href="http://www.bit-tech.net/bits/2007/10/16/64-bit_more_than_just_the_ram" target="_blank">64-bit: More than just the RAM</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://cadetzemm.com/2010/06/the-lynx-the-leopard-and-the-mbp-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

