Creating a bootable USB stick with Mac OS X in 10 easy steps

14 Oct

I heard a presentation about Intel’s new Linux distro for mobile Internet devices, called Moblin. Now I didn’t want to create a Live CD, but rather a “Live USB stick”, which would be so much easier than connecting an external DVD drive to my netbook (a MSI wind).

Until now I only had found a Windows solution for this, which required a physical Windows machine. Since I don’t have such a device, it was a bit of a dud. I did some more poking around with Google, and found a Dutch description of how one might do this with Mac OS X sec, so without any additional software.

Of course, you need to format your USB stick so, that both Mac OS X and a PC can read it, in other words, use the lowest common denominator, also known as FAT32 (or: MS-DOS format). That wasn’t included in the instruction, because it is so obvious. However, one can’t assume someone landing on this page to know of such things, so I added that to the instruction (sort of).

Prerequisites

Logged in as administrator
Because you are going to use the sudo command, you have to be logged in as an administrator. A non-administrative account will not work.
Formatted as FAT32
Start the application Disk Utility (located in the folder /Applications/Utilities/ of your Macintosh HD volume), stick in your USB stick, and format it as FAT32. If you don’t know how to do that, read this instruction on the AppleInsider forum, or do a Google search on FAT32 disk utility.

The Ten Steps

Here are the steps in words:

  1. Download the .iso file. This also can be an .img file. Let’s call it moblin.img.
  2. Rename the .iso file to .dmg. In our case, rename moblin.img to moblin.dmg.
  3. Right-click on the .dmg file and select Get Info. Write down the full path name as mentioned in the dialog box. We will need that for step 9.
  4. Start a Terminal window. The Terminal application is located in the folder /Applications/Utilities/ of your Macintosh HD volume.
  5. In the Terminal window, type:
    diskutil list
    and press the Enter key. Now a list of your storage devices is displayed in the Terminal window, underneath what you typed earlier.
  6. Put the USB stick in the USB port of your Mac.
  7. In the Terminal window, type again:
    diskutil list
    and press the Enter key. Now you see the same list, but with an extra storage device. The location of that device has the format /dev/diskN, where N is a number. In my case it was /dev/disk4. Write that down.
  8. In Terminal, type
    diskutil unmountDisk /dev/diskN
    and press the Enter key. Use the N from step 7. This will unmount the USB stick (it will disappear from your desktop).
  9. In Terminal, type
    sudo dd if=/path/to/file.dmg of=/dev/diskN bs=1m
    and press the Enter key, where /path/to/file.dmg is the full path from step 3, and /dev/diskN from step 7. You will be asked to enter a password. This is why you must be logged in as an administrator, a non-administrator does not have to privileges to perform this operation. This operation takes quite a while (10 minutes in my case). Be patient and let it do its thing.
  10. In Terminal, type
    diskutil eject /dev/diskN
    and press the Enter key. Again N is the number we established in step 7.

Now you can take out your USB stick and use it to boot your netbook. Booting your netbook from a USB stick is a whole other matter, which I won’t discuss here.

That is all.

(January 11, 2010: I noticed that the Terminal command is “unmountDisk” and not “unmount” as was written in an earlier version of this post. Sorry for any inconvenience.)

About these ads

4 Responses to “Creating a bootable USB stick with Mac OS X in 10 easy steps”

  1. Josxtm October 15, 2009 at 8:25 pm #

    I will try with wifiway or wifislax. Good luck!!! I will tell u if works ;-)

  2. Josxtm October 16, 2009 at 12:46 am #

    All perfect but when i hit ALT on my macbook white rev.2 nothing appears to happen. I read all tutotrial and all was OK but when i pkuf the usb nothing. Whats wrong m8? Thanks.. Sorry for my bad english

    • Rene October 16, 2009 at 9:52 am #

      My tutorial was meant for people who want to create a bootable usb stick for their netbooks (e.g. Asus eee PC, Dell Inspiron Mini 9, MSI Wind PC, etc.). I haven’t tested it on a MacBook or MacBook Pro. Most Linux distros assume a generic PC. What Apple produces is somewhat different from such a generic PC, which might explain why your Linux distro won’t run. It could also be that your .ISO file is damaged.

      • Rene October 16, 2009 at 12:16 pm #

        I’ve looked into this some more. It seems from reading this article on Maciverse that one of the prerequisites for a drive (or USB stick) to be recognized as a boot disk, it has to be formatted as a GUID partition on an Intel Mac.

        However, Linux distros are generally partitioned with the lowest common denominator in mind, or FAT32. So if you want a Linux distro to boot on an Intel Mac, you would need a specially crafted version of that distro, not the generic .ISO that is offered for use on PC hardware.

        I tested the USB stick that I used to install Moblin on my MSI Wind. Booting my iMac with the USB stick inserted and the Alt key pressed down did not display the USB stick as a boot disk. So, it seems you’re SOL if you want to use a generic Linux distro on your Intel Mac.

Comments are closed.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: