Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
/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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.