[SOLVED] Dual booting Debian GNU/Linux and Debian GNU/kFreeBSD

folio's picture


I have a Debian GNU/Linux 7 installation (amd64). I installed Debian GNU/kFreeBSD 7 (amd64) on a spare partition. I was hoping to use the Grub of my GNU/Linux system to boot the GNU/kFreeBSD system.

A web search turned up these two suggestions:



Adding the following entry to the GNU/Linux’s /etc/grub.d/40_custom will boot the GNU/kFreeBSD system, but in Read-Only mode:

menuentry "Debian GNU/kFreeBSD 7.1" {
insmod ufs2
insmod bsd
search --fs-uuid --no-floppy --set=root 588ac3ce17b8c9a1
kfreebsd /boot/kfreebsd-9.0-2-amd64.gz
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ufsid/588ac3ce17b8c9a1
set kFreeBSD.vfs.root.mountfrom.options=rw

Obviously, I’d like to boot in Read-Write mode. So, I was wondering if anyone had any experience with Debian GNU/kFreeBSD and could offer any suggestions.

I’ve discovered a solution.

folio's picture

I’ve discovered a solution. My grub entry identified the root file system by ufsid (/dev/ufsid/588ac3ce17b8c9a1), but /etc/fstab identified it by device name (/dev/ada0s3). I edited fstab to use the ufsid and the system now boots in read-write mode.