Re: Adding Fedora15 to F16alpha grub2 menu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-2.6.40.3-0.fc15.x86_64 root=/dev/sda7 ro quiet etc 
> etc etc etc etc rd.xxxx=0 etc etc etc
> initrd /boot/initramfs-2.6.40.3-0.fc15.x86_64.img
> 
> 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@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe: 
> https://admin.fedoraproject.org/mailman/listinfo/test

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
change
# the 'exec tail' line above.

menuentry "Fedora (2.6.40-4.fc15.i686)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
        insmod ext2
        set root=(hd0,3)
        search --no-floppy --fs-uuid --set
93f664e9-9013-47b4-b5d8-1239af7c0605
        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!

-- 
thomas


-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test



[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux