LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2003, 02:23 AM   #1
lachlan
Member
 
Registered: Jan 2002
Location: New Zealand
Distribution: Mandrake 9.1,Suse 8.2
Posts: 139

Rep: Reputation: 15
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
 
Old 01-26-2003, 08:06 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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*

Last edited by DavidPhillips; 01-26-2003 at 08:16 AM.
 
Old 01-26-2003, 08:11 AM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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

Last edited by DavidPhillips; 01-26-2003 at 08:13 AM.
 
Old 01-27-2003, 03:34 AM   #4
lachlan
Member
 
Registered: Jan 2002
Location: New Zealand
Distribution: Mandrake 9.1,Suse 8.2
Posts: 139

Original Poster
Rep: Reputation: 15
Thanks David,the trifecta is up and running

Lachlan
 
Old 01-27-2003, 07:17 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
kewl
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgraded kernel, lilo.conf, didn't run /sbin/lilo dtashima Linux - Newbie 4 10-18-2004 12:21 PM
Slackware 10, custom 2.6.7 kernel, lilo, loads kernel very slowly entropyv Slackware 3 08-19-2004 07:06 PM
totem packaging and my kernel dont mix nephritis Linux - Software 0 08-18-2004 05:55 PM
No new kernel-option in LILO after editing lilo.conf corwax Debian 3 08-26-2003 09:55 PM
new kernel causes lilo crash; /sbin/lilo = Warning: device 0x0305 exceeds 1024 cylind dandysf Linux - Software 0 08-26-2003 05:50 PM


All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration