<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Linux on Mac Pro with multiple drives</title>
	<atom:link href="http://blog.christophersmart.com/2009/11/27/linux-on-mac-pro-with-multiple-drives/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.christophersmart.com/2009/11/27/linux-on-mac-pro-with-multiple-drives/</link>
	<description>Fortiter Et Recte</description>
	<lastBuildDate>Tue, 18 Jun 2013 04:05:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Chris</title>
		<link>http://blog.christophersmart.com/2009/11/27/linux-on-mac-pro-with-multiple-drives/comment-page-1/#comment-14921</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 31 Mar 2011 09:51:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.christophersmart.com/?p=1551#comment-14921</guid>
		<description><![CDATA[Hi Larry,

Thanks for that, it&#039;s great. I&#039;ve posted it on my blog to give it more exposure and have credited you.

http://blog.christophersmart.com/2011/03/31/linux-on-mac-with-multiple-drives-by-larry-edwards/

-c]]></description>
		<content:encoded><![CDATA[<p>Hi Larry,</p>
<p>Thanks for that, it&#8217;s great. I&#8217;ve posted it on my blog to give it more exposure and have credited you.</p>
<p><a href="http://blog.christophersmart.com/2011/03/31/linux-on-mac-with-multiple-drives-by-larry-edwards/" rel="nofollow">http://blog.christophersmart.com/2011/03/31/linux-on-mac-with-multiple-drives-by-larry-edwards/</a></p>
<p>-c</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ubuntu on Mac with multiple drives &#8211; by Larry Edwards &#171; the blog of Chris</title>
		<link>http://blog.christophersmart.com/2009/11/27/linux-on-mac-pro-with-multiple-drives/comment-page-1/#comment-14920</link>
		<dc:creator>Ubuntu on Mac with multiple drives &#8211; by Larry Edwards &#171; the blog of Chris</dc:creator>
		<pubDate>Thu, 31 Mar 2011 09:48:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.christophersmart.com/?p=1551#comment-14920</guid>
		<description><![CDATA[[...] post about running Linux on a Mac Pro with multiple drives, and had some dramas himself. He kindly posted his findings in a comment on that thread. I&#8217;m re-posting them here for more [...]]]></description>
		<content:encoded><![CDATA[<p>[...] post about running Linux on a Mac Pro with multiple drives, and had some dramas himself. He kindly posted his findings in a comment on that thread. I&#8217;m re-posting them here for more [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Edwards</title>
		<link>http://blog.christophersmart.com/2009/11/27/linux-on-mac-pro-with-multiple-drives/comment-page-1/#comment-14919</link>
		<dc:creator>Larry Edwards</dc:creator>
		<pubDate>Thu, 31 Mar 2011 09:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.christophersmart.com/?p=1551#comment-14919</guid>
		<description><![CDATA[Oh, I mentioned this in the Kubuntu instructions, but in my RHEL6 instructions I forgot to mention that installing the boot loader in either MBR or VBR worked.

-le]]></description>
		<content:encoded><![CDATA[<p>Oh, I mentioned this in the Kubuntu instructions, but in my RHEL6 instructions I forgot to mention that installing the boot loader in either MBR or VBR worked.</p>
<p>-le</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Edwards</title>
		<link>http://blog.christophersmart.com/2009/11/27/linux-on-mac-pro-with-multiple-drives/comment-page-1/#comment-14916</link>
		<dc:creator>Larry Edwards</dc:creator>
		<pubDate>Thu, 31 Mar 2011 08:45:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.christophersmart.com/?p=1551#comment-14916</guid>
		<description><![CDATA[Here&#039;s a short how-to on installing Linux (running under BIOS emulation) on a Mac Pro with multiple disks. I&#039;ve done this with both RHEL6 and Kubuntu 10.10. RHEL6 requires a third party tool, Kubuntu does not.

One thing to note is that fan control under Linux is less sophisticated than under OS X. Under OS X, my Mac Pro is usually almost silent, whereas with both Linux versions, the fans are always quite noticeable, although not as loud as my old Dell PC.

My setup:

	2010 2.66 GHz 12 Core Mac Pro
	4 disks, the disks in the first two drive bays make up a RAID mirror
	Mac OS X 10.6.6 installed on the RAID mirror

Goal: install Linux, in particular RHEL6, on the disk in the 3rd drive bay of my Mac Pro

WARNING: mistakes or errors in the following can cause you to lose all your data. Follow the procedure at your own risk, and backup any and all disks that contain data that matters to you. This worked for me, it may not work for you.


Preliminary Preparation for RHEL6 (you&#039;ll need Xcode installed)
------------------------------------------------

1) Download the rEFIt 0.14 source code:

	http://sourceforge.net/projects/refit/files/rEFIt/0.14/refit-src-0.14.tar.gz/download

2) Move the downloaded tar file to some place reasonable and double-click to extract the archive contents. This should create a refit-src-0.14 directory.

3) Open a terminal and go to the refit-src-0.14/gptsync sub-directory.

4) Compile the source code: make -f Makefile.unix

If you have the 10.4 SDK installed, this will fail and you&#039;ll have to edit Makefile.unix, commenting out lines that refer to:

	/Developer/SDKs/MacOSX10.4u.sdk.

5) This should create two executables:

	gptsync
	showpart

6) Now in the terminal, sudo tcsh (or sudo bash) to get admin privileges, and move the executables to somewhere useful, e.g., /usr/sbin.


Procedure for installing RHEL6
-----------------------

1) Run the &quot;Boot Camp Assistant&quot; app. At the &quot;Create or Remove a Windows Partition&quot; dialog select the disk you will use for Linux, press &quot;Continue&quot; (&quot;Erase and Create a Single Partition for Windows&quot; should be the only possible action) and enter an administrator username/password. When you get to the &quot;Start Windows Installation&quot; dialog, press the &quot;Quit &amp; Install Later&quot; button and exit the program.

Using Boot Camp Assistant is probably not really necessary, everything it does should be possible with &quot;diskutil&quot; and &quot;gpt&quot; command line tools. I use it because it quickly puts the disk in a known correct state.

2) Run the &quot;Disk Utility&quot; app. Select the disk you just initialized with Boot Camp Assistant and select and delete the large Windows MS-DOS (FAT) partition.

At this point you have two options, one: 1) use the Disk Utility app (or diskutil command line tool) to create the desired partition layout for Linux, or 2) create the partition layout within the Linux installer. I assume the latter in the following.

3) Reboot, booting off the RHEL6 installation disk (I used a DVD).

4) Proceed with the installation and when it comes time to partition the disk, choose &quot;Create Custom Layout&quot;. In the free space on your intended Linux disk, create the desired partition layout. I&#039;ve had success with a Linux+swap partition layout (i.e., &quot;/&quot; and swap), a boot+Linux+swap layout, and LVM.

5) When the RHEL6 installation is finished, reboot into Mac OS X.

6) Open a terminal and sudo tcsh or sudo bash to get admin privileges. To determine which device is associated with your Linux disk, run:

	diskutil list

Note: the device associated with a specific disk changes across reboots in Mac OS X!

From the commandline run:

	gptsync /dev/diskN

where /dev/diskN is the device associated your Linux disk. If you created a Linux+swap partition layout you should see output similar to:

	Current GPT partition table:
 	#      Start LBA      End LBA  Type
 	1             40       409639  EFI System (FAT)
 	2         411648   3848329215  Basic Data
 	3     3848329216   3907028991  Linux Swap

	Current MBR partition table:
	 # A    Start LBA      End LBA  Type
	 1              1   3907029167  ee  EFI Protective

	Status: MBR table must be updated.

	Proposed new MBR partition table:
	 # A    Start LBA      End LBA  Type
	 1              1       409639  ee  EFI Protective
	 2 *       411648   3848329215  83  Linux
	 3     3848329216   3907028991  82  Linux swap / Solaris

	May I update the MBR as printed above? [y/N]

Type &#039;y&#039; and hit return.

That&#039;s it. Your Linux disk should now be an option appearing as &quot;Windows&quot; when you hold down the option key on boot.

NOTE: I occasionally experience a hang after selecting the RHEL6 disk and initiating the boot. There is a short amount of disk activity, and then nothing. The grey screen with the disk icons remains up. I&#039;ve never seen this with Kubuntu, just RHEL6. RHEL6 uses an older GRUB version, so possibly a GRUB bug, although I see a similar problem mentioned in forums on dual booting Windows on Macs (e.g., http://www.insanelymac.com/forum/index.php?showtopic=201737)


Procedure for installing Kubuntu/Ubuntu 10.10
-------------------------------------

For Kubuntu/Ubuntu installation, you don&#039;t need the rEFIt gptsync. The following describes a Kubuntu 10.10 install, I assume Ubuntu 10.10 is essentially identical.

1) Initialize the Linux disk as with RHEL6, but after you delete the Windows partition created by the Boot Camp Assistant app, in the Disk Utility app, create the desired Linux partition layout in the free space. I&#039;ve only tried a Linux+swap layout, but others should work. I usually select the ExFat format for the partitions because that seems to allow more flexibility in sizing than, say, MS-DOS FAT (the format shouldn&#039;t be critical since it will be changed below). Alternatively, use the diskutil command line tool to create the partition layout.

2) Reboot using the Kubuntu 10.10 install disk and proceed with the installation.

3) At the &quot;Allocate drive space&quot; dialog, select &quot;Specify partitions manually (advanced)&quot;

4) In the &quot;Prepare partitions&quot; dialog, look for the Linux drive. It should contain a small ~200MB EFI partition followed by the Linux and swap partitions you created.

5) Select the partition you want to use as the main Linux partition. A small &quot;Edit Partition&quot; dialog should pop up. Select &quot;Ext4&quot; from the &quot;Use as:&quot; menu, press the &quot;Format the partition&quot; check-box, and the mount point should be /.

6) Select the partition you want to use as swap. In the &quot;Edit partition&quot; dialog, select &quot;swap area&quot; as the &quot;Use as:&quot; choice.

7) Back at the Prepare partitions&quot; dialog, select the &quot;Device for boot loader installation&quot;. You can choose the disk device, for Master Boot Record (MBR) installation or the Linux partition device for Volume Boot Record (VBR) installation (both seem to work, I usually use the MBR). For example, if your Linux disk is /dev/sdb and your Linux partition is /dev/sdb2, choose the /dev/sdb for MBR installation, /dev/sdb2 for VBR. Then press the &quot;Install Now&quot; button.

8) Continue with the installation till done, and reboot.

That&#039;s it. Your Linux disk should now be an option appearing as &quot;Windows&quot; when you hold down the option key on boot.]]></description>
		<content:encoded><![CDATA[<p>Here&#8217;s a short how-to on installing Linux (running under BIOS emulation) on a Mac Pro with multiple disks. I&#8217;ve done this with both RHEL6 and Kubuntu 10.10. RHEL6 requires a third party tool, Kubuntu does not.</p>
<p>One thing to note is that fan control under Linux is less sophisticated than under OS X. Under OS X, my Mac Pro is usually almost silent, whereas with both Linux versions, the fans are always quite noticeable, although not as loud as my old Dell PC.</p>
<p>My setup:</p>
<p>	2010 2.66 GHz 12 Core Mac Pro<br />
	4 disks, the disks in the first two drive bays make up a RAID mirror<br />
	Mac OS X 10.6.6 installed on the RAID mirror</p>
<p>Goal: install Linux, in particular RHEL6, on the disk in the 3rd drive bay of my Mac Pro</p>
<p>WARNING: mistakes or errors in the following can cause you to lose all your data. Follow the procedure at your own risk, and backup any and all disks that contain data that matters to you. This worked for me, it may not work for you.</p>
<p>Preliminary Preparation for RHEL6 (you&#8217;ll need Xcode installed)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>1) Download the rEFIt 0.14 source code:</p>
<p>	<a href="http://sourceforge.net/projects/refit/files/rEFIt/0.14/refit-src-0.14.tar.gz/download" rel="nofollow">http://sourceforge.net/projects/refit/files/rEFIt/0.14/refit-src-0.14.tar.gz/download</a></p>
<p>2) Move the downloaded tar file to some place reasonable and double-click to extract the archive contents. This should create a refit-src-0.14 directory.</p>
<p>3) Open a terminal and go to the refit-src-0.14/gptsync sub-directory.</p>
<p>4) Compile the source code: make -f Makefile.unix</p>
<p>If you have the 10.4 SDK installed, this will fail and you&#8217;ll have to edit Makefile.unix, commenting out lines that refer to:</p>
<p>	/Developer/SDKs/MacOSX10.4u.sdk.</p>
<p>5) This should create two executables:</p>
<p>	gptsync<br />
	showpart</p>
<p>6) Now in the terminal, sudo tcsh (or sudo bash) to get admin privileges, and move the executables to somewhere useful, e.g., /usr/sbin.</p>
<p>Procedure for installing RHEL6<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>1) Run the &#8220;Boot Camp Assistant&#8221; app. At the &#8220;Create or Remove a Windows Partition&#8221; dialog select the disk you will use for Linux, press &#8220;Continue&#8221; (&#8220;Erase and Create a Single Partition for Windows&#8221; should be the only possible action) and enter an administrator username/password. When you get to the &#8220;Start Windows Installation&#8221; dialog, press the &#8220;Quit &amp; Install Later&#8221; button and exit the program.</p>
<p>Using Boot Camp Assistant is probably not really necessary, everything it does should be possible with &#8220;diskutil&#8221; and &#8220;gpt&#8221; command line tools. I use it because it quickly puts the disk in a known correct state.</p>
<p>2) Run the &#8220;Disk Utility&#8221; app. Select the disk you just initialized with Boot Camp Assistant and select and delete the large Windows MS-DOS (FAT) partition.</p>
<p>At this point you have two options, one: 1) use the Disk Utility app (or diskutil command line tool) to create the desired partition layout for Linux, or 2) create the partition layout within the Linux installer. I assume the latter in the following.</p>
<p>3) Reboot, booting off the RHEL6 installation disk (I used a DVD).</p>
<p>4) Proceed with the installation and when it comes time to partition the disk, choose &#8220;Create Custom Layout&#8221;. In the free space on your intended Linux disk, create the desired partition layout. I&#8217;ve had success with a Linux+swap partition layout (i.e., &#8220;/&#8221; and swap), a boot+Linux+swap layout, and LVM.</p>
<p>5) When the RHEL6 installation is finished, reboot into Mac OS X.</p>
<p>6) Open a terminal and sudo tcsh or sudo bash to get admin privileges. To determine which device is associated with your Linux disk, run:</p>
<p>	diskutil list</p>
<p>Note: the device associated with a specific disk changes across reboots in Mac OS X!</p>
<p>From the commandline run:</p>
<p>	gptsync /dev/diskN</p>
<p>where /dev/diskN is the device associated your Linux disk. If you created a Linux+swap partition layout you should see output similar to:</p>
<p>	Current GPT partition table:<br />
 	#      Start LBA      End LBA  Type<br />
 	1             40       409639  EFI System (FAT)<br />
 	2         411648   3848329215  Basic Data<br />
 	3     3848329216   3907028991  Linux Swap</p>
<p>	Current MBR partition table:<br />
	 # A    Start LBA      End LBA  Type<br />
	 1              1   3907029167  ee  EFI Protective</p>
<p>	Status: MBR table must be updated.</p>
<p>	Proposed new MBR partition table:<br />
	 # A    Start LBA      End LBA  Type<br />
	 1              1       409639  ee  EFI Protective<br />
	 2 *       411648   3848329215  83  Linux<br />
	 3     3848329216   3907028991  82  Linux swap / Solaris</p>
<p>	May I update the MBR as printed above? [y/N]</p>
<p>Type &#8216;y&#8217; and hit return.</p>
<p>That&#8217;s it. Your Linux disk should now be an option appearing as &#8220;Windows&#8221; when you hold down the option key on boot.</p>
<p>NOTE: I occasionally experience a hang after selecting the RHEL6 disk and initiating the boot. There is a short amount of disk activity, and then nothing. The grey screen with the disk icons remains up. I&#8217;ve never seen this with Kubuntu, just RHEL6. RHEL6 uses an older GRUB version, so possibly a GRUB bug, although I see a similar problem mentioned in forums on dual booting Windows on Macs (e.g., <a href="http://www.insanelymac.com/forum/index.php?showtopic=201737" rel="nofollow">http://www.insanelymac.com/forum/index.php?showtopic=201737</a>)</p>
<p>Procedure for installing Kubuntu/Ubuntu 10.10<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>For Kubuntu/Ubuntu installation, you don&#8217;t need the rEFIt gptsync. The following describes a Kubuntu 10.10 install, I assume Ubuntu 10.10 is essentially identical.</p>
<p>1) Initialize the Linux disk as with RHEL6, but after you delete the Windows partition created by the Boot Camp Assistant app, in the Disk Utility app, create the desired Linux partition layout in the free space. I&#8217;ve only tried a Linux+swap layout, but others should work. I usually select the ExFat format for the partitions because that seems to allow more flexibility in sizing than, say, MS-DOS FAT (the format shouldn&#8217;t be critical since it will be changed below). Alternatively, use the diskutil command line tool to create the partition layout.</p>
<p>2) Reboot using the Kubuntu 10.10 install disk and proceed with the installation.</p>
<p>3) At the &#8220;Allocate drive space&#8221; dialog, select &#8220;Specify partitions manually (advanced)&#8221;</p>
<p>4) In the &#8220;Prepare partitions&#8221; dialog, look for the Linux drive. It should contain a small ~200MB EFI partition followed by the Linux and swap partitions you created.</p>
<p>5) Select the partition you want to use as the main Linux partition. A small &#8220;Edit Partition&#8221; dialog should pop up. Select &#8220;Ext4&#8243; from the &#8220;Use as:&#8221; menu, press the &#8220;Format the partition&#8221; check-box, and the mount point should be /.</p>
<p>6) Select the partition you want to use as swap. In the &#8220;Edit partition&#8221; dialog, select &#8220;swap area&#8221; as the &#8220;Use as:&#8221; choice.</p>
<p>7) Back at the Prepare partitions&#8221; dialog, select the &#8220;Device for boot loader installation&#8221;. You can choose the disk device, for Master Boot Record (MBR) installation or the Linux partition device for Volume Boot Record (VBR) installation (both seem to work, I usually use the MBR). For example, if your Linux disk is /dev/sdb and your Linux partition is /dev/sdb2, choose the /dev/sdb for MBR installation, /dev/sdb2 for VBR. Then press the &#8220;Install Now&#8221; button.</p>
<p>8) Continue with the installation till done, and reboot.</p>
<p>That&#8217;s it. Your Linux disk should now be an option appearing as &#8220;Windows&#8221; when you hold down the option key on boot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.christophersmart.com/2009/11/27/linux-on-mac-pro-with-multiple-drives/comment-page-1/#comment-14601</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 24 Mar 2011 22:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.christophersmart.com/?p=1551#comment-14601</guid>
		<description><![CDATA[Great! Well done :-) If you post what you did here, I can put it up the top in the main post.

-c]]></description>
		<content:encoded><![CDATA[<p>Great! Well done <img src='http://blog.christophersmart.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  If you post what you did here, I can put it up the top in the main post.</p>
<p>-c</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Edwards</title>
		<link>http://blog.christophersmart.com/2009/11/27/linux-on-mac-pro-with-multiple-drives/comment-page-1/#comment-14595</link>
		<dc:creator>Larry Edwards</dc:creator>
		<pubDate>Thu, 24 Mar 2011 20:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.christophersmart.com/?p=1551#comment-14595</guid>
		<description><![CDATA[Halle-friggin-lujah! I booted up in RHEL6 installed on the 3rd drive of my Mac Pro this morning using BIOS emulation.

I didn&#039;t actually have to re-install GRUB, there still were some minor mods to the MBR partition table I had to make using dd due to a buggy (or maybe non-Mac appropriate) version of gptsync.

Bottom line is that RHEL/Fedora has a parted (or installer) bug that screws up the GPT, and you need to use the version of gptsync in rEFIt after you fix the GPT… In particular, do not use the &quot;enhanced&quot; version referred to in an insanely mac forum:

http://www.mediafire.com/file/jizonwxymzr/gptsync-0.2.pkg.zip

I want to find the minimal procedure to do this, will post in the next couple of days.

-le]]></description>
		<content:encoded><![CDATA[<p>Halle-friggin-lujah! I booted up in RHEL6 installed on the 3rd drive of my Mac Pro this morning using BIOS emulation.</p>
<p>I didn&#8217;t actually have to re-install GRUB, there still were some minor mods to the MBR partition table I had to make using dd due to a buggy (or maybe non-Mac appropriate) version of gptsync.</p>
<p>Bottom line is that RHEL/Fedora has a parted (or installer) bug that screws up the GPT, and you need to use the version of gptsync in rEFIt after you fix the GPT… In particular, do not use the &#8220;enhanced&#8221; version referred to in an insanely mac forum:</p>
<p><a href="http://www.mediafire.com/file/jizonwxymzr/gptsync-0.2.pkg.zip" rel="nofollow">http://www.mediafire.com/file/jizonwxymzr/gptsync-0.2.pkg.zip</a></p>
<p>I want to find the minimal procedure to do this, will post in the next couple of days.</p>
<p>-le</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.christophersmart.com/2009/11/27/linux-on-mac-pro-with-multiple-drives/comment-page-1/#comment-14571</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 24 Mar 2011 09:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.christophersmart.com/?p=1551#comment-14571</guid>
		<description><![CDATA[So you probably need to install grub to the /boot partition (not the MBR), but you could try both.

Fedora doesn&#039;t use grub version 2.

-c]]></description>
		<content:encoded><![CDATA[<p>So you probably need to install grub to the /boot partition (not the MBR), but you could try both.</p>
<p>Fedora doesn&#8217;t use grub version 2.</p>
<p>-c</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Edwards</title>
		<link>http://blog.christophersmart.com/2009/11/27/linux-on-mac-pro-with-multiple-drives/comment-page-1/#comment-14561</link>
		<dc:creator>Larry Edwards</dc:creator>
		<pubDate>Thu, 24 Mar 2011 08:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.christophersmart.com/?p=1551#comment-14561</guid>
		<description><![CDATA[Ok, finally made a little progress... was able to use gdisk &amp; gptsync to mod the GPT/MBR hybrid so the Linux disk shows up at the Mac boot option screen. Still won&#039;t boot, but at least I see the disk, so I&#039;m thinking now I just need to reinstall the boot loading code (maybe use GRUB2?).

The issue with the disk not showing up was a perfect storm of bugs, OS X quirks, and my not fully understanding what the tools were doing (e.g., I didn&#039;t realize that some of the things I was doing in gdisk wiped out the boot code in the MBR). In the end, all I needed to do was use gdisk to set the type and attributes of the partitions, and then do:

gptsync -n /dev/diskX 2+ 3

and the disk showed up at boot time. Now if I can get the thing to actually boot...

-le]]></description>
		<content:encoded><![CDATA[<p>Ok, finally made a little progress&#8230; was able to use gdisk &amp; gptsync to mod the GPT/MBR hybrid so the Linux disk shows up at the Mac boot option screen. Still won&#8217;t boot, but at least I see the disk, so I&#8217;m thinking now I just need to reinstall the boot loading code (maybe use GRUB2?).</p>
<p>The issue with the disk not showing up was a perfect storm of bugs, OS X quirks, and my not fully understanding what the tools were doing (e.g., I didn&#8217;t realize that some of the things I was doing in gdisk wiped out the boot code in the MBR). In the end, all I needed to do was use gdisk to set the type and attributes of the partitions, and then do:</p>
<p>gptsync -n /dev/diskX 2+ 3</p>
<p>and the disk showed up at boot time. Now if I can get the thing to actually boot&#8230;</p>
<p>-le</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Edwards</title>
		<link>http://blog.christophersmart.com/2009/11/27/linux-on-mac-pro-with-multiple-drives/comment-page-1/#comment-14425</link>
		<dc:creator>Larry Edwards</dc:creator>
		<pubDate>Tue, 22 Mar 2011 23:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.christophersmart.com/?p=1551#comment-14425</guid>
		<description><![CDATA[Thanks Chris, I&#039;ve spent a bit of time staring at the wikipedia entries on MBRs and GPTs, also did some hexdumps of the disk to see what is really going on after RHEL6 and Kubuntu installs. More later, but the MBRs are identical except for what looks like one byte before the GRUB code, and a few bytes after in the partition table. I also did a hexdump of the first 512 bytes of the EFI partition after the Kubuntu install, and it looks like there&#039;s some sort of boot relevant stuff in there.

Also, it seems that Kubuntu 10.10 uses Grub 2, whereas RHEL6 still uses Grub 1 and it&#039;s not clear whether they have some of the Mac specific things that Ubuntu does.

Learning more than I ever wanted to know about MBRs &amp; GPTs...

-le]]></description>
		<content:encoded><![CDATA[<p>Thanks Chris, I&#8217;ve spent a bit of time staring at the wikipedia entries on MBRs and GPTs, also did some hexdumps of the disk to see what is really going on after RHEL6 and Kubuntu installs. More later, but the MBRs are identical except for what looks like one byte before the GRUB code, and a few bytes after in the partition table. I also did a hexdump of the first 512 bytes of the EFI partition after the Kubuntu install, and it looks like there&#8217;s some sort of boot relevant stuff in there.</p>
<p>Also, it seems that Kubuntu 10.10 uses Grub 2, whereas RHEL6 still uses Grub 1 and it&#8217;s not clear whether they have some of the Mac specific things that Ubuntu does.</p>
<p>Learning more than I ever wanted to know about MBRs &amp; GPTs&#8230;</p>
<p>-le</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.christophersmart.com/2009/11/27/linux-on-mac-pro-with-multiple-drives/comment-page-1/#comment-14316</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 21 Mar 2011 10:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.christophersmart.com/?p=1551#comment-14316</guid>
		<description><![CDATA[So your drive needs some kind of partition table. Usually PCs use the msdos partition table (sometimes called mbr table), but that has lots of limitations (like max 4 partitions, max partition size of 2TB).

There&#039;s a more modern partition table, GPT, which doesn&#039;t have these limitations. That&#039;s what Macs use. Macs also don&#039;t have a BIOS, they have an EFI.

However, the EFI in Macs have a &quot;fake&quot; MBR table too, so they can really pretend to be a BIOS and boot a MBR partitioned drive (except for the Xserves, which do not).

The master boot record is the first 446 bytes of a drive, and where you install the boot loader on a PC. When you boot, this gets executed and you get a boot prompt.

So, your drive will only be configured one way or the other. Either GPT, or MBR. Your BIOS/EFI will then boot it (if it supports the type).

You can use parted to create a new GPT partition table (will make your data in accessible).

parted /dev/sdX
mklabel gpt
quit

Hope that helps :-)]]></description>
		<content:encoded><![CDATA[<p>So your drive needs some kind of partition table. Usually PCs use the msdos partition table (sometimes called mbr table), but that has lots of limitations (like max 4 partitions, max partition size of 2TB).</p>
<p>There&#8217;s a more modern partition table, GPT, which doesn&#8217;t have these limitations. That&#8217;s what Macs use. Macs also don&#8217;t have a BIOS, they have an EFI.</p>
<p>However, the EFI in Macs have a &#8220;fake&#8221; MBR table too, so they can really pretend to be a BIOS and boot a MBR partitioned drive (except for the Xserves, which do not).</p>
<p>The master boot record is the first 446 bytes of a drive, and where you install the boot loader on a PC. When you boot, this gets executed and you get a boot prompt.</p>
<p>So, your drive will only be configured one way or the other. Either GPT, or MBR. Your BIOS/EFI will then boot it (if it supports the type).</p>
<p>You can use parted to create a new GPT partition table (will make your data in accessible).</p>
<p>parted /dev/sdX<br />
mklabel gpt<br />
quit</p>
<p>Hope that helps <img src='http://blog.christophersmart.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
