Solved

Lilo boot loader will not load the correct kernel image

Posted on 2004-09-30
6
784 Views
Last Modified: 2013-12-15
Hi,

I'm going to attempt to give you the full background story associated with my problem:

I recently upgraded a dual boot machine (RH 7 / W2K) to a (FC 1 / W2K) machine. In order to accomplish the upgrade I used Partition Magic to resize my Linux partitions because the FC1 upgrade required more space than what I had on my linux partition. PM resized my partitions successfully.

Next, I proceded to upgrade the RH7 partition of FC1. During the upgrade process, I selected the option "update current boot loader configuration". The upgrade process completed successfully.

Now, here's the problem:
When I reboot the machine after upgrade, lilo comes up, but when I select Redhat, it boots up the old kernel (2.4.5).

Here's a look at my lilo.conf:

boot=/dev/hda2
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
default=W_scanner

image=/boot/vmlinuz-2.4.22-1.2115.nptl
      label=2.4.22-1.2115.n
      read-only
      initrd=/boot/initrd-2.4.22-1.2115.nptl.img
      append="root=LABEL=/"

image=/boot/vmlinuz-2.4.5
      label=Linux-2.4.5
      read-only
      root=/dev/hda5

image=/boot/vmlinuz-2.4.18
      label=W_scanner

Any ideas???
 
0
Comment
Question by:annointed3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 12193471
> but when I select Redhat

I see "label=2.4.22-1.2115.n", "label=Linux-2.4.5", and "label=W_scanner". Redhat isn't in that list, so what are you specifying at the lilo boot prompt? Or are you using the Gui'ish Lilo?

Seems like I remember that Ctrl-X will take you out of the boot Gui and to a lilo boot prompt. From there you can "Boot: 2.4.22-1.2115.n".
0
 
LVL 11

Expert Comment

by:avizit
ID: 12196712
Just to make sure yuo havent forgotten anything ,

you have to run "lilo" after making any changes to your /etc/lilo.conf  for the changes to take effect

0
 

Author Comment

by:annointed3
ID: 12200524
jlevie,

When I initially boot up the machine., i get a dos like menu with the choices:

Linux Redhat 7.1
Windows 2000 Professional
Win2k Pro within VMware only.

This is from boot.ini file, haven't changed to say fedora yet.

Well anyway I select Linux RedHat 7.1, Another windows pops up, more graphical, has a picture of a man with a hat,I'm assuming this is lgui'ish ilo, and gives me the following options:

Linux 2.4.5
Backup
Wscanner

Why am I not getting an option for 2.4.22-1.2115.n, It's in the lilo.conf file. Even when I try Ctrl-X, and type in label (2.4.22-1.2115.n), i get no such image [tab] shows list. When I press TAB, fedora label is not showing.

avizit,

when typing lilo -v I get :
fatal : open /boot/boot.b: no such file or directory

Any ideas why I'm getting this error?





0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 40

Expert Comment

by:jlevie
ID: 12202626
> fatal : open /boot/boot.b: no such file or directory

Sounds like something didn't go quite right in the upgrade, There should exist a /boot/chain.b & /boot/.boot.b for lilo. I'd suggest re-installing the lilo package from the FC1 distribution and then executing a 'lilo -v'. Just to be safe, save a copy of /etc/lilo.conf and check after re-installing lilo to see that it didn't get clobbered.
0
 

Author Comment

by:annointed3
ID: 12217400
When I try to run rpm commands, I get the following:

rpm: error while loading sharded libraries: libbeecrypt.so.6: cannot enable executable stack as shared object requires: Error 14

0
 
LVL 40

Accepted Solution

by:
jlevie earned 250 total points
ID: 12217941
That sounds like more that the lilo upgrade "went south" during the upgrade to FC1. I think I'd give serious consideration to a backup of config & user data and then a full install of FC1.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question