Computing.Net > Forums > Linux > Kernel 2.4 is compiled, but LILO wont boot it!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Kernel 2.4 is compiled, but LILO wont boot it!

Reply to Message Icon

Name: Craig
Date: January 22, 2001 at 20:39:03 Pacific
Comment:

Hi,
I have a 2.2.5-15 kernel linux system (red Hat 6.0) that is installed on /dev/hdc2. I boot it from a floppy.
Recently, I did compile my new kernel 2.4 on my Linux System.
On the boot floppy, I have LILO (On the hard drive, there's also LILO).
For booting my new kernel (/boot/vmlinuz-2.4.0), I added following stanza to /etc/lilo.conf (the one on the hard drive):
image=/boot/vmlinuz-2.4.0
label=linux2.4
root=/dev/hdc2
read-only.
Lilo was correctly saved (/sbin/lilo..or lilo would display "Added linux2.2 *
Added linux2.4, Added dos).
But when I rebooted the system
with the boot floppy, LILO wont display linux2.4 so that I can boot with it!
LILO would only show up the old linux.
I went adding the same stanza (as previously mentionned) to /etc/lilo.conf
that is on the floppy. But the problem is still the same: I do not have the choice to boot with linux2.4!
I tried "lilo -b /dev/fd0" (after /dev/fd0
have been correctly mounted), but system
weirdly complained that "open /boot/message: No such file or directory" (which is wrong!).
I got same error message when trying "lilo -C /mnt/floppy/etc/lilo.conf"!
******Here is my /etc/lilo.conf on hard drive*********
boot=/dev/hdc2
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.2.5-15
label=linux2.2
root=/dev/hdc2
read-only
image=/boot/vmlinuz-2.4.0
label=linux2.4
root=/dev/hdc2
read-only
other=/dev/hda1
label=dos
table=/dev/hda
*******Here's lilo.conf on boot floppy*****
boot=/dev/fd0
timeout=100
message=/boot/message
prompt
image=/vmlinuz-2.2.5-15
label=linux2.2
root=/dev/hdc2
image=/vmlinuz-2.2.5-15
label=rescue
append="load_ramdisk=2 prompt_ramdisk=1"
root=/dev/fd0
image=/vmlinuz-2.4.0
label=linux2.4
root=/dev/hdc2
other=/dev/hda1
label=dos
table=/dev/hda



Sponsored Link
Ads by Google

Response Number 1
Name: Adam
Date: January 24, 2001 at 00:14:08 Pacific
Reply:

One thing: check in the Makefile for your 2.4 kernel... about 2 screens down, there's a line that says something like
export=ROOT_DEV=CURRENT

Change the setting "current" to /dev/hdc2 if that's where you want to boot from (you're booting from the second hdd... master on channel 2?) If this doesn't work, maybe lilo has problems booting off a second or subsequent disk. Try adding a space between the 'stanzas' of different images (kernels) in lilo.conf. I'm not sure what else to suggest. Always remember to run lilo after changing lilol.conf. Just type "lilo" then enter. Good luck! If all else fails, backup and reinstall with a newer distribution. ;-)


0

Response Number 2
Name: blair
Date: January 30, 2001 at 23:12:25 Pacific
Reply:

A new system.map file is created in the kernel src when you compile a new kernel. You may have to copy this file to /boot and then make a symlink to the new one. See the kernel howto at ibiblio.org for more details.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Possible Sound Card Issue I HAVEN' T MUCH MONEY FOR...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Kernel 2.4 is compiled, but LILO wont boot it!

Can't Boot from my new kernel 2.4.5 www.computing.net/answers/linux/cant-boot-from-my-new-kernel-245/4362.html

Kernel 2.6 - with various hardware www.computing.net/answers/linux/kernel-26-with-various-hardware-/25807.html

rtl8139 for kernel 2.4.19 www.computing.net/answers/linux/rtl8139-for-kernel-2419/16804.html