Dual Booting OS X Snow Leopard and Moblin (with Moblin WiFi guide!)
I am going to call this the definitive guide to dual-booting OS X Snow Leopard and Moblin Linux. This will be divided up into two parts, one for setting up the dual-boot, another for getting a working wifi connection.
Main steps:
- Install and Update OS X
- Install and Update Moblin
- Setup GRUB for the Dual Boot
To get a functioning dual boot, you will need the following.
- A Dell Mini 10v
- An OS X Snow Leopard Install USB (8GB+ drive required)
- A Moblin Live USB (Guide can be found here)
- A wired connection for the wireless setup
Install OS X Snow Leopard
- Turn off your Dell Mini 10v, and insert the OS X Snow Leopard Install USB.
- Turn your computer on, and press F12 before the logo leaves.
- Choose USB Storage.
- If there is an progress bar, let it run out. If not, then choose Mac OS X Install DVD.
- When the drive finishes booting, choose your language, and click the arrow in the bottom right hand corner, or hit the “Enter” key.
- Go to the Utilities, and choose “Disk Utility”.
- Select your hard drive from the list on the left sidebar (If you have the stock hard drive, the listing might say something like 160.04 GB WDC WD1600BEVT-75ZCT2).
- Go to the Partition menu.
- Under Volume Scheme, in the drop down menu, I recommend that you choose 2 Partitions. It divides the hard drive in two partitions, making installation easier. You may change the partition size if you need.
- In the first partition, in the right of the diagram, name your partition as you wish, format is “Mac OS Extended (Journaled)”.
- Make the second partition “Free Space”.
- Click the “Options...” button under the hard drive diagram. Choose GUID Partition Table
- Click Apply, then click Partition.
- Close the application when its finished.
- Click Continue, and click Agree.
- Choose the hard drive, and click Customize if you wish.
- Click Install, and off you go!
Do know that I have had the experience of having the installer freeze occasionally. No worries, just move the mouse, and the thermometer will jump to its real position. I have also seen the installer freeze and 10-11 minutes left. This is normal. You can move the mouse all you want, but it will not unfreeze. The installer will not go past 10 minutes left. If you have it go past 10 minutes, please let me know, and I can edit this.
Updating OS X Snow Leopard
There are many ways to update your Hackintosh, the most common being running NetBookInstaller, and running “Software Update...” from the Apple menu. Just make sure that your OS X is completely updated before continue.
Installing Moblin
- Turn off your Dell Mini 10v, and insert the Moblin Live USB.
- Turn on the computer, and press F12 before the logo leaves.
- Choose USB Storage.
- Let the USB load, then choose Installation Only.
- Let it load, and click “Next” at the splash screen.
- Choose your language, and click “Next”.
- The keyboard is an U.S. English keyboard, so just click “Next”.
- Choose the closest city to your location.
- At the partition editor, choose “Use free space on selected drives and create default layout” from the upper drop down menu. Check “Review and modify partitioning layout” if you wish. Click “Next” when finished.
- After the image is done copying, leave all the GRUB info alone, we will edit it manually later.
- Enter a user name and password, click “Next” and that's all! Click “Done” and the installer will exit. Reboot the computer for setting up the dual boot.
Setting up the OSX/Moblin dual-boot with GRUB
I have looked high and low for a way to dual boot OSX and Moblin with Chameleon, but unfortunately, Chameleon does not support booting from an ext2/3 partition, which is that Moblin requires. When you reboot your computer for the first time after the Moblin installation, you won't have a choice but to boot into Moblin. Let's fix that. For this you will need your wired connection. Better yet, keep the wire plugged in if you want to jump from dual-booting to setting up the wifi.
First, a few things that aren't required, but very helpful. Notice the four applications in the bottom left hand corner. You should have a media player, a web browser, an about Moblin, and a Moblin Application Installer. You don't have to have those four applications. You could also have more if you wanted. If you go to the applications menu, you will see a Favorite Applications area. If you roll over one of the favorite applications, you will see a purple pin in the corner. If you click that pin, it will no longer be on the myzone screen (home screen). Here are the applications I recommend that you “pin”: Web Browser, Moblin Application Installer, Terminal, File Browser, and Manage Apps. Those are the five apps we will use in this tutorial. Now for the meat of the tutorial!
- Launch Terminal.
- Run “sudo yum update”. We need to update the computer eventually, so why not do it now? You need to keep running that command until you get a message that says “No Packages marked for Update”. To rerun a command without having to type it again, hit the “Up” arrow key, and it will cycle through previous commands.
- After updating, make sure that you reboot. There is a kernel update, and rebooting is good.
- Launch “Manage Apps”
- In the “Filters” menu, uncheck “Only newest packages”.
- Search “netbooks”. There should be four packages. Two should be called Anjal. Ignore those. The other two are the kernels. We only want one of them, and more likely than not, they both will be installed (i.e, checked on the left). Uncheck the one whose subtitle is “kernel-netbook-2.6.31.5-10.1.moblin2 (i586)”. If it is already unchecked, then you are good to go!
- Click “Apply” in the corner, and let it run. When it is done, close the application, and launch Terminal.
- Run “sudo gedit /boot/grub/grub.conf”. This is where we edit the GRUB listing (i.e, “turn on” the dual boot function).
- If you followed the instructions on setting up the partition places of the systems, then this step should be easy. So it's OK if you resized one of them. If not, then this step might be a little difficult, but if you read my explanation, then we should be good.
- Copy and paste all this code into your grub.conf, removing all previous text.
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/sda3
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Moblin
BUILD: moblin-2.1-final-20091103-002 (2.6.31.6-17.1.moblin2-netbook)
root (hd0,2)
kernel /boot/vmlinuz-2.6.31.6-17.1.moblin2-netbook ro root=/dev/sda3 quiet vga=current
title Mac OS X (10.6 Snow Leopard)
rootnoverify (hd0,0)
makeactive
chainloader (hd0,2)/boot/boot0
- The default=0 means that the first listing is the default listing to boot into after the timeout time, which we set at 10 seconds (default=10). After the splash image listing, you see the “title Moblin” listing. All the indented items after that have the info about booting into Moblin. After the empty line, you see “title Mac OS X (10.6 Snow Leopard)”. I'm not sure what the rest of that listing is, but it is all important. You won't have to change anything in the bootloader listings if you followed my partition suggestions, ie, the positions of the partitions, not the sizes. Those don't matter to the bootloader.
- Next, you need to go the Chameleon bootloader site, and download the RC3 binary package. I'm not sure if the RC4 binary package will do it, but I'm not willing to try it. When download is done, open the File Browser application, locate the archive, and extract the boot0 file from the i386 folder. Extract it to your home folder. Close all windows, and launch Terminal.
- Run “sudo nautilus”. This will launch the file browser application with root privileges. Chose the hard drive from the sidebar, and follow this path to your boot0 file: /home/<username>/boot0.
- Hit Ctrl+T to open a new tab. In the new tab, go to /boot. Go to your home tab, right click on boot0, and choose copy. Go to the boot tab, and paste the boot0 file. Close all applications, and if you did this section right, you can reboot and have a fully functioning dual boot!.
Setting up the wifi in Moblin
This is where you need to make sure that your Moblin installation is fully updated. You should have had it fully updated before we set up the dual boot, or it shouldn't have worked. But now is the time to make sure that your computer is fully updated by running “sudo yum update”. After the update, reboot into Moblin just to make sure that you are running the latest kernel. You need to download the wifi driver setup (http://www.zeroepoch.com/download/mo...oblin.i586.rpm). Normally when people try to write guides to get the wifi working in a Moblin setup, they have to compile the kernel and a bunch of other stuff that you really don't need to do. And when they got the driver compiled, it still wouldn't work because they didn't have latest update. This specific wifi driver only works for the latest kernel update. This is why you should have copied the grub.conf I posted because it boots into the latest kernel, therefore the ability to have wifi.
A few warnings: When you need to run NetBookInstaller, make sure that you disable to installation of Chameleon. The reason being when you install Chameleon, it writes over GRUB, disabling your ability to boot into Moblin. If you do accidentally install Chameleon over GRUB, then you need to download an Ubuntu Live USB, and install GRUB from the Terminal.
I hope this guide helps you, since it is a compiled source of a bunch of confusing and misunderstood guides. Thanks for reading.
|
 Tutorial Tools |
|
 Featured Tutorials |
|
|
|
|