Thoughts on Technology

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, 15 April 2011

HOWTO: Chainload Grub2 into Chameleon

Posted on 12:51 by Unknown
I recently started playing with OSx86 again on my laptop that also runs Bodhi Linux. OSx86 uses the Chameleon boot loader to boot into the OSX kernel and handle easily passing on boot arguments at startup. If you are a Linux user like myself, odds are you prefer the Grub boot loader, which supports just about every operating system you can think of.

While I like grub, it does not do a good of a job of passing boot arguments to the OSX kernel. Beyond this some of the EFI strings Chameleon has happen at boot don't work properly with grub. The solution is to have Grub simply chainload into Chameleon instead of booting directly into the OSX kernel (which it does by default).

Doing this is fairly simple, first boot into your Linux operating system that is responsible for grub2, then open your favorite terminal and run the following:

sudo mkdir /boot/chameleon
cd /boot/chameleon
wget http://downloads.bodhilinux.com/jeff91/misc/boot0


Or if you don't trust a file provided by myself, the boot0 file is part of the chameleon boot loader, search for it on your own hard drive and move the file over.

Next, open your grub.cfg, as root, located at /boot/grub/grub.cfg with your favorite text editor and paste in the following chunk of code just below the last menu entry:

menuentry "Mac OS X Boot Loader" {
insmod hfsplus
set root='(hd0,1)'
search --no-floppy --fs-uuid --set ca2159244a8b0fc3
parttool (hd0,1) boot+
chainloader (hd0,5)/boot/chameleon/boot0
}

Note in the above chunk of code you will need to change hdX,Y to match your particular hard drive layout. On my system OSx86 is installed to sda1 (which equates to hd0,1) and Bodhi, which manages Grub2, is installed to sda5 (which equates to hd0,5). Also be sure you make the uuid match that of your OSX drive (you can copy it from the grub2 entry for booting directly into the OSX kernel).

Have any questions feel free to drop a comment below and I will lend a hand.

Cheers,
~Jeff Hoogland
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in howto, linux, open source, operating systems | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • HOWTO: Watch Netflix on Bodhi Linux
    Not being able to utilize the Netflix video streaming service has been an issue on the Linux desktop for the past few years. This is due to...
  • Linux Video Editing with Openshot
    In an earlier post I spoke of different pieces of software I had been using to rip my DVDs to media files, never content to just leave thin...
  • Lenovo ThinkVision USB Monitor Review
    I picked up a new toy a couple of weeks ago - a secondary monitor for my multitude of computers. The screen I picked up though a slightly di...
  • Bodhi Linux ARM Release Candidate for Genesi
    Edit/Update: You can find the latest release here ->  http://www.bodhilinux.com/downloads_mobile.php Early this year I posted about our ...
  • Thoughts on the Unity Desktop
    Ubuntu's 11.04 release is now on the horizon and unless you have been living under a rock then you know that their big change is going t...
  • Ripping DVDs on Linux
    I recently assembled a new computer to use strictly for playing media files on my television/home theatre setup. Sporting just over 2.5 tera...
  • HOWTO: Use Ubuntu Software Center in Mint 9
    There are a few reasons why I use Linux Mint instead of Ubuntu on my systems. That being said one of the reasons I do not list for using M...
  • HOWTO: Force Skype to use Alsa on Linux
    Like it or not Skype is a popular piece of software. In fact it is so popular it is the only piece of voice communication software a number...
  • HOWTO: TI-83 Emulator on Linux
    When you are trying to show a classroom full of students how to enter a complicated equation into their calculator it is pretty much always ...
  • HOWTO: Test E18, EFL 1.8.0, and Terminology 0.4.0 on Bodhi Linux
    As of this past weekend the testing builds of the Enlightenment window manager DR18 (E18 for short) are in the Bodhi Linux testing repositor...

Categories

  • 3g modem
  • adobe
  • android
  • appeal
  • apple
  • arm
  • art
  • asus tablet
  • benchmark
  • bodhi
  • bordeaux
  • cedega
  • chakra
  • chrome os
  • chromebook
  • cockatrice
  • codeweavers
  • comic
  • cricket wireless
  • crysis
  • cxgames
  • debian
  • dell duo
  • diablo3
  • distro review
  • dtf
  • e18
  • eandora
  • eccess
  • elementary
  • elive
  • enlightenment
  • fedora
  • firefox
  • gaming
  • genesi
  • gnome
  • google
  • google chrome
  • google wave
  • handheld device
  • hardware
  • helios
  • howto
  • html5
  • ideapad
  • interview
  • ipad
  • jolicloud
  • kde
  • l4d2
  • laptops
  • lenovo
  • linux
  • lxde
  • macbook
  • math
  • maxima
  • media
  • meego
  • milestone
  • mint
  • mir
  • mk802
  • moblin
  • n900
  • netflix
  • nexus 7
  • nvidia
  • open pandora
  • open source
  • opengl
  • opera
  • operating systems
  • palm
  • phones
  • promotion
  • python
  • qt
  • rant
  • raspberry pi
  • reviews
  • sabayon
  • software
  • source games
  • spotlight
  • sprint
  • starcraft2
  • steam
  • t-mobile
  • tutorial
  • ubuntu
  • unigine
  • unity
  • wayland
  • web application
  • windows
  • windows 7
  • wine
  • wxmaxima
  • xfce

Blog Archive

  • ►  2013 (20)
    • ►  December (1)
    • ►  November (1)
    • ►  September (1)
    • ►  June (1)
    • ►  May (2)
    • ►  March (2)
    • ►  February (3)
    • ►  January (9)
  • ►  2012 (57)
    • ►  December (5)
    • ►  November (4)
    • ►  October (2)
    • ►  September (1)
    • ►  August (4)
    • ►  July (9)
    • ►  June (4)
    • ►  May (4)
    • ►  April (1)
    • ►  March (7)
    • ►  February (6)
    • ►  January (10)
  • ▼  2011 (107)
    • ►  December (8)
    • ►  November (8)
    • ►  October (5)
    • ►  September (14)
    • ►  August (9)
    • ►  July (8)
    • ►  June (7)
    • ►  May (10)
    • ▼  April (9)
      • Bodhi Linux Road Map
      • A Gnome Refugee's Guide to Enlightenment
      • Thoughts on the Unity Desktop
      • Top Five Fedora Derivatives
      • Angry Birds Angry with Linux?
      • HOWTO: Chainload Grub2 into Chameleon
      • Elementary OS - Distro Review
      • Internet Explorer 6 is Holding Back the Linux Desktop
      • Summary of FOSS Online April 1st 2011 Pranks
    • ►  March (13)
    • ►  February (9)
    • ►  January (7)
  • ►  2010 (122)
    • ►  December (10)
    • ►  November (8)
    • ►  October (10)
    • ►  September (14)
    • ►  August (17)
    • ►  July (10)
    • ►  June (9)
    • ►  May (14)
    • ►  April (8)
    • ►  March (7)
    • ►  February (7)
    • ►  January (8)
  • ►  2009 (27)
    • ►  December (10)
    • ►  November (7)
    • ►  October (10)
Powered by Blogger.

About Me

Unknown
View my complete profile