bootmanager confusion

Those Man pages sometimes hurt my head.
I have a tri-boot system Windows, FreeBSD, Linux. I am using a windows Acronis bootloader (it works flawlessly). This is on MBR Disk
I wanted to check out TridentOS, (I understand this is FreeBSD but, please humor me.)
I want the BSD bootloader on the ZFS part ion I installed TridentOS on, I drove my self nuts trying to figure it out reading the Man pages and Googling it.
I look at GPART(8), it looks like I need to use something with "-p partcode" or am I suppose to BOOT0CFG(8) "boot0cfg -s 2 ada0"
Could someone please walk me threw how to do this using a FreeBSD install disk.

My layout is : ada0 MBR
1 ntfs (windows)
2 freebsd
3 ebr (linux)


Thanks
 
Edit: This does not apply to MBR but only to GPT!

You can install the boot loader by creating a 512kB partition of type "freebsd-boot". Then install the bootcode with gpart.
Make sure you get the device names and partition indexes right! This can't be ephasized enough (I am writing this for myself).
Assuming your disk is ada0 and the new partition has index 4:
Code:
# Add a 512k partition for the boot code:
# new partition index = 4
# Make sure the index is right! Otherwise, data in other partition will be wrecked!!!
gpart add -t freebsd-boot -b 40 -s 1024 -l gptboothdd0 ada0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 4 ada0
 
But he doesn't have any GPT partitions. SirDice's suggestion should work without requiring any third party products.
 
Back
Top