Discussion Locked

LILO does not accept a new zImage

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I just configured a new kernel 2.2.16 on my Rad Hat 6.1 and it was compilled without errors. When I edited LILO Conf and ran LILO -v it prodused something like

Reading boot sector from /dev/hda
Merging with /boot/boot.b
Boot image: /boot/zImage
Kernel: zImage is too big

The fact is that new zImage is smaller than vmlinuz-2.2.12-20 I had before.
I boot to Win98 and ran fdisk /mbr, but it didn't help, after booting from the floppy to Linux I ran LILO again and got the same output :(
What's the problem?

2 replies

by hasse mcse/brainbench

Hi!

You need to do this.

When compiling the new kernel type:
make bzImage

If this dosen't work you need to do a:
make menuconfig
and remove some things to be statically linked into the kernel.
In other words make more stuff as modules.
/Hasse

by yarik

Thank you. That's what I did. I went through the procedure of configuration again and now it's compilled and lilo installed, but when I boot system, it says that System.map has wrong kernel version. How to build a new one? Could you help?

This discussion is closed to new replies.