Jump to content

Help with adding OSX to GRUB


DwnldDude
 Share

18 posts in this topic

Recommended Posts

ok... so i am tribooting xp, osx, and ubuntu... well... i just installed ubuntu and i can not boot into anything else... i did some research and it looks like i have to add something to grub... i know if i can get into osx i can use that boot loader to boot all 3 os's but i can not get into it... if i had my osx cd.... i could also use that startup disk utility and be fine.... but i dont have the cd... so basically i need to get into osx any way possible... which sounds like adding it to grub.... can anyone give me instructions on how to do that? thanks ;) keep in mind i am a complete linux newb... thanks

Link to comment
Share on other sites

ok... so i am tribooting xp, osx, and ubuntu... well... i just installed ubuntu and i can not boot into anything else... i did some research and it looks like i have to add something to grub... i know if i can get into osx i can use that boot loader to boot all 3 os's but i can not get into it... if i had my osx cd.... i could also use that startup disk utility and be fine.... but i dont have the cd... so basically i need to get into osx any way possible... which sounds like adding it to grub.... can anyone give me instructions on how to do that? thanks :) keep in mind i am a complete linux newb... thanks

 

In my case OSX86 is /dev/hda1 (first primary partition at IDE0 master) so I just add this in my grub.conf:

title OSX86

root (hd0,0)

chainloader +1

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

Here's the grub manual:

http://www.gnu.org/software/grub/manual/grub.html

Link to comment
Share on other sites

In my case OSX86 is /dev/hda1 (first primary partition at IDE0 master) so I just add this in my grub.conf:

title OSX86

root (hd0,0)

chainloader +1

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

Here's the grub manual:

http://www.gnu.org/software/grub/manual/grub.html

 

I think ubuntu calls the grub.conf file something weird. i think it's at /boot/grub/menu.lst just open it up in your favorite text editor and add the lines that DrJägermeister posted and that should do it.

Link to comment
Share on other sites

My grub entry for osx x86 is simply

 

title OSX86

chainloader /etc/chain0

 

And the file /etc/chain0 is the bootloader that comes with darwin. Works like a charm, even if grub doesn't recognise the osx partition properly.

 

Ugh, it works, but it is so much easier and cleaner to do it with grub...

I've messed with linux alot and found that grub and lilo are great bootloaders if you know how to use them.

 

Like the other guy said, just position it to a disk and then the partition and it works!

 

for those that don't understand root(hd0,0) stands for harddrive 0 (first one), partition 0 (first partition).

If there are no partitions made, you still need to pass the partition as 0.

and chainloader +1 tells it to boot from the settings you told it.

 

I have also found wierd things with partitions using an IDE and SATA at the same time, if anyone has problems with that, I've dealt with it before, feel free to ask me. :D

Link to comment
Share on other sites

nope, that would be

 

root (hd1,0)

chainloader +1

 

 

you see, in grub-notation, (hd x,y) represents your hard drive and partition, where x=your hard drive number -1 and y= your parition number -1

 

so 0 is your first harddrive or partition

1 is the second , and so on (you figure out the rest!)

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
  • 5 months later...

Grub Issues (I can’t get Grub to load OSX)

 

 

I fixed the issue I had with (hd0,0) and so on.

 

0 is the first partition or hard drive not 1.

 

I was trying to load OSX from the wrong partition and just didn't see what was wrong.

 

What I had:

rootnoverify (hd0,3)

chainloader +1

 

What it needed to be:

rootnoverify (hd0,2)

chainloader +1

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...

a little off topic, but check out my grub bootloader, its pretty cool, well i think its pretty cool:

 

bootpic0se.th.jpg

 

if you want to know how go to:

http://forum.osx86project.org/index.php?sh...c=20270&hl=grub

 

i installed suse before i installed windows, disconnected my suse drive, and my os x drive, then installed windows. my menu.lst looks like this

 

title Mac OS X

root (hd2,0)

chainloader +1

 

title Windows XP Professional

map (hd0) (hd1)

map (hd1) (hd0)

root (hd1,0)

chainloader +1

 

hd0 is my suse drive, hd1 is my windows drive

hope this helps someone, it took me forever to figure it out.

the benefit of doing it this way is that if i decide to get rid of my suse install, i can still boot into windows

Link to comment
Share on other sites

  • 1 year later...

Hi. :P

 

I've noticed that all the grub instructions so far are for internal HDs, I've installed OS X on an external HD labelled sdb2. How would I add that to the grub if it is possible?

 

Also, I'm having trouble with fstab. When I try to mount that partition I get an error message. I'm almost sure it's because the fstab isn't correct but I don't know what is wrong. Currently it is: /dev/sdb2 /mnt/mac_os_x hfsplus noauto,user,rw 0 0

 

Any ideas? Any help would be greatly appreciated. :P

Link to comment
Share on other sites

  • 1 year later...

Hi,

I have the two hard disks.

On the 1st hard disk (SATA) I have installed the Ubuntu & the Windows Xp.

So currently booting from the Ubuntu via Grub boot loader, which shows the Windows Xp in the list, so I am able to boot into Ubutnu or Windows.

 

On the 2nd Hard disk (PATA), I have installed the Mac OS X Leopard on the second partition.

 

So how to boot to OS X (on 2nd hard disk) from the Grub loader (on 1st hard disk) ?

 

 

Ugh, it works, but it is so much easier and cleaner to do it with grub...

I've messed with linux alot and found that grub and lilo are great bootloaders if you know how to use them.

 

Like the other guy said, just position it to a disk and then the partition and it works!

 

for those that don't understand root(hd0,0) stands for harddrive 0 (first one), partition 0 (first partition).

If there are no partitions made, you still need to pass the partition as 0.

and chainloader +1 tells it to boot from the settings you told it.

 

I have also found wierd things with partitions using an IDE and SATA at the same time, if anyone has problems with that, I've dealt with it before, feel free to ask me. :rolleyes:

Link to comment
Share on other sites

  • 7 months later...
  • 1 month later...

Hi

I'm here new but what should i do if i have GRUB and Chameleon V2 with graphical interface?

I want to boot that chameleon which has icons with systems.

I tried to change

chainloader +1 on +2 or something but that didn't work for me.[grub shows error]

 

AND what is the most important:

 

/etc/chain0 doesn't work :)

 

And if this is possible... how to do load for only chameleon? No grub only chameleon mode by the start... uninstal GRUB? how?

 

Please help :wacko:

Link to comment
Share on other sites

 Share

×
×
  • Create New...