我已经安装了Ubuntu10.04作为我的主要操作系统,并且我在一个不同的分区中安装了PC:/dev/sda4而没有安装它的引导加载程序。我发现我需要编辑/etc/grub.d/40_custom来为PC添加一个条目。不过,到目前为止,似乎什么都起不到作用。
编辑:这类工作,但没有完全启动操作系统,然后它要求我的MOUNTROOT分区。
menuentry "PC-BSD 8.1" {
insmod ufs2
set root=(hd0,4)
kfreebsd /boot/kernel/kernel
}下面选择的答案是正确的。如果您使用Linux进行双引导,我建议您不要像文档所示的那样安装PC-BSD引导程序,除非您很痛苦。
发布于 2010-08-20 09:27:55
这就是我在/etc/grub.d/40_custom中的内容。只需记住用正确的条目替换hd0,3
menuentry 'FreeBSD 8.0 64bit' --class os {
set root='(hd0,3)'
chainloader +1
}发布于 2016-06-16 01:46:10
这里提到的另一个解决方案是:将FreeBSD添加到GRUB2 2启动菜单,它是:
menuentry "FreeBSD" --class freebsd --class bsd --class os {
insmod ufs2
insmod bsd
set root=(hd0,1)
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ada0s1a
set kFreeBSD.vfs.root.mountfrom.options=rw
set kFreeBSD.hw.psm.synaptics_support=1
}此解决方案适用于我三重启动Ubuntu12.04、LFS 7.9和FreeBSD 10.3
https://unix.stackexchange.com/questions/859
复制相似问题