LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 11-01-2016, 09:08 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-02-2016, 02:10 AM   #2
thecarpy
Member
 
Registered: Apr 2005
Location: France
Distribution: Devuan, Suse, Slackware
Posts: 130

Rep: Reputation: 21
Wink

To get UFS support in grub, you need to use the one that ships with FreeBSD ...

Try this:

# For booting FreeBSD
title My FreeBSD
root (hd0,3)
chainloader +1


Assuming /dev/sda4: UUID="58178c315ad96520" TYPE="ufs" PARTUUID="70ef023d-9fa5-11e6-b160-204747764c07" is where your FreeBSD kernel is.

The (hd0,3) syntax is zero-based, so hd0 is hda/sda, "3" in this case is "4" in sda/hda speak.

Another example:

# For booting FreeBSD
title My FreeBSD
root (hd0,5)
chainloader +1

You can also try:

# For booting FreeBSD
title My FreeBSD
search --fs-uuid --set 97b612b0-9fa5-11e6-b160-204747764c07
chainloader +1


# For booting FreeBSD
title My FreeBSD
search --fs-uuid --set 5817a49bb3e5be02
chainloader +1

Above three assuming /dev/sda6: UUID="5817a49bb3e5be02" TYPE="ufs" PARTUUID="97b612b0-9fa5-11e6-b160-204747764c07" is where your FreeBSD kernel is.


Also, if the above does not work, what does grub say when you try chainloader +1, could you tell us what menu entries you tried and what grub reports for each.

Sorry, but there was not much to go by in your initial post ;-)

FreeBSD, the OS of the gods ... if you have an SSD, get the latest and greatest FreeBSD and watch the IO performance ;-)

Last edited by thecarpy; 11-02-2016 at 02:21 AM.
 
  


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
Grub2 and freebsd problems. humid Slackware 20 02-11-2013 12:57 AM
configure Grub2 to boot FreeBSD cccc Debian 5 06-26-2012 10:48 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 - Laptop and Netbook

All times are GMT -5. The time now is 05:56 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