This is an updated version of my tutorial.
Screwed this guide up, now read:
http://ubuntuforums.org/showthread.php?t=1683062
First things first, you will need:
- 1GB or larger flash drive
- rEFIt (Link at the bottom)
- A linux installation, virtual machine, or live cd
- A Mac OS X installation/installation disk
- Administrator permissions
- gparted (comes on most linux live cd's)
- hfsplus/hfsprogs for hfs+ support in linux
Alright
Step one (in linux):
- Format your USB key with an MBR partiton table.
- Add an 8MB ext3 partition named "GRUB" for simplicity.
- Add a 16MB hfs+ partiton.
- Use the rest of your disk as FAT32.
Step two (also in linux):
- Mount your ext3 GRUB partiton
- Open terminal and do "sudo grub-install --root-directory=<mountpoint> /dev/myusb", of couse replacing <mountpoint> with the mount point and myusb with the correct sdX.
- If you get an error saying that there is no bios boot partition (which you shouldn't), open gparted and select the grub partition and select the flag "bios_grub".
- Close GParted if it is open and reopen it.
- Set the boot flag on the GRUB partition.
- Copy all of the contents of your live cd iso or cd (including the hidden folder ".disk") to your fat partiton.
- Skip the following steps in the step two if you don't want persistence
- In terminal create a zero'd out file called casper-rw in the fat partiton with "dd if=/dev/zero of=/media/LIVE/casper-rw". Replace the /media/LIVE with the mountpoint again.
- Now type "mkfs.ext4 /path/to/casper-rw" and follow the instructions if there are any
Step three (in mac):
- Open the rEFIt dmg and copy the "efi" folder to the hfs+ partiton.
- Locate the file called "enable.sh" in the efi folder
- Open a terminal and type "sudo " and then the path to the enable.sh. (You can find it by dragging the file into the terminal)
Step four:
- Reboot your computer holding the option key
- Select rEFIt on your USB drive (If it doesn't appear take it out and plug it back in or boot all the way up and then reboot again)
- Select "Linux on HD" that has a picture of a flash drive on it.
- You will now be at the GRUB prompt, so type the following:
Of course take out the persistent part if you didn't use the persistence file.Code:root (hd0,3) linux /casper/vmlinuz boot=casper persistent initrd /casper/initrd.lz boot
LINKS
rEFIt: http://refit.sourceforge.net/
Ubuntu live cd: http://www.ubuntu.com/desktop/get-ubuntu/download
Bookmarks