Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-29-2017, 01:01 PM   #1
Registered: Sep 2016
Location: Webster MA USA
Posts: 241

Rep: Reputation: Disabled
Question Any way to adapt GRUB to use FreeBSD etc.?

I remember reading somewhere that either FreeBSD or GRUB itself can be adapted (tweaked?) so that the latter "sees" the former as a valid Linux and will boot into it. I understand the different BSD flavors have their own bootloaders, so maybe going in the opposite direction is better (i.e., a FreeBSD loader that can "see" and boot, for instance, my current install)?

Old 06-29-2017, 05:01 PM   #2
LQ Guru
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
As no-one else has replied, can I suggest that you search the internet for grub bsd. There is a plethora of articles on the subject.
Old 06-29-2017, 05:16 PM   #3
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Some Notes I have:
Aug 16, 2016, 04:02:57 PM
Ubuntu and FreeBSD dualboot menu entry: Ubu on sda / FreeBSD on sdb
menuentry "FreeBSD" --class freebsd --class bsd --class os {
insmod ufs2
insmod bsd
insmod part_gpt
set root=(hd1,2)
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/adap2
set kFreeBSD.vfs.root.mountfrom.options=rw
set kFreeBSD.hw.psm.synaptics_support=1
It was for LinuxMint and FreeBSD that I used this.

and I'm pretty sure I got that info from this board.

Last edited by Habitual; 06-29-2017 at 05:17 PM.
Old 06-29-2017, 10:07 PM   #4
Registered: Mar 2008
Posts: 20,988

Rep: Reputation: 3406Reputation: 3406Reputation: 3406Reputation: 3406Reputation: 3406Reputation: 3406Reputation: 3406Reputation: 3406Reputation: 3406Reputation: 3406Reputation: 3406
The reason it doesn't see your install I can't say. Maybe the build of grub or filesystem support? Os-prober and grub-mkconfig could be at fault.

Seems it is supposed to be in there. From manual.
"Backward compatibility for booting FreeBSD, NetBSD, OpenBSD, and Linux. Proprietary kernels (such as DOS, Windows NT, and OS/2) are supported via a chain-loading function. "

However they further go on to say.
"Support non-Multiboot kernels

Support many of the various free 32-bit kernels that lack Multiboot compliance (primarily FreeBSD, NetBSD2, OpenBSD, and Linux). Chain-loading of other boot loaders is also supported.

Also see this.

The way it used to be done was to chain load the bsd loader from grub. And still works.

Last edited by jefro; 06-29-2017 at 10:17 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD in Grub parent's_basement *BSD 5 02-20-2009 05:47 AM
How to see FreeBSD with Grub aquaboot *BSD 1 04-27-2008 10:56 PM
FreeBSD and GRUB danielanson *BSD 4 07-24-2005 12:04 PM
Booting FreeBSD with Grub offaxis Linux - Newbie 3 09-21-2004 11:21 AM
Grub Bootloader not seeing FreeBSD cmf5150 Linux - Newbie 3 01-29-2004 08:59 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration