LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

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)?

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

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
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
Habitual
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
Code:
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
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
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. https://www.gnu.org/software/grub/manual/grub.html
"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. https://www.linuxquestions.org/quest...er-4175447040/

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

https://unix.stackexchange.com/quest...rub2-boot-menu

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:08 PM.

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