LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Grub points to wrong kernel... (https://www.linuxquestions.org/questions/linux-software-2/grub-points-to-wrong-kernel-709513/)

buccaneere 03-05-2009 09:11 PM

Grub points to wrong kernel...
 
Grub is on partition with openSuSE, and it points to the wrong Fedora kernel - FC8 kernel, not the F10 pre-upgrade kernel.

Here's menu from Fedora:

Quote:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,3)
# kernel /boot/vmlinuz-version ro root=/dev/sda4
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,3)/boot/grub/splash.xpm.gz
hiddenmenu
title Upgrade to Fedora 10 (Cambridge)
kernel /boot/upgrade/vmlinuz preupgrade repo=hd::/var/cache/yum/preupgrade stage2=hd:UUID=cc9cedeb-1f14-4cf7-8b4e-ce05acd8c4e7:/boot/upgrade/install.img ks=hd:UUID=cc9cedeb-1f14-4cf7-8b4e-ce05acd8c4e7:/boot/upgrade/ks.cfg
initrd /boot/upgrade/initrd.img

title Fedora (2.6.23.1-42.fc8) <---This is the current entry that's in the OTHER GRUB.
root (hd0,3)
kernel /boot/vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.23.1-42.fc8.img

T74marcell 03-05-2009 09:25 PM

Set the line with the 'default' setting to 0. The relevant part should be:
Quote:

...
#boot=/dev/sda
default=0
timeout=5
...
Entries are identified in a numbering scheme starting with 0, so the first entry has the index number 0.

Arch Linux

buccaneere 03-05-2009 09:50 PM

Quote:

Originally Posted by T74marcell (Post 3466440)
Set the line with the 'default' setting to 0. The relevant part should be:

Entries are identified in a numbering scheme starting with 0, so the first entry has the index number 0.

I think I got you confused there T47marcell.

I do not boot with that menu. That's the Fedora menu that the update repository edited when I updated the Fedora version.

This is the menu that I boot with: (notice the LAST entry. I've copied and pasted, BUT, I don't know if that's right, and I do NOT want to find out that it's wrong...) The next to last entry points to the OLD Fedora kernel.
Quote:


# Modified by YaST2. Last modification on Tue Mar 3 06:49:14 EST 2009
default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.1
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.7-9-default root=/dev/disk/by-id/ata-ST3802110A_5LR74M8V-part2 resume=/dev/disk/by-id/ata-ST3802110A_5LR74M8V-part1 splash=silent showopts vga=0x317
initrd /boot/initrd-2.6.27.7-9-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.1
root (hd0,1)
kernel /boot/vmlinuz-2.6.27.7-9-default root=/dev/disk/by-id/ata-ST3802110A_5LR74M8V-part2 showopts ide=nodma apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
initrd /boot/initrd-2.6.27.7-9-default

title PCLOS
kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=/dev/hdh5 acpi=on resume=/dev/hdd5 splash=silent vga=788
initrd (hd0,4)/boot/initrd.img

title Fedora (2.6.23.1-42.fc8)
root (hd0,3)
kernel /boot/vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.23.1-42.fc8.img


title Upgrade to Fedora 10 (Cambridge) ??????????????????
kernel /boot/upgrade/vmlinuz preupgrade repo=hd::/var/cache/yum/preupgrade stage2=hd:UUID=cc9cedeb-1f14-4cf7-8b4e-ce05acd8c4e7:/boot/upgrade/install.img ks=hd:UUID=cc9cedeb-1f14-4cf7-8b4e-ce05acd8c4e7:/boot/upgrade/ks.cfg
initrd /boot/upgrade/initrd.img


buccaneere 03-05-2009 10:20 PM

I took the entry selection in red, which I presumed was correct, and added root designation to it from grub command line:



title Upgrade to Fedora 10 (Cambridge)
root (hd3,0)
kernel /boot/upgrade/vmlinuz preupgrade repo=hd::/var/cache/yum/preupgrade stage2=hd:UUID=cc9cedeb-1f14-4cf7-8b4e-ce05acd8c4e7:/boot/upgrade/install.img ks=hd:UUID=cc9cedeb-1f14-4cf7-8b4e-ce05acd8c4e7:/boot/upgrade/ks.cfg
initrd /boot/upgrade/initrd.img

/thread!!!


How do I thank myself?


All times are GMT -5. The time now is 03:21 AM.