Adding Fedora15 to F16alpha grub2 menu

Thomas Mittelstaedt tmstaedt at
Thu Aug 25 06:25:28 UTC 2011

Am Mittwoch, den 24.08.2011, 22:40 -0600 schrieb Petrus de Calguarium:
> I have installed F16α and with it grub2 to the MBR of /dev/sda. I am 
> experimenting happily with F16, but I am unable to add F15 to the 
> grub2 boot menu.
> I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o 
> /boot/grub2/grub.cfg, but my F15 entry never shows up in the menu, 
> even though it is in grub.cfg.
> When I start the computer and select the (c)ommand line in grub, I am 
> able to enter:
> set root=(hd0,7)
> linux /boot/vmlinuz- root=/dev/sda7 ro quiet etc 
> etc etc etc etc rd.xxxx=0 etc etc etc
> initrd /boot/initramfs-
> and then type boot, I am able to boot F15 without problem.
> Entering the same into the grub.cfg file doesn't work.
> How can I get a F15 menu entry in grub.cfg?
> -- 
> test mailing list
> test at
> To unsubscribe: 

Well, F16 has grub2 according to your mail. I recently upgraded my main
machine to grub2 as well and I have the following entry to boot my
Fedora 15, which still has legacy grub, on a separate partition via:

### BEGIN /etc/grub.d/40_custom ###
# 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
# the 'exec tail' line above.

menuentry "Fedora (2.6.40-4.fc15.i686)" {
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        insmod ext2
        set root=(hd0,3)
        search --no-floppy --fs-uuid --set
        linux /vmlinuz-2.6.40-4.fc15.i686 ro
root=/dev/mapper/vg_myfedora15-lv_root rd_LVM_LV=vg_myfedora15/lv_root
rd_LVM_LV=vg_myfedora15/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM
LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
        initrd /initramfs-2.6.40-4.fc15.i686.img

### END /etc/grub.d/40_custom ###

And this works. Maybe, you need to put /<kernel> instead
of /boot/<kernel>?

Hope that helps!


More information about the test mailing list