Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 06-22-2012, 03:59 AM   #1
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

Rep: Reputation: 15
Lightbulb Grub2 : Ubuntu, Fedora, OpenBSD

Hi Folks,

I am trying to have tri-boot in my laptop, just after updating the ISO with a clean new install. My previous environment was working just fine with the tri-boot, and I did exact the thing now as before.

I can't figure out why this time is not working.

Could someone maybe spot what is missing, what might be.

Here is how my partition is organized:

Then open to include:

# nano /etc/grub.d/40_custom
exec tail -n +3 $0
menuentry "OpenBSD"
{         set root=(hd0,1)
          chainloader +1
menuentry "Fedora 17" {
        set root=(hd0,2)
        chainloader +1
Saved it. Then run:
# update-grub
Which gives the errors:
/usr/lib/os-probes/mounted/90bsd-distro: 17: /usr/lib/os-probes/mounted/90bsd-distro: gawk: not found
Found unknown Linux distribution on /dev/sda9
error: syntax error.
error: Incorrect command.
error: syntax error.
error: line no: 189
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/ file attached.
The grub2 setup is runing on Ubuntu.

Can someone shed some light on it with any suggestions? All comments are highly welcome!

Last edited by threaderslash; 06-23-2012 at 07:22 AM.
Old 06-22-2012, 09:16 PM   #2
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
install grub2 from Fedora
no custom entries needed except for the openbsd entry.

Known Issue
1 members found this post helpful.
Old 06-22-2012, 10:05 PM   #3
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 588

Rep: Reputation: 119Reputation: 119
Try putting single-quotes around your root= parameter:
set root='(hd0,1)'
If that does not help, post your /boot/grub/ file.
Old 06-22-2012, 11:40 PM   #4
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

Original Poster
Rep: Reputation: 15

Thanks for the suggestions!

Here is what did that worked for me. Hope it can be helpfull for others too.

Switched the grub2 to Fedora, running the ISO DVD > install > upgrade current version. This has restored the grub on FC. With grub on FC, it has recognized Ubuntu automatically, i.e. the dual boot is working now.

Then, the only missing piece was the OpenBSD to get the triboot running. Performing the next steps solved it:

# yum install os-prober
# gedit /etc/grub.d/31_openbsd
In the file 31_openbsd include
#!/bin/sh -e
echo "Adding OpenBSD to GRUB 2 menu"
cat << EOF
menuentry "OpenBSD" {
set root=(hd0,1)
chainloader +1
save the file... then on terminal:

# chmod 777 31_openbsd
# grub2-mkconfig -o /boot/grub2/grub.cfg
Reboot and enjoy your triboot with grub2.


dual-boot, grub 2

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
how to install the fedora 16 without grub2 was4444 Fedora - Installation 3 10-05-2011 09:03 AM
why is grub2 not in fedora 14 ? linuxwhacko Fedora 3 02-07-2011 05:11 AM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 02:39 PM
[SOLVED] How to remove GRUB2 & Ubuntu from MacBook Pro with Windows 7, Ubuntu and OS X? lupusarcanus Linux - Newbie 8 07-18-2010 06:38 PM
Booting Fedora 12 from Ubuntu's Grub2, ERROR: NOT AN ASSIGNEMENT mitchell7man Linux - Newbie 4 02-04-2010 02:17 AM

All times are GMT -5. The time now is 09:26 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration