LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-12-2013, 01:11 PM   #1
SciGuy73
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
grub failing to dual boot after kernel upgrade


Hello,

I have an IBM x3850 with an LSI controller in a dual boot configuration running two RHEL 5.9 installations, one on /dev/sda, one on /dev/sdb.
Everything works fine booting from either disk. I'm using grub 0.97.

I'm booted from sdb, and I've applied patches that put a new 2.6.18-348.12.1.el5 kernel
on the box. Patches have not been applied to sda yet. When I reboot, I get:

-------
Booting 'Red Hat Enterprise Linux Server (2.6.18-348.12.1.el5)'

root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.18-348.12.1.el5 ro root=LABEL=/1

Error 15: File not found
-------

I boot the previous 348.6.1 on sdb and look at the /etc/grub.conf, and it looks ok to me:

-------
default=0
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-348.12.1.el5)
root (hd1,0)
kernel /vmlinuz-2.6.18-348.12.1.el5 ro root=LABEL=/1
initrd /initrd-2.6.18-348.12.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-348.6.1.el5)
root (hd1,0)
kernel /vmlinuz-2.6.18-348.6.1.el5 ro root=LABEL=/1
initrd /initrd-2.6.18-348.6.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-348.4.1.el5)
root (hd1,0)
kernel /vmlinuz-2.6.18-348.4.1.el5 ro root=LABEL=/1
initrd /initrd-2.6.18-348.4.1.el5.img
-------

I look in /boot on sdb and the 348.12.1 files are there.

I ask grub where it thinks things are:

-------
grub> find /vmlinuz-2.6.18-348.6.1.el5
(hd0,0)
(hd1,0)
grub> find /vmlinuz-2.6.18-348.12.1.el5
(hd1,0)
-------

That looks right.

/boot/grub/device.map says:
# this device map was generated by anaconda
(hd1) /dev/sdb

Now the interesting part. If I copy the 348.12.1 files to the sda /boot partition, the system boots
fine from sdb.

It's as if the boot process is looking on hd0/sda for files instead of hd1/sdb. But I don't see why, nor how to fix it.

I noticed this because if I patch sda first, then sdb, I have no problem. But if I do sdb first, it
always fails to boot. This isn't kernel specific, it happens every time a new kernel comes out.
What's going on?

Thanks

Last edited by SciGuy73; 07-12-2013 at 01:16 PM. Reason: Clarified that this happens on any kernel upgrade, not just 348.12.1
 
Old 07-13-2013, 12:36 PM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Quote:
I noticed this because if I patch sda first, then sdb, I have no problem. But if I do sdb first, it
always fails to boot. This isn't kernel specific, it happens every time a new kernel comes out.
What's going on?
Grub is confused. After upgrading the kernels at both hd0 and hd1, try reinstall the Grub with the "setup" command and reinstall unto the MBR.

Hope that helps.
 
Old 07-14-2013, 10:23 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.18-348.12.1.el5 ro root=LABEL=/
That indicates Grub is looking in the / of the filesystem for the vmlinuz file.

Quote:
I look in /boot on sdb and the 348.12.1 files are there
If the vmlinuz is in the boot directory, then the Grub entry should be: kernel /boot/vmlinuz...
 
Old 07-14-2013, 11:19 PM   #4
SciGuy73
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
That indicates Grub is looking in the / of the filesystem for the vmlinuz file.



If the vmlinuz is in the boot directory, then the Grub entry should be: kernel /boot/vmlinuz...

On this system /boot is a separate partition. Under that condition, the grub entry is properly just /. Note that grub finds files ok in /boot as / with the find command, and it boots when I copy the files to sda in /boot.
 
  


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
Install Win7 HP upgrade to Win XP on dual boot - GRUB problem? RealGomer Linux - Software 2 12-23-2010 02:22 AM
how to upgrade the grub for dual boot navin_karnam Linux - Desktop 2 02-07-2008 12:59 AM
FC5 upgrade, grub dual boot nightmare... agerkis Linux - Newbie 21 10-02-2006 05:08 AM
WinXP, FC-5 Dual Boot, Grub failing to load FC-5 (can't mount selected partition) rcmpsc Fedora 4 09-21-2006 09:53 AM
kernel upgrade/boot error with grub c_gebers Linux - Software 2 07-09-2003 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:40 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