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!
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
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.
Summary: I make a kernel(2.4.5)on my RedHat linux,next ,I excute LILO,but it'wrong .the message is that my hard disk>1024 cylinder.So I make a bootdisk use "mkbootdisk 2.4.5".When I boot computer use the new ...
Summary: Lately I upgrade to mandrake 10 , with kernel 2.6.3-8mdk, but the sound quality is in telephone quality , so I decide to get the kernel srpm from mandrake, in an attempt to compile the kernel myself a...
Summary: Would someone please help me out here. This distro is one of the best I've tried, BUT I can't get my eth0 to work. VecLinux's netconfig sets up my DFE-538TX with 8139too but it doesn't work. I can't ...