LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 05-02-2010, 11:21 AM   #1
wiliweld
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Rep: Reputation: 0
GRUB2 - FreeBSD-8.0 does not show up in triple boot menu, dual boot menu it does..


Hello Family,

(summary = FreeBSD entry will not even show on boot menu after running update-grub!)

I have four laptops, three are 40-gig drives, dual booted with FreeBSD-8.0 and Ubuntu-9.10 and those work fine. My triple boot (XP+FreeBSD-8.0+Ubuntu-9.10) Lenovo-T60p with a 100-gig drive will "NOT" even add the FreeBSD entry to the menu whereas all the others do. Here is the entry that is exactly the same in all the laptops and FreeBSD-8.0 is in the same partition on all the laptops.

This is the /etc/grub.d/40_custom file addon that works on the others

#################################
menuentry "FreeBSD-8.0" {
set root=(hd0,3)
chainloader +1
}
#################################

Last edited by wiliweld; 05-02-2010 at 11:22 AM.
 
Old 05-02-2010, 11:32 AM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
I'm curious, can the grub2 entries be edited with vi or another editor?
 
Old 05-02-2010, 06:28 PM   #3
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
It is odd that it isn't shown at all.
Did you run 'update-grub' after you edited the 40_custom?
Ah, sorry, yes you said so.

If yes, i would simply try to put it in /boot/grub/grub.cfg and overwrite it with -> :x! (just to test if it works at all. If it does you may move on with troubleshooting).

You might also try 'os-prober'.
 
Old 05-02-2010, 09:12 PM   #4
wiliweld
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Manually edit /boot/grub/grub.cfg (for testing)

Quote:
Originally Posted by j1alu View Post
It is odd that it isn't shown at all.
Did you run 'update-grub' after you edited the 40_custom?
Ah, sorry, yes you said so.

If yes, i would simply try to put it in /boot/grub/grub.cfg and overwrite it with -> :x! (just to test if it works at all. If it does you may move on with troubleshooting).

You might also try 'os-prober'.
Good idea, from what I read it's only overwritten when "update-grub" is run. If it does work I could "chattr +i /boot/grub/grub.cfg" to keep the file from being written to even by root!

Thanks again. Good catch!
 
Old 05-02-2010, 10:31 PM   #5
wiliweld
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Manually edit /boot/grub/grub.cfg (did not work)

Quote:
Originally Posted by wiliweld View Post
Good idea, from what I read it's only overwritten when "update-grub" is run. If it does work I could "chattr +i /boot/grub/grub.cfg" to keep the file from being written to even by root!

Thanks again. Good catch!
Hmm, just went to go force feed the stanza into the file and it's already there! Jeez, can't understand why GRUB2 won't even print it on the menu. Menu entries get printed even if they are in error and don't boot. This entry is not even showing up. And again, I've got three(3) other laptops here with Ubuntu-9.10 + FreeBSD-8.0 that update the menu with the EXACT STANZA. Phew..
 
Old 05-03-2010, 06:14 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Grub2's grub2.cfg can be edited no different from the Grub1's menu.lst.

As the previous Grub1 the new Grub2 can be used to boot any installed system manually so make a Grub floppy or Grub CD (put nothing but Grub2 on it) can save a lot of booting problems. See Task K1 & K2 in Just booting tips of my signature for making Grub2 floppy or CD.
 
Old 05-03-2010, 10:14 AM   #7
wiliweld
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by saikee View Post
Grub2's grub2.cfg can be edited no different from the Grub1's menu.lst.

As the previous Grub1 the new Grub2 can be used to boot any installed system manually so make a Grub floppy or Grub CD (put nothing but Grub2 on it) can save a lot of booting problems. See Task K1 & K2 in Just booting tips of my signature for making Grub2 floppy or CD.
Thanks for the posting, I appreciate it. Your signature did not appear in this post... Could you post the URL of the steps to make a "grub" boot cd?

I still can't understand why just the FreeBSD stanza in /boot/grub/grub.cfg does not print when it does in other Ubuntu/FreeBSD laptops I have.

Thanks
 
Old 05-03-2010, 01:05 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Just click the red one
Code:
Linux user started Jun 2004 - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
Just cloning tips for cloning XP/Vista/Linux/BSD/Solaris or migration to a bigger hard disk
Just booting tips A collection of booting tips
 
  


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
LXer: So HERE'S how you get into grub2 if there's no boot menu in Ubuntu Lucid 10.04 LXer Syndicated Linux News 0 03-23-2010 02:20 PM
Creating a Grub2 boot-cd with a (grub.cfg) menu ..my solution ssenuta Linux - General 3 02-04-2010 06:16 PM
[SOLVED] Dual boot, grub doesn"t show vista, no menu.lst mike11 Linux - Newbie 4 11-22-2009 07:56 PM
Installed Fedora as dual boot but Grub boot menu is not showing up nilocjin Linux - Newbie 4 06-03-2009 02:09 PM
Vista, XP Ubuntu Triple Boot. What's the XP Entry for menu.lst? TerabyteUK Linux - Software 3 07-12-2007 10:59 PM


All times are GMT -5. The time now is 12:07 AM.

Main Menu
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