LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 06-22-2012, 04:59 AM   #1
threaderslash
Member
 
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:

Code:
/OpenBSD
/FC17
/swap
/Ubuntu
Then open to include:

Code:
# 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:
Code:
# update-grub
Which gives the errors:
Code:
/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/grub.cfg.new 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 08:22 AM.
 
Old 06-22-2012, 10:16 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

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, 11:05 PM   #3
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

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

Original Poster
Rep: Reputation: 15
solved

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:

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

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


Reply

Tags
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 10:03 AM
why is grub2 not in fedora 14 ? linuxwhacko Fedora 3 02-07-2011 06:11 AM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 03: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 07:38 PM
Booting Fedora 12 from Ubuntu's Grub2, ERROR: NOT AN ASSIGNEMENT mitchell7man Linux - Newbie 4 02-04-2010 03:17 AM


All times are GMT -5. The time now is 02:47 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration