How to use windows bootloader to boot several operating systems
- Install Windows to some free primary partition.
- Install FreeBSD to another free primary partition on the same hard disk.
- During FreeBSD installation do not install a boot manager:
"Leave the master Boot Record untouched". - Boot to FreeBSD and perform that command:
dd if=/dev/ad0s1 of=bootsect.bsd bs=512 count=1
- Note that ad0s1
is a slice where you installed FreeBSD.
It could have a different number in your case. - Copy bootsect.bsd to the floppy disk or some shared media.
- Run fdisk and set Windows partition bootable.
- Reboot and boot to Windows.
- Copy bootsect.bsd to C:\.
- Edit C:\boot.ini
file and add this line to the end:
C:\BOOTSECT.BSD="FreeBSD"
- Reboot.
- Enjoy.