LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-24-2003, 07:21 AM   #1
osx
LQ Newbie
 
Registered: Mar 2003
Distribution: Slackware 9.0/Red Hat 9.0
Posts: 22

Rep: Reputation: 15
LILO Boot problems :(


Hi

Current setup

hda = Win 2k and Slackware 8.1
hdb = Red Hat 7.3

LILO has been installed to MBR on hda
Using LILO on hdb as well

I've managed to get them all booting and up and running BUT ...

When booting Red Hat from hard disk a module fails to load (not at PC ATM so can't tell you what it says exactly ) - basically I think it's the ethernet module because I am unable to activate the ethernet interface when the system is up

When I boot from floppy Red Hat works fine :/

For my LILO configuration that's installed on the MBR of hda I have altered lilo.conf so that it contains the info to boot Red Hat
Of the top of my head it says
label = RedHat
image = /boot/vmlinuz
root = /dev/hdb3 # the root partition for redhat
read-only

My question is does anyone know what's going on??

Is it possible it's using some info from hda ??

How does it know to use the boot partition from hdb (hdb1) and not the one used by Slackware on hda (hda2)??

Any help would be really appreciated

Thanks

OSX
 
Old 03-24-2003, 08:14 AM   #2
sidey
Member
 
Registered: Mar 2003
Location: Essex UK
Distribution: rh 8.0 bsd 5.0 slack 9.0 rc2 crux
Posts: 147

Rep: Reputation: 15
try adding

map=/boot/System.map in the lilo.conf

or wherever System.map is not neccesarily /boot
 
Old 03-24-2003, 08:15 AM   #3
osx
LQ Newbie
 
Registered: Mar 2003
Distribution: Slackware 9.0/Red Hat 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the reply

I'll give it a try when I get home (eventually )

OSX

 
Old 03-24-2003, 06:09 PM   #4
osx
LQ Newbie
 
Registered: Mar 2003
Distribution: Slackware 9.0/Red Hat 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Well I tried adding the map and it didn't want to know :/

I think I've found the problem now.

Basically it appears to be using the slackware Kernel from /dev/hda2 rather than the RedHat Kernel from /dev/hdb1.

The problem is how in my redhat section of lilo.conf can I add something to tell it to look on /dev/hdb1???

Anyway here's a copy of my full lilo.conf if it helps.

boot = /dev/hda
message = /boot/boot_message.txt
prompt
lba32
timeout = 50
change-rules
reset
vga = 773
# vga = normal
# DOS bootable partition config begins
other = /dev/hda1
label = Windows
table = /dev/hda

# Slackware bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda5
label = Slackware
read-only

# Red Hat bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdb3
label = RedHat
read-only


And when running /sbin/lilo I get

Warning: Int 0x13 function 8 and function 0x48 return different
head/sector geometries for BIOS drive 0x80
Warning: Int 0x13 function 8 and function 0x48 return different
head/sector geometries for BIOS drive 0x81
Added Windows *
Added Slackware
Added RedHat

(Which I've always had BTW)

If anyone's got any ideas then I'd really appreciate it

OSX

 
Old 03-24-2003, 10:43 PM   #5
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Quote:
image = /boot/vmlinuz
root = /dev/hda5
label = Slackware
read-only

# Red Hat bootable partition config begins
image = /boot/vmlinuz
You are using the same kernel for both Slack and RH. You need
to have separate a kernel for Slack (call it, vmlinuz.slack) and a
kernel for RH (call it, vmlinuz.rh) in the directory that is accessed
by lilo when you run "lilo". If /boot does not reside on its own
partition, then you need to copy /boot/vmlinuz from your Slack
partition to /boot/vmlinuz.slack on your RH partition (or vice versa
with appropriate name changes). Then edit both of your
lilo.confs and rerun lilo (on either distro). To be sure, you don't
really need to have both distros using a boot loader (since only is
in residence at any given time, but it's safer to have the same
lilo.conf just in case. . .).

If /boot has its own partition (the recommended way for
multi-Linux systems), then just copy all the relevant kernels there
with the correct names, and make sure your lilo.conf files are
set up correctly.

I never worry about the warnings on the drive geometry, but if
you are concerned, you can probably google for an answer.

You should also change your lilo.conf to make Slack the default,
it makes your computer much more stable.

Last edited by moses; 03-24-2003 at 10:45 PM.
 
Old 03-25-2003, 03:46 AM   #6
sidey
Member
 
Registered: Mar 2003
Location: Essex UK
Distribution: rh 8.0 bsd 5.0 slack 9.0 rc2 crux
Posts: 147

Rep: Reputation: 15
# Red Hat bootable partition config begins
other=/dev/hdb1 (add this)
image = /boot/vmlinuz
root = /dev/hdb3
label = RedHat
read-only

that should solve it
 
Old 03-25-2003, 07:51 AM   #7
osx
LQ Newbie
 
Registered: Mar 2003
Distribution: Slackware 9.0/Red Hat 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Hi there

Well I tried adding the line
other = /dev/hdb1
aswell as various other things but it still doesn't want to work

When I added the above line it basically gave me a 4th option in the boot menu

I think the only thing I can do is to copy the kernel accross to the boot partition on /dev/hda and as moses says maybe rename them.

(Renaming won't cause any problems will it?)

Do I have to copy any other files across??

PS - I do have seperate partitions for each /boot

Cheers

OSX

 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LILO boot problems bjojoi Linux - Newbie 1 02-23-2005 01:09 PM
LILO boot problems statikuz Linux - Software 1 09-01-2003 06:55 PM
LILO boot problems ubiquitous_z Linux - Newbie 2 08-01-2003 05:15 PM
LILO boot problems? james.farrow Linux - General 10 07-18-2003 01:26 PM
problems with lilo boot up again razod Linux - Newbie 9 04-20-2003 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:40 AM.

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
Open Source Consulting | Domain Registration