Help - Search - Members - Calendar
Full Version: How to add Leopard in Grub 2?
InsanelyMac Forum > OSx86 Project > Multi Booting and Virtualisation
keplenk
Hi all,

I don't know if this is the right area to post this query. Shoud it be on *nix? If I'm wrong, I apologize.

Anyway, Here goes:

I just installed Grub 2 as my main boot loader for my 3 OSes.

One Hard Drive:

1st Partition: Win XP
2nd Partition: Leopard (leo4allv3 with efi)
3rd Partition: Ubuntu 8.04
4th Partition: Linux-Swap

The first time I've installed Grub 2, I noticed that Windows XP is not auto detected. I've searched the forums and found out that I just have to add this line in my grub.cfg (since grub2 uses grub.cfg instead of menu.lst):

menuentry "Windows XP Pro" {
set root=(hd0,1)
chainloader +1
}
and it worked!

Now, I have no idea on what to put for my Leopard.

I've tried:

menuentry "Mac" {
set root=(hd0,2)
chainloader +1
}
It gave me an error HFS+ Partition... error

and I've also tried (I've added boot_v8 in the /boot/grub folder in Ubuntu):

menuentry "Mac" {
set root=(hd0,1)
/boot/grub/boot_v8
}
and I guess It's not recognized. It just loops.

Anybody knows what entry to add in grub.cfg to make Leopard working?

*It was all working in Grub Legacy. I'm just trying out Grub2

Thank you in advanced.
keplenk
bump
wmarsh
QUOTE(keplenk @ Jun 22 2008, 12:41 PM) *
Hi all,

I don't know if this is the right area to post this query. Shoud it be on *nix? If I'm wrong, I apologize.

Anyway, Here goes:

I just installed Grub 2 as my main boot loader for my 3 OSes.

One Hard Drive:

1st Partition: Win XP
2nd Partition: Leopard (leo4allv3 with efi)
3rd Partition: Ubuntu 8.04
4th Partition: Linux-Swap

The first time I've installed Grub 2, I noticed that Windows XP is not auto detected. I've searched the forums and found out that I just have to add this line in my grub.cfg (since grub2 uses grub.cfg instead of menu.lst):

menuentry "Windows XP Pro" {
set root=(hd0,1)
chainloader +1
}
and it worked!

Now, I have no idea on what to put for my Leopard.

I've tried:

menuentry "Mac" {
set root=(hd0,2)
chainloader +1
}
It gave me an error HFS+ Partition... error

and I've also tried (I've added boot_v8 in the /boot/grub folder in Ubuntu):

menuentry "Mac" {
set root=(hd0,1)
/boot/grub/boot_v8
}
and I guess It's not recognized. It just loops.

Anybody knows what entry to add in grub.cfg to make Leopard working?

*It was all working in Grub Legacy. I'm just trying out Grub2

Thank you in advanced.

If you are trying the boot_v8 on Linux method, root has to match your Linux partition.
Here you have root=(hd0,1), which matches your XP partition
If Linux is root=(hd0,0), try that
kytzu
or try lilo instead of grub, for me only lilo works to have triple os boot in one menu.
chris4048
why do you use Grub 2 ? it's still in alpha/beta stage.

I am using gentoo and this is my configfile:

CODE
title Mac OSx86
rootnoverify (hd0,0)
makeactive
chainloader +1

title Windows XP
rootnoverify (hd0,1)
makeactive
chainloader +1


[it has also gentoo in conf but i removed it, isn't necessary)

so be smart switch (back) to grub1 or try to add 'makeactive' command (looks like it's missing, but maby it isn't required)
btw. I am using the leo4all release
keplenk
Thanks for the replies.

@chris4048

I honestly don't know why I'm trying Grub2, lol. I think I just want to evaluate it or something. I also managed to understand how easy it was to switch back to Grub Legacy. If I don't like Grub 2, I know how to go back easily.

Well, maybe there is one reason why I'm trying Grub2. I have a GA-p35-ds3l motherboard and it's set to AHCI mode. In my case, noticed that Grub Legacy boots slower in this mode. I also noticed that it pauses longer before it displays the menus. It's actually no biggie because I can live with that pause and I love Grub Legacy. It's way way better that Acronis OS selector.

I guess I'm in the quest of finding the fastest bootloader for my motherboard.

Thanks

@wmarsh;

Thanks for your reply. I'll try what you suggest when I get home. You helped me before in my Grub Legacy issue. You were a lifesaver smile.gif

BTW, Are you using Grub2? For some reason, I noticed that my Grub2 doesn't load as the default bootloader. When I turn on my PC, it still loads Grub Legacy and it only added a new menu line that says "Chainload to Grub 2". When I highlight and press enter to that line, that is the only time I see Grub 2. I already posted my query in the Ubuntu forums for this issue. I'm still waiting for answers.

@kytzu

Lilo is next in line. smile.gif Thanks for your suggestion.

*sorry for my poor english
wmarsh
QUOTE(keplenk @ Jun 23 2008, 10:38 AM) *
@wmarsh;

Thanks for your reply. I'll try what you suggest when I get home. You helped me before in my Grub Legacy issue. You were a lifesaver smile.gif

BTW, Are you using Grub2? For some reason, I noticed that my Grub2 doesn't load as the default bootloader. When I turn on my PC, it still loads Grub Legacy and it only added a new menu line that says "Chainload to Grub 2". When I highlight and press enter to that line, that is the only time I see Grub 2. I already posted my query in the Ubuntu forums for this issue. I'm still waiting for answers.

I appreciate your comment.

I use Grub "Legacy". The comments about grub2 being alpha are good ones; I avoid alpha when possible. Especially for my bootloader.

Over the years I've migrated from OS/2 bootloader, to Boot Magic, and now to grub. I've tried others along the way. My major criteria is compatiblity with all my OSs. Grub has a nice advantage in that I can host it either on Linux or FreeBSD. So I can migrate it -- now from SUSE 10.3 to FreeBSD 7.0 -- so I can upgrade SUSE from 10.3 to 11.0 without risking my ability to boot at all. Another nice advantage is if you screw it up -- and with multiple OSs you eventually will screw it up -- you can fix it either from the grub command line or from a Linux live CD.

I never cared for Lilo myself. Don't know why, its very stable.
keplenk
QUOTE(wmarsh @ Jun 23 2008, 10:21 PM) *
I appreciate your comment.

I use Grub "Legacy". The comments about grub2 being alpha are good ones; I avoid alpha when possible. Especially for my bootloader.

Over the years I've migrated from OS/2 bootloader, to Boot Magic, and now to grub. I've tried others along the way. My major criteria is compatiblity with all my OSs. Grub has a nice advantage in that I can host it either on Linux or FreeBSD. So I can migrate it -- now from SUSE 10.3 to FreeBSD 7.0 -- so I can upgrade SUSE from 10.3 to 11.0 without risking my ability to boot at all. Another nice advantage is if you screw it up -- and with multiple OSs you eventually will screw it up -- you can fix it either from the grub command line or from a Linux live CD.

I never cared for Lilo myself. Don't know why, its very stable.


Ahh i see. So I think you already did what I'm doing now smile.gif As of the moment, I think I'll just go back to grub and not bother to test grub 2. I don't know why but I can't boot my Leopard with 2. I give up! hahaha. Thanks for your insights and suggestions. You just summarized everything I wanted to know about bootloaders.

Again, thanks for your great help!

Now I'm back to Grub "Legacy" + gfxboot and still lovin it. biggrin.gif
Forsskieken
Hi There,

I have 3 hardrives in my laptop...the first one contains XP, Kubuntu, Mandriva en 2 apple leopards
The second drive is a data drive in NTFS
The 3d drive is a GPT drive with a apple_test,apple_working and a aplle data partition on it
With Grub legacy I can't boot the GPT drive but I can boot everything else
With GRUB2 I have the same error "hfs+ partition error" for the apple partitions on the first drive, but I can boot the GPT drive and everything else.

So I gues there is a purpose to use GRUB2


Thanks for reading
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.