WilliamS Posted October 22, 2003 Report Share Posted October 22, 2003 I've just finished a (successful?) install of kernel-2.4.22, I'm using mdk 9.1, and when I reboot there is no choice of the new kernel. /etc/lilo.conf looks OK, and ran lilo -v; it shows the new kernel OK, /boot ... don't know... Am I dreaming? Is it possible to run 9.1 with this kernel? (Must get the head-scratching smiley) Quote Link to comment Share on other sites More sharing options...
bvc Posted October 22, 2003 Report Share Posted October 22, 2003 post lilo.conf, and the output of (as root) ls /lib/modules ls /boot Quote Link to comment Share on other sites More sharing options...
WilliamS Posted October 23, 2003 Author Report Share Posted October 23, 2003 Here it is - looks wrong, but what to do with it? boot=/dev/hdb map=/boot/map default="linux" keytable=/boot/us.klt prompt nowarn timeout=100 message=/boot/message menu-scheme=wb:bw:wb:bw disk=/dev/hdb bios=0x80 image=/boot/vmlinuz label="linux" root=/dev/hdb4 initrd=/boot/initrd.img append="devfs=mount hdd=ide-scsi acpi=off quiet" vga=788 read-only image=/boot/vmlinuz label="linux-nonfb" root=/dev/hdb4 initrd=/boot/initrd.img append="devfs=mount hdd=ide-scsi acpi=off" read-only image=/boot/vmlinuz label="failsafe" root=/dev/hdb4 initrd=/boot/initrd.img append="devfs=nomount hdd=ide-scsi acpi=off failsafe" read-only other=/dev/hdb1 label="dos" table=/dev/hdb other=/dev/fd0 label="floppy" unsafe image=/boot/vmlinuz-2.4.21-0.25mdk label=2421-25 root=/dev/hdb4 read-only optional vga=788 append="devfs=mount hdd=ide-scsi acpi=off quiet" initrd=/boot/initrd-2.4.21-0.25mdk.img #The following boot section was added by buildkernel on #Wed Oct 22 21:44:46 EDT 2003 #Please feel free to move this section, edit it, and remove these comments. image=/boot/bzImage-2.4.22-1 label=2.4.22-1 root=/dev/hdb4 read-only optional vga=788 append="devfs=mount hdd=ide-scsi acpi=off quiet" initrd=/boot/bzImage-2.4.22-1 #End of autoinstall -------------------------------------------------------------------------- william@localhost william]$ ls /lib/modules 2.4.21-0.13mdk/ 2.4.21-0.25mdk/ 2.4.22/ [william@localhost william]$ ----------------------------------------------------------- william@localhost william]$ ls /boot bkinstall-2.4.22-1* initrd-2.4.21-0.25mdk.img message-text boot.0340 initrd.img@ System.map@ bzImage-2.4.22-1 kernel.h@ System.map-2.4.21-0.13mdk config@ kernel.h-2.4.21-0.13mdk System.map-2.4.21-0.25mdk config-2.4.21-0.13mdk kernel.h-2.4.21-0.25mdk us.klt config-2.4.21-0.25mdk map vmlinuz@ grub/ message@ vmlinuz-2.4.21-0.13mdk initrd-2.4.21-0.13mdk.img message-graphic vmlinuz-2.4.21-0.25mdk [william@localhost william]$ Quote Link to comment Share on other sites More sharing options...
bvc Posted October 23, 2003 Report Share Posted October 23, 2003 What is "optional" for?...anyone know? Not needed so #comment it out. Your initrd is your kernel image (initrd=/boot/bzImage-2.4.22-1) :shock:...what's up with that? AND, you don't have a initrd-xxx.img for the new kernel (or am I blind?). Make one as root with; mkinitrd /boot/initrd-2.4.22-1.img 2.4.22-1 then change lilo.conf to; #The following boot section was added by buildkernel on#Wed Oct 22 21:44:46 EDT 2003 #Please feel free to move this section, edit it, and remove these comments. image=/boot/bzImage-2.4.22-1 label=2.4.22-1 root=/dev/hdb4 read-only #optional vga=788 append="devfs=mount hdd=ide-scsi acpi=off quiet" initrd=/boot/initrd-2.4.22-1.img #End of autoinstall ...runlilo -v and reboot Quote Link to comment Share on other sites More sharing options...
WilliamS Posted October 23, 2003 Author Report Share Posted October 23, 2003 Well, that didn't work :( [root@localhost william]# mkinitrd /boot/initrd-2.4.22-1.img 2.4.22-1 /lib/modules/2.4.22-1 is not a directory. [root@localhost william]# What sort of file/directory is it looking for? Quote Link to comment Share on other sites More sharing options...
bvc Posted October 23, 2003 Report Share Posted October 23, 2003 oops sorry...you posted it above william@localhost william]$ ls /lib/modules2.4.21-0.13mdk/ 2.4.21-0.25mdk/ 2.4.22/ [william@localhost william]$ so do; mkinitrd /boot/initrd-2.4.22-1.img 2.4.22 Quote Link to comment Share on other sites More sharing options...
WilliamS Posted October 23, 2003 Author Report Share Posted October 23, 2003 mkinitrd command worked this time, but still no choice on boot. What are you seeing that I am missing? (I don't know what to look for anyway!) Way past my bedtime. Back tomorrow. Quote Link to comment Share on other sites More sharing options...
WilliamS Posted October 23, 2003 Author Report Share Posted October 23, 2003 Thought that choices during boot came from /etc/lilo.conf , but it seems not. Any ideas? Anyone? Quote Link to comment Share on other sites More sharing options...
bvc Posted October 24, 2003 Report Share Posted October 24, 2003 it does. Do you want to post the entire lilo.conf again? Lilo sure is a pain...I wish ML would go grub for the default :P Quote Link to comment Share on other sites More sharing options...
WilliamS Posted October 24, 2003 Author Report Share Posted October 24, 2003 I did the last part of the kernel install from http://www.cs.technion.ac.il/~cs236340/con...ernel_comp.html but that doesn't work either boot=/dev/hdb map=/boot/map default="linux" keytable=/boot/us.klt prompt nowarn timeout=100 message=/boot/message menu-scheme=wb:bw:wb:bw disk=/dev/hdb bios=0x80 image=/boot/vmlinuz label="linux" root=/dev/hdb4 initrd=/boot/initrd.img append="devfs=mount hdd=ide-scsi acpi=off quiet" vga=788 read-only snip image=/boot/vmlinuz-2.4.21-0.25mdk label=2421-25 root=/dev/hdb4 read-only optional vga=788 append="devfs=mount hdd=ide-scsi acpi=off quiet" initrd=/boot/initrd-2.4.21-0.25mdk.img #The following boot section was added by buildkernel on #Wed Oct 22 21:44:46 EDT 2003 #Please feel free to move this section, edit it, and remove these comments. image=/boot/bzImage-2.4.22-1 label=2.4.22-1 root=/dev/hdb4 read-only vga=788 append="devfs=mount hdd=ide-scsi acpi=off quiet" initrd=/boot/initrd-2.4.22.img image=/boot/vmlinuz-2.4.22 root=/dev/hdb4 label=2.4.22 initrd=/boot/initrd-2.4.22.img read-only vga=788 append="devfs=mount hdd=ide-scsi acpi=off quiet" #End of autoinstall I'm doing this in hdb4 which shares with win98. Thought maybe that's why lilo does't show....Bah. I did the newer mdk kernel the same way, and it's OK. Duh! Quote Link to comment Share on other sites More sharing options...
bvc Posted October 24, 2003 Report Share Posted October 24, 2003 these 2 image=/boot/bzImage-2.4.22-1 initrd=/boot/initrd-2.4.22.img need to match. So mkinitrd again for /boot/initrd-2.4.22-1.img so that you'll have image=/boot/bzImage-2.4.22-1 initrd=/boot/initrd-2.4.22-1.img and take out; image=/boot/vmlinuz-2.4.22 root=/dev/hdb4 label=2.4.22 initrd=/boot/initrd-2.4.22.img read-only So that all you have for the new kernel is; image=/boot/bzImage-2.4.22-1 label=2.4.22-1 root=/dev/hdb4 read-only vga=788 append="devfs=mount hdd=ide-scsi acpi=off quiet" initrd=/boot/initrd-2.4.22-1.img Quote Link to comment Share on other sites More sharing options...
WilliamS Posted October 24, 2003 Author Report Share Posted October 24, 2003 Did that, so here's the latest copy: image=/boot/vmlinuz-2.4.21-0.25mdk label=2421-25 root=/dev/hdb4 read-only optional vga=788 append="devfs=mount hdd=ide-scsi acpi=off quiet" initrd=/boot/initrd-2.4.21-0.25mdk.img image=/boot/bzImage-2.4.22-1 label=2.4.22-1 root=/dev/hdb4 read-only vga=788 append="devfs=mount hdd=ide-scsi acpi=off quiet" initrd=/boot/initrd-2.4.22-1.img then lilo, reboot. No Difference. Its seems that the fault is not in lilo.config. I will read http://www.redhat.com/docs/manuals/linux/R...wn-booting.html until it makes sense. (takes time) Quote Link to comment Share on other sites More sharing options...
Qchem Posted October 24, 2003 Report Share Posted October 24, 2003 optional: Omit the image if it is not available at map creation time. This is useful to specify test kernels that are not always present. I think removing that would be a good idea Quote Link to comment Share on other sites More sharing options...
WilliamS Posted October 25, 2003 Author Report Share Posted October 25, 2003 Trashed that copy of mdk - its a test copy anyway. On the way to re-install I noticed that kernel-2.4.22 was finally showing in the boot menu. Too late! Reason was that on reboot, it looks at the lilo.config in hda. Always. So now I've unplugged the hda and re-installed. I get: Boot image: /boot/bzImage-2.4.22-1 Fatal: open /boot/bzImage-2.4.22-1: No such file or directory when I run lilo -v Tried omitting image (this means the first line?) and no good. Nothing shows on boot menu. Used "Find" and there is no such file. there is a bzImage file in /usr/src/linux-2.4.22/arch/i386/boot but no version number. There is also in /boot a vmlinuz (no version number) in italic which is a link, suspect it's for 2.4.22. Quote Link to comment Share on other sites More sharing options...
bvc Posted October 25, 2003 Report Share Posted October 25, 2003 could be....run file /boot/vmlinuz but if you've reinstalled the distro, you'll have to reinstall the kernel. Do you have a sepearate /boot partition? If so, the only kernels that can be booted to are the ones in /lib/modules/<version> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.