LinuxQuestions.org
Review your favorite Linux distribution.
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 11-01-2016, 09:29 AM   #1
LiFo14
LQ Newbie
 
Registered: Jan 2016
Location: Russia
Distribution: Fedora, Mac OS, Gentoo
Posts: 24

Rep: Reputation: Disabled
Unhappy Dualboot Fedora and Freebsd with Grub2


Hi guys!

I'm using laptop with UEFI, GRUB (2.02~beta3) and Fedora 24 on it.
Yesterday I allocate space for the installation of FreeBSD. Everything were fine until I have started to add menu entry to GRUB.
And here is my problem. GRUB can not find ufs module (insmod ufs or insmod ufs2), doesn't know "kfreebsd". Also "chainloader" with "+1", "/boot/loader" or "/boot/kernel/kernel".
Renstalling grub2-efi, grub2-efi-modules, shim and os-probe not work

Code:
/dev/sda1: SEC_TYPE="msdos" UUID="F5B3-7A23" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="8e6bd39f-94d9-4b68-bc8c-070a4c93def4"
/dev/sda2: UUID="0dfbfde1-bdda-4bc1-8a1d-db9c2c436dc9" TYPE="ext4" PARTUUID="1d407b71-8916-4e82-822a-1489f6f0630a"
/dev/sda3: UUID="29ffa061-3297-47ec-b9db-030eddb52989" TYPE="swap" PARTUUID="6cf638b6-a49b-4e44-a344-9b82cf4f92d2"
/dev/sda4: UUID="58178c315ad96520" TYPE="ufs" PARTUUID="70ef023d-9fa5-11e6-b160-204747764c07"
/dev/sda5: UUID="612eee3e-93de-4166-bc97-31435205b6c2" TYPE="ext4" PARTLABEL="home" PARTUUID="13953edf-2bc9-40c7-92b7-3eae35529dc8"
/dev/sda6: UUID="5817a49bb3e5be02" TYPE="ufs" PARTUUID="97b612b0-9fa5-11e6-b160-204747764c07"
/dev/sda7: UUID="5817a49d1eb50e13" TYPE="ufs" PARTLABEL="freebsd-home" PARTUUID="a63390f3-9fa5-11e6-b160-204747764c07"
/dev/loop0: UUID="b62418da-bcd7-4495-a832-bb1c31c9deab" TYPE="xfs"
/dev/mapper/docker-8:2-921199-pool: UUID="b62418da-bcd7-4495-a832-bb1c31c9deab" TYPE="xfs"
/dev/sda8: PARTUUID="b0e3412e-9fa5-11e6-b160-204747764c07"
 
Old 11-01-2016, 10:49 AM   #2
LiFo14
LQ Newbie
 
Registered: Jan 2016
Location: Russia
Distribution: Fedora, Mac OS, Gentoo
Posts: 24

Original Poster
Rep: Reputation: Disabled
solution

I had to copy all from "/usr/lib/grub/x86_64-efi/" to "/boot/efi/EFI/fedora/x86_64-efi/". Just because files ufs2.mod and bsd.mod require lots of other *.mod files. The solution is pretty rough, but this works!

Also /etc/grub.d/40_custom looks like:
Code:
menuentry "FreeBSD" {
   insmod ufs2
   insmod bsd
   set root=(hd0,gpt6)
   chainloader /boot/boot1.efi
}
 
Old 11-04-2016, 07:55 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.3, MX-18, Mandrake
Posts: 4,462

Rep: Reputation: Disabled
Just an additional aside: When I some time ago tried to boot FreeBSD directly with grub2 I learned that "kfreebsd" was not supported(?) anymore and grub could not use ufs2. See also http://www.linuxquestions.org/questi...er-4175447040/
 
1 members found this post helpful.
  


Reply


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
[SOLVED] Dualboot Fedora and Freebsd with Grub2 LiFo14 Linux - Laptop and Netbook 1 11-02-2016 02:10 AM
Grub2 and freebsd problems. humid Slackware 20 02-11-2013 12:57 AM
I can't get grub2 to boot FreeBSD j1alu *BSD 12 02-11-2011 06:50 PM
Booting FreeBSD iso grub2 jmc1987 Linux - Newbie 3 01-20-2011 08:03 PM
FreeBSD/Slackware dualboot sether *BSD 18 09-01-2004 10:57 AM

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

All times are GMT -5. The time now is 09:33 AM.

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