Add FreeBSD to Grub Menu

Antonio Olivares wingators at inbox.com
Tue Oct 2 13:20:58 UTC 2012



> -----Original Message-----
> From: mmarzantowicz at osdf.com.pl
> Sent: Tue, 02 Oct 2012 13:50:31 +0200
> To: test at lists.fedoraproject.org
> Subject: Re: Add FreeBSD to Grub Menu
> 
> On 02.10.2012 13:41, Antonio Olivares wrote:
>> 
>>> -----Original Message-----
>>> From: lists at colorremedies.com
>>> Sent: Mon, 1 Oct 2012 12:55:30 -0600
>>> To: test at lists.fedoraproject.org
>>> Subject: Re: Add FreeBSD to Grub Menu
>>> 
>>> 
>>> On Oct 1, 2012, at 6:12 AM, Antonio Olivares wrote:
>>> 
>>>> Somehow the menu entry is not added and the newer kernels are not
>>>> added
>>>> either :(
>>> That tells me you have not run
>>> grub2-mkconfig -o /boot/grub2/grub.cfg
>>> 
>>> Or you have a syntax error in the /etc/grub.d script you've added your
>>> FreeBSD entry to.
>>> 
>>> Chris Murphy
>>> 
>>> --
>> I have run the command above and it is not working. The newer kernels
>> are not added and the FreeBSD entry does not appear.  Something is wrong
>> and can't seem to find out what it is?
>> 
>> Regards,
>> 
>> 
>> Antonio
>> 
>> ____________________________________________________________
>> GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at
>> http://www.inbox.com/smileys
>> Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™
>> and most webmails
>> 
>> 
> 
> What is the diagnostic output of: grub2-mkconfig -o /boot/grub2/grub.cfg
> ?
> 
> 
> Mateusz Marzantowicz
> --

[root at localhost ~]# cd /etc/grub.d/
[root at localhost grub.d]# ls
00_header  20_linux_xen     30_os-prober  41_custom
10_linux   20_ppc_terminfo  40_custom     README
[root at localhost grub.d]# cat 40_custom 
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "FreeBSD 9.0" {
	insmod part_msdos
	set root='(hd0,msdos1)'
	chainloader +1
}

[root at localhost grub.d]# ./30_os-prober 
  No volume groups found
[root at localhost grub.d]# grub2-mkconfig -o /boot/grub2/grub.cfg 
Generating grub.cfg ...
Found theme: /boot/grub2/themes/system/theme.txt
Found linux image: /boot/vmlinuz-3.6.0-0.rc7.git1.4.fc18.i686
Found initrd image: /boot/initramfs-3.6.0-0.rc7.git1.4.fc18.i686.img
Found linux image: /boot/vmlinuz-3.6.0-0.rc6.git0.2.fc18.i686
Found initrd image: /boot/initramfs-3.6.0-0.rc6.git0.2.fc18.i686.img
Found linux image: /boot/vmlinuz-3.6.0-0.rc4.git2.1.fc18.i686
Found initrd image: /boot/initramfs-3.6.0-0.rc4.git2.1.fc18.i686.img
  No volume groups found
done
[root at localhost grub.d]# 

Yet still only boot to 

[root at localhost grub.d]# uname -a
Linux localhost.localdomain 3.6.0-0.rc2.git2.1.fc18.i686 #1 SMP Wed Aug 22 12:22:10 UTC 2012 i686 i686 i386 GNU/Linux


Regards,


Antonio

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth




More information about the test mailing list