Installing Slackware 14.2 and OS X multi-boot on a single hard drive

This seems to be the simplest way, and relies on using Grub as the main bootloader.

1. First install Hackintosh as per earlier blog entry.  Chameleon/Chimera will be your OS X bootloader.

2. Before installing Slackware, partition your hard disk as you prefer using cgdisk (or your preferred gpt partition editor), but in addition, create a small type EF02 partition first.  I made a 10MB partition and had to put this in the middle of the disk which seems to be no problem at all.

3. Proceed with install as usual, but skip LILO install

4. Change the mount point to that of the Linux partition:

# chroot /mnt

5. Point grub.cfg to your OS X partition as instructed here:

http://www.chris-reilly.org/blog/technotes/grub-boot-chameleon/

# vi /etc/grub.d/40_custom

6. Now this is the weird part, first install grub on the EF02 type partition you created in 2. above,

slightly modifying the instructions here:

http://docs.slackware.com/howtos:slackware_admin:installing_with_gpt_without_uefi#grub_2

but force install on the boot partition you created in 2. rather than the MBR.

# grub-install –modules=part_gpt /dev/sda3 (if this is where you put it in 2.)

# grub-mkconfig -o /boot/grub/grub.cfg

7. Finally, install grub in the MBR as per here:

http://docs.slackware.com/howtos:slackware_admin:installing_with_gpt_without_uefi#grub_2

e.g.

# grub-install –modules=part_gpt /dev/sda

# grub-mkconfig -o /boot/grub/grub.cfg

6. Reboot, and enjoy!

Leave a Reply

Your email address will not be published. Required fields are marked *