LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2009, 09:11 PM   #1
buccaneere
Member
 
Registered: Nov 2007
Posts: 213

Rep: Reputation: 16
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
 
Old 03-05-2009, 09:25 PM   #2
T74marcell
Member
 
Registered: Mar 2009
Posts: 102

Rep: Reputation: 18
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

Last edited by T74marcell; 03-14-2009 at 01:01 AM.
 
Old 03-05-2009, 09:50 PM   #3
buccaneere
Member
 
Registered: Nov 2007
Posts: 213

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by T74marcell View Post
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

Last edited by buccaneere; 03-05-2009 at 09:52 PM.
 
Old 03-05-2009, 10:20 PM   #4
buccaneere
Member
 
Registered: Nov 2007
Posts: 213

Original Poster
Rep: Reputation: 16
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?

Last edited by buccaneere; 03-05-2009 at 10:25 PM.
 
  


Reply



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
grub using the wrong grub.conf file Erik99 Linux - Newbie 2 02-20-2008 09:34 PM
Maxtor Onetouch II: symlink points to wrong target Robert S Linux - Hardware 2 12-23-2007 03:26 PM
rc.modules points to the wrong file. Is this a buG? arubin Slackware 2 10-27-2006 08:33 AM
File system points to MySQL db's in wrong cPanel nogerorob Linux - Software 0 04-18-2006 09:24 PM
DVDROM-device points to the wrong hd.. howto fix? Debianewb Linux - Hardware 2 10-28-2002 07:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration