Just installed FreeBSD 8 on a spare partition of my computer. Was planning to use the Debian-installed GRUB to boot it, but when I went to edit GRUB config files they had changed beyond recognition. GRUB 2, it seems, is very different to GRUB 1. For the benefit of anyone else who has a similar setup, edit /etc/grub.d/40_custom
and add the following:
menuentry "FreeBSD" { set root=(hd0,1,a) chainloader +1 }
Make sure you edit the root parameter to the partition where you installed FreeBSD. Remember that “real” partitions are numbered 0,1.. and UFS partitions go a,b.. and you need both.
Now run update-grub2
and /boot/grub/grub.cfg
should be generated from the config files in /etc/grub.d
. Verify that FreeBSD menu item has been added and reboot.
ooh! is it pretty?!! blodgett wanted grub2. but new ubuntu puts it only on fresh installs, not upgrades, because it is not sufficiently straightforward to transfer automatically.
sad :( wanted the pretty.
November 28, 2009 @ 12:38 pm
i install grub 2. it is foul beyond words to configure and is not pretty at all. it also seems much slower at getting to the menu. grub 2 is FAIL.
November 28, 2009 @ 4:56 pm
> ooh! is it pretty?!!
Yes, it has customisable splash screens and things. Don’t think the default Debian splash is particularly pretty.
> grub 2 is FAIL.
Stefan and I had lots of problems with it when we were setting up the new VDS. Still it has some good features – like I think it will boot off LVM partitions.
November 28, 2009 @ 6:38 pm
blodgett still think it should be called gubl
November 29, 2009 @ 1:15 pm
[…] files they had changed beyond recognition. GRUB 2, it seems, is very different to GRUB 1 More here Make sure you edit the root parameter to the partition where you installed FreeBSD. Remember that […]
November 29, 2009 @ 4:42 pm
grub2 is not fail, it’s much more capable and better organized than grub-legacy. But it’s still new and has some bugs to iron out, at least in Sid.
You can have both grub configs side by side so nothing’s lost.
December 4, 2009 @ 8:53 am
hi, I followed this method you mentioned here, I step by step to edit /etc/grub.d/40_custom, and do update-grub2. then I reboot and select my desired boot freebsd OS, but it can’t boot.
my freebsd os is installed on my disk partition four, on debian its partitions show like below:
debian:/home/user# fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00014522
Device Boot Start End Blocks Id System
/dev/sda1 1 1216 9767488+ 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 1217 1398 1461915 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 1399 6079 37600132+ 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/sda4 * 6080 9730 29321176+ a5 FreeBSD
Partition 4 does not end on cylinder boundary.
what’s wrong with my daulboot system?
December 5, 2009 @ 8:31 am
Not sure what the problem is… make sure you’ve got your GRUB root for FreeBSD set to (hd0,3,a)
December 6, 2009 @ 7:23 pm
I have tried this:
menuentry “FreeBSD” {
set root=(hd0,3,a) //replace 3 with 4
chainloader +1 //or replace this for freebsd /boot/loader
}
all the possible case I’ve tried, but it also hang on after displaying message “load FreeBSD” .
I have try to entered into grub2, and changed the boot options, then I boot the system, it make no sense at all. when I use “ls (hd0, “, I want to it complete the available partition automatically, but it also hang no after display “partition 4”, somethings like below:
grub> ls (hd0,
(hd0,1) partition 1
linux filesystem ext3
(hd0,2) partition 2
unknow filesystem swap
(hd0,3) partition 3
linux filesystem ext3
(hd0,4) partition 4
[no message at all, hang no here]
that’s the main problem, I think. is it my disk partition error? but I’ve reinstalled freebsd. I am frustrated right now ;-(
December 8, 2009 @ 1:16 pm
[…] but I was able to dual boot it with Ubuntu and you should be able to do so as well. Here is a post found by […]
October 24, 2015 @ 6:55 pm