This tutorial from The Geeky Linux shows us how to get PC-BSD and Crunchbang Linux to dual boot together.
This is a tutorial which shows how to dual boot Linux and PC-BSD 10. PC-BSD 10 uses ZFS as the file system and grub for the boot manager. I was able to successfully dual boot PC-BSD and CrunchBang Linux in my laptop.
I was able to achieve this after lots of trial and error methods. I have not found a valid guide in the internet to do it. All the tutorials were outdated or at least not working for me. I have spend a lot of time in the pc-bsd/freebsd irc channels and finally able to achieve this after trying out different suggestions from the irc members. Thanks to them all for the guidance.
If you want to dual boot PC-BSD, first install the Linux os (in this case, CrunchBang Linux) and then install PC-BSD 10. This is because most of the Linux OS won’t be able to detect ZFS (the default file system in PC-BSD 10). But PC-BSD grub will be able to detect EXT4 the default file system in most of the Linux distros. If you are looking for a tutorial for PC-BSD with UFS and Linux, you can find lot of guides in the interwebs. My guide only applies to PC-BSD with ZFS file system.
1. Install Crunch Bang Linux
2. Copy the relevant part from the Crunch Bang Linux grub menu. You can get it from the configuration file /boot/grub/grub.cfg . There will be lot of unwanted details in this menu but we will only need the one starts after the line “### BEGIN /etc/grub.d/10_linux ###” in this file .
For example, below given is the relevant part from my Crunch Bang Linux grub configuration :