- Ubuntu (live CD may work, haven't tested) I used 9.04 and assume you do too
- a blank usb stick, a small one is fine
- an internet connection
insert your usb stick
open a terminal, sudo -s then type df to check where it is & where it's mounted, note the position & unmount the stick.
(I will use /dev/sdb as the example device and LinOSX as the volume label & mount point for the usb stick, substitute your own values)
Use
CODE
fdisk /dev/sdb
to remove whatever partitions you have and create a new primary partition, type AF, active.
Use mkfs.hfsplus to make a new hfs+ filesystem on your new partition. I used:
CODE
mkfs.hfsplus -v LinOSX -U 0 -G 0 /dev/sdb1
which sets the volume name to LinOSX and the user & group to 0:0
Next we install the chameleon bootloader:
download & unpack the latest chameleon binary package, in this case Chameleon2.0RC1-r431
cd to the i386 directory inside, and, making sure that /dev/sdb1 is unmounted, do:
CODE
dd if=boot0 of=/dev/sdb bs=440 count=1
dd if=boot1h of=/dev/sdb1
dd if=boot1h of=/dev/sdb1
next we mount the stick, I used:
CODE
mkdir /media/LinOSX
mount -t hfsplus -w /dev/sdb1 /media/LinOSX
mount -t hfsplus -w /dev/sdb1 /media/LinOSX
then, true to a long tradition, I typed:
CODE
touch /media/LinOSX/arse
to check for writeability.
All being well you should now be able to write to this drive *but only as root* so,
CODE
cp boot /media/LinOSX
mkdir /media/LinOSX/Extra
mkdir /media/LinOSX/Extra
and now cp the contents of "Optional Extras" into the Extra folder you just created
The stick needs a decryptor, I chose Appledecrypt, google for it, download, and drop Appledecrypt.kext into Extra/Extensions with cp -R, kexts are folders in linux.
a Disabler.kext might be useful, same procedure.
when you have all the kexts you think you'll need to boot, check the ownerships are root:root on all the kexts (they should be) and if necessary
CODE
chmod -R 755 Extra/Extensions
You're done!
sometimes the stick refuses to mount readwrite, after being mounted on OS X, try fsck'ing it
