LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Kernel mix up and lilo (https://www.linuxquestions.org/questions/linux-software-2/kernel-mix-up-and-lilo-42814/)

lachlan 01-26-2003 01:23 AM

Kernel mix up and lilo
 
Hi,
I have MDK 9.0,Redhat 8.0,Win98,and used to boot into Linux with boot floppies.Tried triple booting,and ran into a problem with Redhat 8.0.
Firstly I used MDK boot config. and lilo to set up dual booting,works just fine.Edited MDK lilo to boot too Redhat 8.0.When I rebooted I had the choice ofMDK 9.0,Win98 and Redhat 8.0,so far so good.
Selected Redhat 8.0 and ran into into big problems just after the Welcome to Red Hat line in the boot up script,lots of failure messages and just hung for ever at Stops Starting System Logger.
Noticed that one of the lines refered to -2.4.19-16MDK,the Redhat version is -2.4.18-14.
From MDK9.0 tried editing RH 8.0 part of lilo: image=/boot/vmlinuz and initrd=/boot/initrd.img to read image=/boot/vmlinuz-2.4.18-14 and initrd=/boot/initrd-2.4.18-14.img,but when I saved the edit with /sbin/lilo I recieved a warning that say's that this is not a dir. or a file.Here is my lilo.conf file.
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
vga=normal
prompt
timeout=200

image=/boot/vmlinuz
label=linux
root=/dev/hdb5
initrd=/boot/initrd.img
vga=788
read-only
other=/dev/hda1
label=win
image=/boot/vmlinuz
label=linuxrh8
root=/dev/hdb2
read-only
initrd=/boot/initrd.img
vga=788


"/etc/lilo.conf" 23L, 299C 18,14 All

Drive info.
Disk /dev/hdb: 255 heads, 63 sectors, 4865 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 523 4096575 83 Linux
/dev/hdb3 524 574 409657+ 82 Linux swap
/dev/hdb4 575 1227 5245222+ 5 Extended
/dev/hdb5 575 668 755023+ 83 Linux
/dev/hdb6 669 718 401593+ 82 Linux swap
/dev/hdb7 719 1227 4088511 83 Linux

Command (m for help):

Redhat is first then MDK,Win98 is on the other drive.

Cheers

Lachlan

DavidPhillips 01-26-2003 07:06 AM

the best way to do this is to have one /boot partition that both use. just have the names of the kernels and initrd images different. Also if you don't want to do that just put all of the /boot files from both systems in both /boot folders

something like this

image=/boot/vmlinuz-2.4.19-16mdk
label=Mandrake-9.0
root=/dev/sda2
initrd=/boot/initrd-2.4.19-16mdk.img
append="quiet devfs=mount"
vga=785
read-only
image=/boot/vmlinuz-2.4.18-19.7.x
label=RedHat-7.3
root=/dev/hda5
initrd=/boot/initrd-2.4.18-19.7.x.img
append="hdc=ide-scsi"
vga=785
read-only
other=/dev/hda1
label=WinXP
table=/dev/hda
other=/dev/fd0
label=Floppy
unsafe


The reason is when you run lilo the images will have to be in /boot or it won't find them. your file is just setting up the same kernel for both images and when you boot into the redhat root filesystem with the mandrake kernel it is not configured to work right. I would bet that the partition where redhat is does not contain the modules for the mandrake kernel


example /boot folder

Code:

[david@firedragon david]$ ls /boot
boot.0300                kernel.h@                  System.map@
boot.b                    kernel.h-2.4.19-16mdk      System.map-2.4.18-18.7.x
chain.b                  lost+found/                System.map-2.4.18-19.7.x
config@                  map                        System.map-2.4.19-16mdk
config-2.4.18-18.7.x      message@                  us.klt
config-2.4.18-19.7.x      message-graphic            vmlinux-2.4.18-18.7.x*
config-2.4.19-16mdk      message-text              vmlinux-2.4.18-19.7.x*
grub/                    module-info@              vmlinuz@
initrd-2.4.18-18.7.x.img  module-info-2.4.18-18.7.x  vmlinuz-2.4.18-18.7.x
initrd-2.4.18-19.7.x.img  module-info-2.4.18-19.7.x  vmlinuz-2.4.18-19.7.x
initrd-2.4.19-16mdk.img*  os2_d.b                    vmlinuz-2.4.19-16mdk*


DavidPhillips 01-26-2003 07:11 AM

It's also possible to use the same kernel for all distros as long as it's configured to work with your / filesystem

the correct modules must be in place on both systems

lachlan 01-27-2003 02:34 AM

Thanks David,the trifecta is up and running

Lachlan

DavidPhillips 01-27-2003 06:17 PM

kewl


All times are GMT -5. The time now is 06:34 PM.