LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 06-26-2006, 04:58 PM   #1
michaelsr
Member
 
Registered: Jan 2005
Location: Berkshire, UK
Distribution: Fedora Core 7, 8
Posts: 38

Rep: Reputation: 15
Unhappy Grub not booting after a yum update


I am running FC4 x86_64 and did a yum update. In the process my kernel updated. But now I just get "GRUB" in the top left corner of my screen when I boot. I have looked at my grub.conf file and it looks basically ok except for the location of the files.
Top line reads:
#boot=/dev/sda
is this used or is it really just a comment?
root (hd0,0)

I know that sda is my raid for data only
sdb1 is /boot
sdb2 is /
sdc1 is swap
sdc2 is another data drive used for MySQL temporary files

I have tried editing the hd0,0 to hd1,0 and hd1,1, to no avail.

I have also tried to reinstall grub by doing an upgrade of my system. As no kernel files are installed grub is not reinstalled... is there a way to force a grub install?

Anything to avoid rebuilding the system - please!

Thanks,
Michael.
 
Old 06-26-2006, 06:33 PM   #2
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
You said you looked at your grub.conf. Could you post the contents of your grub.conf up here, as well as the file listing of /boot?
 
Old 06-27-2006, 02:08 AM   #3
michaelsr
Member
 
Registered: Jan 2005
Location: Berkshire, UK
Distribution: Fedora Core 7, 8
Posts: 38

Original Poster
Rep: Reputation: 15
Post

Information as requested - hope this helps.
ls of /boot
Code:
System.map-2.6.11-1.1369_FC4
System.map-2.6.11-1.1369_FC4smp
System.map-2.6.14-1.1653_FC4
System.map-2.6.14-1.1653_FC4smp
System.map-2.6.15-1.1831_FC4
System.map-2.6.15-1.1831_FC4smp
System.map-2.6.15-1.1833_FC4
System.map-2.6.15-1.1833_FC4smp
System.map-2.6.16-1.2111_FC4
System.map-2.6.16-1.2111_FC4smp
System.map-2.6.16-1.2115_FC4smp
System.map-2.6.17-1.2139_FC4
config-2.6.11-1.1369_FC4
config-2.6.11-1.1369_FC4smp
config-2.6.14-1.1653_FC4
config-2.6.14-1.1653_FC4smp
config-2.6.15-1.1831_FC4
config-2.6.15-1.1831_FC4smp
config-2.6.15-1.1833_FC4
config-2.6.15-1.1833_FC4smp
config-2.6.16-1.2111_FC4
config-2.6.16-1.2111_FC4smp
config-2.6.16-1.2115_FC4smp
config-2.6.17-1.2139_FC4
grub
initrd-2.6.11-1.1369_FC4.img
initrd-2.6.11-1.1369_FC4smp.img
initrd-2.6.14-1.1653_FC4.img
initrd-2.6.14-1.1653_FC4smp.img
initrd-2.6.15-1.1831_FC4.img
initrd-2.6.15-1.1831_FC4smp.img
initrd-2.6.15-1.1833_FC4.img
initrd-2.6.15-1.1833_FC4smp.img
initrd-2.6.16-1.2111_FC4.img
initrd-2.6.16-1.2111_FC4smp.img
initrd-2.6.16-1.2115_FC4smp.img
initrd-2.6.17-1.2139_FC4.img
lost+found
ls_boot
vmlinuz-2.6.11-1.1369_FC4
vmlinuz-2.6.11-1.1369_FC4smp
vmlinuz-2.6.14-1.1653_FC4
vmlinuz-2.6.14-1.1653_FC4smp
vmlinuz-2.6.15-1.1831_FC4
vmlinuz-2.6.15-1.1831_FC4smp
vmlinuz-2.6.15-1.1833_FC4
vmlinuz-2.6.15-1.1833_FC4smp
vmlinuz-2.6.16-1.2111_FC4
vmlinuz-2.6.16-1.2111_FC4smp
vmlinuz-2.6.16-1.2115_FC4smp
vmlinuz-2.6.17-1.2139_FC4
grub.conf
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/sdb2
#          initrd /initrd-version.img
#boot=/dev/sdb
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.17-1.2139_FC4)
        root (hd0,0)
        kernel /vmlinuz-2.6.17-1.2139_FC4 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.17-1.2139_FC4.img
title Fedora Core (2.6.16-1.2115_FC4smp)
        root (hd0,0)
        kernel /vmlinuz-2.6.16-1.2115_FC4smp ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.16-1.2115_FC4smp.img
title Fedora Core (2.6.16-1.2111_FC4)
        root (hd0,0)
        kernel /vmlinuz-2.6.16-1.2111_FC4 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.16-1.2111_FC4.img
title Fedora Core (2.6.16-1.2111_FC4smp)
        root (hd0,0)
        kernel /vmlinuz-2.6.16-1.2111_FC4smp ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.16-1.2111_FC4smp.img
title Fedora Core (2.6.15-1.1833_FC4smp)
        root (hd0,0)
        kernel /vmlinuz-2.6.15-1.1833_FC4smp ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.15-1.1833_FC4smp.img
title Fedora Core (2.6.15-1.1833_FC4)
        root (hd0,0)
        kernel /vmlinuz-2.6.15-1.1833_FC4 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.15-1.1833_FC4.img
title Fedora Core (2.6.15-1.1831_FC4)
        root (hd0,0)
        kernel /vmlinuz-2.6.15-1.1831_FC4 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.15-1.1831_FC4.img
title Fedora Core (2.6.15-1.1831_FC4smp)
        root (hd0,0)
        kernel /vmlinuz-2.6.15-1.1831_FC4smp ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.15-1.1831_FC4smp.img
title Fedora Core (2.6.14-1.1653_FC4smp)
        root (hd0,0)
        kernel /vmlinuz-2.6.14-1.1653_FC4smp ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.14-1.1653_FC4smp.img
title Fedora Core (2.6.14-1.1653_FC4)
        root (hd0,0)
        kernel /vmlinuz-2.6.14-1.1653_FC4 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.14-1.1653_FC4.img
title Fedora Core (2.6.11-1.1369_FC4smp)
        root (hd0,0)
        kernel /vmlinuz-2.6.11-1.1369_FC4smp ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.11-1.1369_FC4smp.img
title Fedora Core-up (2.6.11-1.1369_FC4)
        root (hd0,0)
        kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.11-1.1369_FC4.img
 
Old 06-27-2006, 07:51 AM   #4
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
What happens if you try the following at the grub prompt:
Code:
grub> root (hd1,0)
grub> kernel /vmlinuz-2.6.17-1.2139_FC4 ro root=/dev/sdb2
grub> initrd /initrd-2.6.17-1.2139_FC4.img
grub> boot
If it gives an error after any of these lines, please post the error up here.
 
Old 06-27-2006, 08:07 AM   #5
michaelsr
Member
 
Registered: Jan 2005
Location: Berkshire, UK
Distribution: Fedora Core 7, 8
Posts: 38

Original Poster
Rep: Reputation: 15
Gethyn: I am sorry if I was not clear at the beginning. I do not get a grub prompt, just the word GRUB at the top left of the screen. I would kill for a prompt of any kind :-)

Another observation though. I can boot from two drives sda and sdb (I have enabled each in turn via fdisk) and still get the same result. I really think that I need to find a way of fooling anaconda into installing grub for me again.

Other suggestions greatly appreciated. Thanks, Michael.
 
Old 06-27-2006, 09:42 AM   #6
michaelsr
Member
 
Registered: Jan 2005
Location: Berkshire, UK
Distribution: Fedora Core 7, 8
Posts: 38

Original Poster
Rep: Reputation: 15
Thumbs up

Grub reinstalled - problem solved. Thanks to all contributors!
 
Old 07-09-2006, 12:05 PM   #7
fiedorow
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
Re: Grub not booting after a yum update

I experienced the exact same problem. I think the problem might be that yum installed new versions of the grub stage1 and/or stage2 files which were incompatible with the older version of the grub boot loader in the MBR (which presumably yum didn't update). Can anyone confirm this?
 
  


Reply

Tags
grub, update, yum, yum update


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-02-2010 11:42 PM
When i update my system with yum update Yihya Linux - Newbie 1 02-22-2006 09:33 AM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 12:48 PM
trying to update via yum and update fails lnxmacusr Fedora 4 12-17-2004 03:12 PM
yum update kernel* = deleted grub?? lucastic Linux - General 4 03-27-2004 01:23 PM


All times are GMT -5. The time now is 05:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration