[Mac] dual boot issue

Asked by Jason T

My scenario: MSI Wind U100 netbook. I created one partition and installed Mac OS X on it, works great! I created a second (and third for swap) partition for Ubuntu 10.4 but during the install process I had it NOT install a boot manager because the install GUI would not allow me to install it directly to the linux partition (sda3) it was an option in the drop down menu, but the "ok" button would grey out. So I loaded the ubuntu cd again and was about to mount and install grub(2?) to the partition, it said it completed with no errors.

I booted back in to OSX, installed Chameleon, which sees both the OSX and Linux partition, I am able to boot back in to OSX but attempting to boot in to Ubuntu results in being dropped to a Grub Recovery> prompt which I am getting no where with.

I have been pouring over documentation, i swear my eyes are going to bleed! =) I downloaded and installed (from Ubuntu install live environment) start up manager, it aborts because grub.cfg does not exist. I get similar messages when trying to configure or setup grub from the terminal.

So how do I install / configure grub for use on my sda 3 so as that I will be able to use Chameleon to load grub/ubuntu?

I appreciate any assistance offered, Thank you.

---
update:

I seemed to have fixed "something" by booting to ubuntu live cd and using terminal to do a grub-install --force --root-directory=/mnt/ /dev/sda3

drops me to a grub> prompt

I'll keep plugging away...
---
NOT solved yet, but getting closer

with :https://help.ubuntu.com/community/Grub2

Express Boot to the Most Recent Kernel

Command Summary *:
set root=(hdX,Y)

linux /vmlinuz root=/dev/sdXY ro

initrd /initrd.img

boot

Expanded Instructions *:

Press ENTER after completing each line. Some entries will not provide feedback. This is normal.
If a "file not found" or similar error message is displayed while running these commands, ensure you are using the correct X,Y values. The ls command can help determine the correct values. Once the X,Y values are confirmed run the following command:

set prefix=(hdX,Y)/boot/grub

1*. set root=(hdX,Y)
Type with correct X,Y results from the ls command and press ENTER. Remember GRUB 2 counts the first drive as 0, the first partition as 1. Example: If the Ubuntu system is on sda5, enter: set root=(hd0,5)
2*. linux /vmlinuz root=/dev/sdXY ro
Example: linux /vmlinuz root=/dev/sda3 ro

* Wubi users see note.
3. initrd /initrd.img
Selects the latest initrd image.
4. boot
Boot to the latest kernel on the selected partition.
* Wubi users only - substitute these commands in Steps 1 and 2:

set root=(loop0)
linux /vmlinuz root=/dev/sdXY loop=/ubuntu/disks/root.disk ro

These changes are not permanent. After successfully booting into the system the user should run sudo update-grub and inspect the GRUB 2 configuration file (/boot//grub/grub.cfg). For problems with booting the main linux kernel, ensure the search, linux, and initrd lines in the [### BEGIN /etc/grub.d/10_linux ###] section of the file now correctly point to the correct locations. The user may need to reinstall GRUB 2 (sudo grub-install /dev/sdX).

AND THEN doing (below) AGAIN

booting to ubuntu live cd and using terminal to do a grub-install --force --root-directory=/mnt/ /dev/sda3
reboot

Chameleon will see both bootable partition upon boot, but once you boot to Ubuntu and do your things. When you reboot, the linux boot partition is gone again, untill you ... do a grub-install --force --root-directory=/mnt/ /dev/sda3

aand the cycle continues...

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
delance (olivier-delance) said :
#1

I'm not expert in Mac OS X area but I can try to help you.
1) Do you want:
   a) A dual boot Ubuntu/Mac OS X
   b) A triple boot Ubuntu/Mac OS X/Windows (and which Windows)
2) Can you check if you have a DOS or a EFI BIOS
   a) System->Administration->Gparted: disk partition table is a DOS one or a EFI one
   b) When you bought computer, was Mac OS X installed or Windows/Linux ?

There are more and more people trying to dual boot Mac OS X and Ubuntu, do you know if it is possible to install Mac OS X in Virtual Box, so I could check install procedure ?

Revision history for this message
Jason T (jdthiele) said :
#2

From my progress, I don't think this has much to do with Mac OS X so much as my install of the grub2 bootloader.
I will answer your queries and then redescribe my scenario.

I want to dual boot Ubuntu & Mac OS X
I used gparted for partitioning.
there was no OS on my netbook originally.
I have heard of people being able to load Mac OS X in a virt, I've never gotten it to work, the mac os x distro I got now is made for my netbook.
ok, here is my current cycle
boot up in to chameleon, lists only Mac OS X as a boot option. Reboot, load Ubuntu 10.4 install cd,
get to a terminal,
     mount /dev/sda3 /mnt
     grub-install --force --root-directory=/mnt/ /dev/sda3

reboot, let chameleon come up, it sees both Mac OS X & Ubuntu partitions and I can boot to either or happily,

now here is the problem... If I select linux and boot in to linux from chameleon, i am brought to the grub menu, where i can select the first choice which is normal ubuntu 10.4 and every thing is great... until I reboot and my linux partition no longer shows up in chameleon, as if tthe act of booting in to grub is changing something / deleting itself from the partition? and I have to do the whole thing over again. SO, not having to even go in to OS X, I'm not sure thats really the concerns more as I'm doing something wrong with grub.

Thanks in advance!

Revision history for this message
delance (olivier-delance) said :
#3

I have found following links:

http://www.dailyblogged.com/booting-ubuntu-with-the-chameleon-bootloader/ (but Grub legacy)
http://www.mydellmini.com/forum/dual-booting/13903-working-triple-boot-osx-win7-ubuntu-through-chameleon.html (but Grub legacy)
http://forum.voodooprojects.org/index.php?topic=1026.0 (Grub 2)

If I understand:
1) after installation, Chameleon boot first (before grub2) and list Mac OS X and Ubuntu
2) you choose Ubuntu and it load Ubuntu
3) you reboot, and Chameleon stopped to list Ubuntu
In boot process, Chameleon's boot appears before Grub is loaded. So it should be linked to a Chameleon issue.
During Ubuntu session, it is not supposed to modify Chameleon files.
I see a single problem. After you installed Ubuntu, it can have loaded automatically a new version of Linux kernel. But it should be a Grub issue, except if Chameleon propose you directly to choose between different version of kernel.
I presume you will get more help on Chameleon forum.

Revision history for this message
Jason T (jdthiele) said :
#4

Actually, I don't think Chameleon is to blame, Chameleon is just "seeing" the other available partitions for booting, I don't think its modifying anything. I think that during the Grub/Ubuntu boot process, there is a flag or something getting reset and causing Chameleon not to recognise it as a valid boot partition anymore.

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.