booting multiple 'linuces' w/LILO

booting multiple 'linuces' w/LILO

Post by Daniel W. Moo » Tue, 26 Jul 1994 15:19:17



Can someone offer me a reason why it is that LILO always boots with the
_same_ kernel image , no matter which linux partition I'm booting from?

My lilo.conf with which I've installed LILO is included below. I'm trying
to make /dev/hdb2 (linux) boot with a default  SCSIKERN image, stored in
/vmlinuz on that partition; and make /dev/hda3 (linux2) boot with a
custom-compiled kernel (also called /vmlinuz, but stored instead on the
root of  /dev/hda3.)

I've  correctly taken the steps to make each of the two '/vmlinuz' files
into bootable images but LILO still seems to  want to use the SAME
image regardless which partition is being booted. That image is,
namely, the particular /vmlinuz from whichever partition LILO was last
installed.

This seems to imply that "image=/vmlinuz" is actually a part of the
GLOBAL LILO configuration within a system....  can somebody set me
straight on this?

-------------------------------------------------

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
#compact        # faster, but won't work on all systems.
delay = 300
vga = normal    # force sane state
ramdisk = 0     # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /vmlinuz
  root = /dev/hdb2
  label = linux
  append = " ncr5380=0x358,254,-1"
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /vmlinuz
  root = /dev/hda3
  label = linux2
# Linux bootable partition config ends
# DOS bootable partition config begins
other = /dev/hda1
  label = dos
  table = /dev/hda
# DOS bootable partition config ends

-------------------------------------------------

Sincerely,
        Dan M.

 
 
 

booting multiple 'linuces' w/LILO

Post by Chuck Slivko » Wed, 27 Jul 1994 09:15:30



) Can someone offer me a reason why it is that LILO always boots with the
) _same_ kernel image , no matter which linux partition I'm booting from?
[snip]
) This seems to imply that "image=/vmlinuz" is actually a part of the
) GLOBAL LILO configuration within a system....  can somebody set me
) straight on this?

I may be wrong here, but inorder for LILO to boot another kernel,
that image must be available directly to lilo when it is installed/
updated. What I mean by this is that you'd have to have the other
drive mounted (say /mnt, for example), then use 'image = /mnt/vmlinuz'
as the other labeled image.  If this is way off, i apologize, but i think
this is how i managed to setup an option to boot from a kernel image
on a Linux-formatted floppy mounted on /mnt 'image=/mnt/vmlinuz'

--

Computer Science        Youngstown State University

Youngstown, OH:  All the *, crime & * of New York at half the cost!

 
 
 

booting multiple 'linuces' w/LILO

Post by Mark Smi » Thu, 28 Jul 1994 04:25:31



: ) Can someone offer me a reason why it is that LILO always boots with the
: ) _same_ kernel image , no matter which linux partition I'm booting from?
: [snip]
: ) This seems to imply that "image=/vmlinuz" is actually a part of the
: ) GLOBAL LILO configuration within a system....  can somebody set me
: ) straight on this?

: I may be wrong here, but inorder for LILO to boot another kernel,
: that image must be available directly to lilo when it is installed/
: updated. What I mean by this is that you'd have to have the other
: drive mounted (say /mnt, for example), then use 'image = /mnt/vmlinuz'
: as the other labeled image.  If this is way off, i apologize, but i think
: this is how i managed to setup an option to boot from a kernel image
: on a Linux-formatted floppy mounted on /mnt 'image=/mnt/vmlinuz'

   Lilo must be able to find the image you're trying to install before
you install lilo..  If lilo config's correctly, then all should be well.
While booting, I don't think it matters if the drive is mounted,
seeing as nothing is _mounted_ at the time.  Lilo just needs to know
where your kernel image is located on the drive so it knows where
to started executing code.  

   Back to the origonal message, if you want to boot multiple kernel
images, you must have multiple images in your lilo.conf file.  I'm not
on my Linux box right now to give you an example; perhaps someone
else can post one.  But with multiple images in lilo.conf, and all
kernels available to lilo when you install, everything should work
ok.  

--
Mark Smith                      |         ___ O    

KD6JTS                          |      |/\___/        
--------------------------------+---------------------
"Why won't Windows work on my Macintosh?"
        - The ultimate DFO error

 
 
 

booting multiple 'linuces' w/LILO

Post by Daniel W. Moo » Thu, 28 Jul 1994 13:40:55


: Can someone offer me a reason why it is that LILO always boots with the
: _same_ kernel image , no matter which linux partition I'm booting from?

[snip]

: This seems to imply that "image=/vmlinuz" is actually a part of the
: GLOBAL LILO configuration within a system....  can somebody set me
: straight on this?

I have been, in fact, set straight; my confusion was in thinking that the
dereference of '/vmlinuz' was done at boot- rather than install-time.

** sigh **  maybe we unix user '1-newbies' should stick to DOS
(no tomatoes, please) 'til Novell comes out with their commercial version
of Linux....


----                                                        ----
-    "I don't know exactly how 'Linux' should be pronounced.   -
-     I only know it should be pronounced more often."         -
----                                                        ----

 
 
 

1. Problems with installing two Linux's - 'setup' and 'lilo'

Hi,

I am trying to install two Linux distributions on two partitions of the same disk.
The idea is to install the new Slakware 3.0 ELF  and check it out before
discarding the old one. The problem is that I cannot really follow the logic
behind the 'setup' utility and 'lilo' program. The questions are:

  1. The 'setup' utility when run in my current Linux does not behave the
       same when run originally after installing with the original boot and root
       disks. Its 'TARGET' option does not ask for partition at all.  I have
       created two 'Linux Native' partitions (code 83) and the 'setup' does not
       display them. I looked into the script for 'setup'.  It seems to look for
       these partitions  but it  does not do anything with them. It simply
       displays directory / by default and accepts a new directory. No operations
       on partitions. Does it mean that there are two different versions of 'setup'
       utility?  Where is the version which asks for partitions, file system, formating, etc.

  2. The 'lilo'  is weird  too. It asks for partition and puts it as root in /etc/lilo.conf
       but the image file name is not relative  to the specified partition. Instead it
       seems to be relative to  the current partition. For example, when I put
           image=/zImage
             root=/dev/sda3

       lilo complains about missing file /zImage because it cannot find it on /dev/sda3
       partition and instead is looking for the currently installed /dev/sda1 partition.

  3. What is the way to install two independent Linux distributions? With lilo (which I would
      prefer to be on a floppy)?

Chris

2. The argument to end all pro-Linux arguments

3. HD Boot doesn't want to run LILO (I see 'LI')

4. Setting the default route

5. Can't boot lilo, getting 'Press a Key to Reboot'

6. Q: RedHat5.1 on AStation200

7. Can't boot Caldera -- LILO stops at 'LI'

8. Digital LK250 keyboard in Linux

9. Redhat 8.0: linux won't boot, both grub and lilo don't work

10. in 'getopt()', how to handle multiple options in the 'optarg' string?

11. Multiple 'connect' on ONE 'socket'?

12. can't boot 'boot.flp' version 2.2.5

13. FreeBSD 4.2 won't boot - 'read error' on boot after install