Dualboot Ubuntu 9.10 & FreeBSD 8.0

cek partisi hardisk

$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090

Device Boot Start End Blocks Id System
/dev/sda1 1 4255 34178256 5 Extended
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 4256 9118 39061984+ a5 FreeBSD <-- PARTISI FREEBSD
Partition 2 does not end on cylinder boundary.
/dev/sda3 9119 38913 239328337+ 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/sda5 1 608 4883697 82 Linux swap / Solaris
/dev/sda6 609 4255 29294496 83 Linux



kebetulan.. partisi freeBSD ada di /dev/sda2

kemudian edit file grub.cfg

$ sudo gedit /boot/grub/grub.cfg

Tambahkan baris berikut

### FreeBSD ###
menuentry "FreeBSD 8.0" {
set root=(hd0,2,a) #<-- disesuaikan dengan partisi FreeBSD anda
chainloader +1
}

atau

### FreeBSD ###
menuentry "FreeBSD 8.0" {
set root=(hd0,2,a) #<-- disesuaikan dengan partisi FreeBSD anda
freebsd /boot/loader
}


*) misal.. jika partisi berada di /dev/sda1

### FreeBSD ###
menuentry "FreeBSD 8.0" {
set root=(hd0,1,a)
chainloader +1
}

GUDLUCK :P

Sumber : http://forums.freebsd.org/showthread.php?t=9050

1 comment: