PDA

View Full Version : Will this work? Adding Mac OSX to GRUB.


WinLinMac01
04-11-2008, 02:50 PM
Okay, I've decided to install Windows Vista, Mac OSX Leopard, and on top of them, Sabayon Linux with GRUB Bootloader. If GRUB fails to add Mac OSX to its boot list, can I add the following below to the grub.conf file to make Mac OSX bootable?

Below is the script-

title Mac OSX Leopard
root (hd0,1)
chainloader +1

Change root(hd0,1) with your OSX86 partition!

Please let me know. Thank you to all! I am also planning to stick with a MBR Partition Table and install Sabayon in one whole partition. I am installing these three O/S's on a single hard drive.

WinLinMac01
04-11-2008, 02:51 PM
Users have also stated that the following simply works:

title Mac OSX Leopard
chainloader /etc/chain0

Is this true?

This will be my install order- Mac OSX-->Windows Vista--> Sabayon Linux--> Edit GRUB, and then all set to go.

farcaller
04-11-2008, 05:52 PM
To make GRUB boot OSX do the following.

First grab pc_efi_v80 (google for it)
copy boot_v8 to something like /boot/efi
Update your GRUB with:
title MacOS X
rootnoverify(hd0,3)
makeactive
kernel (hd0,1)/efi

where (hd0,3) is your OSX partition (I hope your OSX is already MBR) and (hd0,1) is your linux /boot partition (or / if you don't have separate /boot. Fix the path too in this case).
Windows is more simple:
title Windows XP SP2
rootnoverify (hd0,0)
makeactive
chainloader +1

where (hd0,0) is your windows partition.

farcaller
04-11-2008, 05:54 PM
btw, Tiger is ok with same setup as Windows

monsieur.d
04-12-2008, 12:20 AM
If you install linux on a different disk, you may not need to copy the efi_v8 file to the /boot/grub.

I have a triple boot Mac OS X, Win XP, Ubuntu 8.04 and my entry for Mac OS X (with EFI/Vanilla) is

<pre>
title Mac OS X 10.5.2 Leopard
root (hd1,0)
makeactive
chainloader +1
</pre>

monsieur.d
04-12-2008, 12:22 AM
By the way, this code goes into the file /boot/grub/menu.lst

WinLinMac01
04-12-2008, 05:43 AM
Yep, I know that, thanks. Have you tried this on the same disk? Also, how would go about on installing Mac OSX? Should I install that before Windows Vista or afterwards?

monsieur.d:By the way, this code goes into the file /boot/grub/menu.lst

monsieur.d
04-12-2008, 01:06 PM
I am sorry, but I donīt know how to do it with the three systems on the same disk.

Hopefully, someone who did it will help...

D.

Ianxxx
04-12-2008, 01:20 PM
I'm interested in this too, I want to get windows xp and osx running on the same disk. I understand I will have to use mbr, and I don't mind using fat32 for windows. But how do I get them all installed?
I can install osx and make a fat32 partition, but then how do I get xp on to it? Will it work if I copy it from another disk using diskutil restore?

monsieur.d
04-13-2008, 04:46 PM
You might want to check this website:
http://www.digitmemo.com/articles/658/howto-the-complete-mac-leopard-installation-and-windows-multi-boot-setup-guide/

D.

matheteou
04-14-2008, 09:27 AM
I believe you need to install Windows first if you are limited to one disk. Then you could do Linux followed by OS X.

WinLinMac01
04-15-2008, 01:53 AM
SOLUTION for Dual/Triple booting Mac OS X, Windows, Linux, on the same Hard Drive- By: WinLinMac01
This tutorial is subject to future revisions by WinLinMac01
===========
IMPORTANT (Backup up all existing data before proceeding with the procedures below)
Tutorial created by: WinLinMac01

1). Download and Burn a bootable copy of Acronis Disk Director

2). Assuming that your hard drive is fully formated with zeros, insert your Mac OS X DIsk and press ENTER when the disk starts up.

3). Select your language and in the next screen, go into Disk Utility.

4). Create one HFS+ Journaled partition dedicated to Mac OS X.

5). For the remaining space, set that as Free Space.

6). Quit Disk Utility, and quit the installer.

7). Now, insert your Acronis Disk, and go into disk's safe mode when the menu appears.

8). You will see the already created Mac OS X partition, but the remaining Free Space is unallocated.

9). Create one NTFS partition using that Free Space. (NOTE: If you are planning to use Linux, you will have to leave some Free Space, Do NOT create an Ext3 partition YET)

10). Now is the time to reinsert your Mac OS X DVD.

11). Select the appropriate packages and install on the OS X partition you created.

12). After installation, heres a tip, you can quit the registration by simply doing Command-Q.

13). After configuring your post-installation, it is optional if you want to install the latest kernel, 9.2.2.

14). The main thing now, is to go into disk utility again, and format the NTFS partition you created for Windows Vista as FAT (MS-DOS).

15). Now it is time to insert your Windows Vista DVD.

16). When you get into the partition selection, highlight the partition you created in Disk Utility (FAT). Format that partition as NTFS.

17). Now you should be able to install Windows Vista without any problems. Note that this will overwrite the existing MBR that Mac OS X configured initially.

FOR USERS DUAL BOOTING JUST MAC & WINDOWS ON ONE DISK READ BELOW, FOR THOSE THAT WANT TO TRIPLE BOOT, SKIP THE FOLLOWING STEPS, AND RESUME AFTER STEP 21)
-------------------------------------------------------------------------------
18). After installation is complete, and after confirming that your installation is successful, restart and insert your Mac OS X DVD.

19). Instead of Booting of the DVD, press F8 and boot with -s.

20). To use the Darwin bootloader, you will have to write a new MBR. Follow the commands below-

fdisk -e /dev/rdisk0
flag 1
write
yes
quit
reboot

21). Now after reboot, you should see the Darwin bootloader active again, and when you press enter, Windows NTFS will be the foreign O/S installed on your system in addition to Mac OS X. By default, after 8 seconds, Darwin should boot off the Mac OS X partition. However, you can always select the Windows Vista partition anytime you have to access that O/S.

-------------------------------------------------------------------------------------------

22). Insert your Linux DVD after you are done installing Windows Vista

23). Follow the prompts as you go along until you select your leftover unpartitioned HD space.

24). Create an Ext3 partition for this installation, instead of swap.

25). Proceed to the bootloader configuration, and select GRUB.

26). If Mac OS X is not on the configuration list, add the boot information manually by going into "edit" or "add."

27). After doing this, GRUB will automatically detect your Mac OS X partition and add it to the grub.conf file after the installation is complete. You really don't have to edit the .conf file, only if you want to change the appearance of the name, timeout seconds, and the default O/S to boot into.

28). Proceed with the installation for Linux (any distribution).

29). After installation is complete, you SHOULD be able to see three options to choose from the GRUB bootloader list.

30). Windows Vista will be displayed as Other, unless you change this manually to Microsoft Windows Vista manually in the grub.conf file.

***If you are going to tri-boot Mac OS X, Windows Vista, and Linux, do steps 18-21 in Darwin after selecting Mac OS X Leopard from the GRUB Bootloader. That way, by default, the Darwin will boot Leopard instead of Windows Vista. Because chances are the default value may be set to Vista. Therefore, performing those steps should resolve your problem if you face any.***
================================================== ============

After all of these procedures are completed, you should be able to enjoy and the most of your system on just one hard drive.

I hope this helps, and this tutorial once again was written by me, WinLinMac01. =))

-- Enjoy

kourosh
04-15-2008, 06:24 PM
I have a quad boot system with Windows XP, Slackware 12.0, Ubuntu 7.10 (Now LFS in progress), and Mac OS X 10.5.2

Did that ages ago with grub, easy stuff for me...

seren
04-15-2008, 10:53 PM
nice job

WinLinMac01
04-15-2008, 11:26 PM
GRUB is the BEST indeed. How are you managing your time settings?

@seren, thanks. =)

kourosh:I have a quad boot system with Windows XP, Slackware 12.0, Ubuntu 7.10 (Now LFS in progress), and Mac OS X 10.5.2

Did that ages ago with grub, easy stuff for me...

smileyme
04-17-2008, 06:11 PM
I used GRUB, though did it kind of backwards.

I installed XP first, then Ubuntu. Then my XP crashed and I had to reinstall XP, but then I could only boot to XP. I used SuperGrub to recover my Linux partition, and had to add XP to my GRUB list. All was good.

When I decided to install Leopard, I used GParted to make space on my drive, and installed Zeph's 10.5.2, but now could only boot Leopard. Again, I used SuperGrub to get back to Linux, then added Leopard to the list. Ubuntu, XP, Leopard; all from GRUB.

Since then, I have added a dedicated drive for Leopard, added it to GRUB, and all is good.

I have been so happy with my OSx86 PC, I gave my G5 to my wife.

Rick :)

WinLinMac01
04-17-2008, 08:27 PM
Good to hear... =)

smileyme:I used GRUB, though did it kind of backwards.

I installed XP first, then Ubuntu. Then my XP crashed and I had to reinstall XP, but then I could only boot to XP. I used SuperGrub to recover my Linux partition, and had to add XP to my GRUB list. All was good.

When I decided to install Leopard, I used GParted to make space on my drive, and installed Zeph's 10.5.2, but now could only boot Leopard. Again, I used SuperGrub to get back to Linux, then added Leopard to the list. Ubuntu, XP, Leopard; all from GRUB.

Since then, I have added a dedicated drive for Leopard, added it to GRUB, and all is good.

I have been so happy with my OSx86 PC, I gave my G5 to my wife.

Rick :)