Booting multiple Linux ver with Lilo

Booting multiple Linux ver with Lilo

Post by Graham Daniel » Sat, 29 Dec 2001 10:25:00



I have a question about booting more than one version / installation
of Linux on my Celeron 900 PC via LILO.

I have been using Red Hat 7.1 on a 6GB hard disk, and have
downloaded Red Hat 7.2, which I would like to try before switching
to it.

I want eventually to be running a dual-boot Win98SE and Linux 7.2
system, and so I installed Win98 and then RH72 on the 20 GB disk.

The LILO.CONF from this new 20 GB disk is shown below:

----------------------------------
# cat lilo.conf
prompt
timeout=50
default=linux_rh72
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4.7-10
        label=linux_rh72
        initrd=/boot/initrd-2.4.7-10.img
        read-only
        root=/dev/hda3

other=/dev/hda1
        optional
        label=Win98SE
-----------------------------------

What I would like to do is to install my RH71 ( 6 GB hdd ) as a
secondary drive and then to be able to "triple boot" into Win98,
RH72 or my old RH71 at will, so that I can continue to do my
day-to-day stuff on RH71 and play with RH72 until I am happy to
switch to it permanently.

I assume that I could do something like adding:

------------------------------------------
image=/boot/vmlinuz-2.x,x,x-x
        label=linux_rh71
        initrd=/boot/initrd-2.x.x.x-x.img
        read-only
        root=/dev/hdb2
-------------------------------------------

(or similar) to my current LILO.CONF and running "lilo".

Will this work?  And is this how I should go about it?  Any
"GOTCHA's" I should beware of?

Thanks in advance,
Graham Daniell

 
 
 

Booting multiple Linux ver with Lilo

Post by David Efflan » Sat, 29 Dec 2001 11:30:31



> I have a question about booting more than one version / installation
> of Linux on my Celeron 900 PC via LILO.

> I have been using Red Hat 7.1 on a 6GB hard disk, and have
> downloaded Red Hat 7.2, which I would like to try before switching
> to it.

> I want eventually to be running a dual-boot Win98SE and Linux 7.2
> system, and so I installed Win98 and then RH72 on the 20 GB disk.

> The LILO.CONF from this new 20 GB disk is shown below:

> ----------------------------------
> # cat lilo.conf
> prompt
> timeout=50
> default=linux_rh72
> boot=/dev/hda
> map=/boot/map
> install=/boot/boot.b
> message=/boot/message
> lba32

> image=/boot/vmlinuz-2.4.7-10
>    label=linux_rh72
>    initrd=/boot/initrd-2.4.7-10.img
>    read-only
>    root=/dev/hda3

> other=/dev/hda1
>    optional
>    label=Win98SE
> -----------------------------------

> What I would like to do is to install my RH71 ( 6 GB hdd ) as a
> secondary drive and then to be able to "triple boot" into Win98,
> RH72 or my old RH71 at will, so that I can continue to do my
> day-to-day stuff on RH71 and play with RH72 until I am happy to
> switch to it permanently.

There are 2 ways to go about this.  Since I don't know where your LILO is
for hdb, you could initially mount your /boot or / partition on RH7.2 and
point to the vmlinuz and initrd (if needed) in the mounted path.  For this
example I will assume that /boot is a subdir of /:

mkdir /mnt/RH7.1
mount /dev/hdb2 /mnt/RH7.1

# Use the following in lilo.conf of RH7.2:
image=/mnt/RH7.1/boot/vmlinuz-2.x,x,x-x
        label=linux_rh71
        initrd=/mnt/RH7.1/boot/initrd-2.x.x.x-x.img
        read-only
        root=/dev/hdb2

Then run lilo.  Even though this path will not be mounted while LILO
boots, it keeps track of the actual disk location of vmlinuz, etc.

If you have a separate /boot partition, just change mount source above
to that partition and omit 'boot' from the paths in lilo.conf.

A better way for long term is to have LILO on a partition (primary or
extended, not logical).  In fact this would even be a good idea for hda so
you could have LILO on a partition and set that as the active boot
partition with Linux or Win fdisk.  Then you could use a standard (Win)
MBR and have to worry about Windows changing the MBR (although, I am
unfamiliar with NT, 2K or XP).

If you put LILO for RH7.1 on /dev/hdb2, the entry in lilo.conf of RH7.2
would be more simply:

other=/dev/hdb2
        optional
        label=linux_rh71

You could replace RH7.1 with a different distro at any time, put the
LILO for that on hdb2 and still boot it from the other LILO.  The optional
would allow you to empty, remove or substitute a new drive without getting
a lilo error.

--
David Efflandt - All spam is ignored - http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

 
 
 

Booting multiple Linux ver with Lilo

Post by Astrid Flatt » Sat, 29 Dec 2001 19:05:08


What David wrote is valid.
In simple words, you install another version of Linux (LinuxB) on
separate
partition, it will detect your swap partition and use it.
Pack the whole installation on this partition, do not spill into /boot
or
whatever parts of your LinuxA installation.
Now, important, install LiloB on this partition. It will know the
placement
of kernelB and it needs zero delay as it has only single function, to
activate
LinuxB distro.
In /etc/lilo.conf of LiloA add a stanca
other = /dev/hdxy  #x=drive,y=partition
 label=OtherDistro
 unsafe                 #this tells the system that you are The Boss.
Rerun liloA and have fun.

Stanislaw.
Slack user from Ulladulla.


> I have a question about booting more than one version / installation
> of Linux on my Celeron 900 PC via LILO.

> I have been using Red Hat 7.1 on a 6GB hard disk, and have
> downloaded Red Hat 7.2, which I would like to try before switching
> to it.

> I want eventually to be running a dual-boot Win98SE and Linux 7.2
> system, and so I installed Win98 and then RH72 on the 20 GB disk.

> The LILO.CONF from this new 20 GB disk is shown below:

> ----------------------------------
> # cat lilo.conf
> prompt
> timeout=50
> default=linux_rh72
> boot=/dev/hda
> map=/boot/map
> install=/boot/boot.b
> message=/boot/message
> lba32

> image=/boot/vmlinuz-2.4.7-10
>         label=linux_rh72
>         initrd=/boot/initrd-2.4.7-10.img
>         read-only
>         root=/dev/hda3

> other=/dev/hda1
>         optional
>         label=Win98SE
> -----------------------------------

> What I would like to do is to install my RH71 ( 6 GB hdd ) as a
> secondary drive and then to be able to "triple boot" into Win98,
> RH72 or my old RH71 at will, so that I can continue to do my
> day-to-day stuff on RH71 and play with RH72 until I am happy to
> switch to it permanently.

> I assume that I could do something like adding:

> ------------------------------------------
> image=/boot/vmlinuz-2.x,x,x-x
>         label=linux_rh71
>         initrd=/boot/initrd-2.x.x.x-x.img
>         read-only
>         root=/dev/hdb2
> -------------------------------------------

> (or similar) to my current LILO.CONF and running "lilo".

> Will this work?  And is this how I should go about it?  Any
> "GOTCHA's" I should beware of?

> Thanks in advance,
> Graham Daniell

 
 
 

Booting multiple Linux ver with Lilo

Post by Graham Daniel » Wed, 02 Jan 2002 11:38:06




> > I have a question about booting more than one version / installation
> > of Linux on my Celeron 900 PC via LILO.

> > I have been using Red Hat 7.1 on a 6GB hard disk, and have
> > downloaded Red Hat 7.2, which I would like to try before switching
> > to it.

> > I want eventually to be running a dual-boot Win98SE and Linux 7.2
> > system, and so I installed Win98 and then RH72 on the 20 GB disk.

> > The LILO.CONF from this new 20 GB disk is shown below:

> > ----------------------------------
> > # cat lilo.conf
> > prompt
> > timeout=50
> > default=linux_rh72
> > boot=/dev/hda
> > map=/boot/map
> > install=/boot/boot.b
> > message=/boot/message
> > lba32

> > image=/boot/vmlinuz-2.4.7-10
> >       label=linux_rh72
> >       initrd=/boot/initrd-2.4.7-10.img
> >       read-only
> >       root=/dev/hda3

> > other=/dev/hda1
> >       optional
> >       label=Win98SE
> > -----------------------------------

> > What I would like to do is to install my RH71 ( 6 GB hdd ) as a
> > secondary drive and then to be able to "triple boot" into Win98,
> > RH72 or my old RH71 at will, so that I can continue to do my
> > day-to-day stuff on RH71 and play with RH72 until I am happy to
> > switch to it permanently.

> There are 2 ways to go about this.  Since I don't know where your LILO is
> for hdb, you could initially mount your /boot or / partition on RH7.2 and
> point to the vmlinuz and initrd (if needed) in the mounted path.  For this
> example I will assume that /boot is a subdir of /:

> mkdir /mnt/RH7.1
> mount /dev/hdb2 /mnt/RH7.1

> # Use the following in lilo.conf of RH7.2:
> image=/mnt/RH7.1/boot/vmlinuz-2.x,x,x-x
>         label=linux_rh71
>         initrd=/mnt/RH7.1/boot/initrd-2.x.x.x-x.img
>         read-only
>         root=/dev/hdb2

> Then run lilo.  Even though this path will not be mounted while LILO
> boots, it keeps track of the actual disk location of vmlinuz, etc.

> If you have a separate /boot partition, just change mount source above
> to that partition and omit 'boot' from the paths in lilo.conf.

> A better way for long term is to have LILO on a partition (primary or
> extended, not logical).  In fact this would even be a good idea for hda so
> you could have LILO on a partition and set that as the active boot
> partition with Linux or Win fdisk.  Then you could use a standard (Win)
> MBR and have to worry about Windows changing the MBR (although, I am
> unfamiliar with NT, 2K or XP).

> If you put LILO for RH7.1 on /dev/hdb2, the entry in lilo.conf of RH7.2
> would be more simply:

> other=/dev/hdb2
>         optional
>         label=linux_rh71

> You could replace RH7.1 with a different distro at any time, put the
> LILO for that on hdb2 and still boot it from the other LILO.  The optional
> would allow you to empty, remove or substitute a new drive without getting
> a lilo error.

> --
> David Efflandt - All spam is ignored - http://www.de-srv.com/
> http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
> http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

David,

Thank you for your advice.  I followed it and it worked superbly!  Up and running
now with my new 20GB
hdd on dev/hda an the old one on dev/hdb.

Thank you again,
Graham Daniell

 
 
 

Booting multiple Linux ver with Lilo

Post by S. Par » Thu, 03 Jan 2002 17:26:54



> I have a question about booting more than one version / installation of
> Linux on my Celeron 900 PC via LILO.

> I have been using Red Hat 7.1 on a 6GB hard disk, and have downloaded
> Red Hat 7.2, which I would like to try before switching to it.

> I want eventually to be running a dual-boot Win98SE and Linux 7.2
> system, and so I installed Win98 and then RH72 on the 20 GB disk.

> The LILO.CONF from this new 20 GB disk is shown below:

> ----------------------------------
> # cat lilo.conf
> prompt
> timeout=50
> default=linux_rh72
> boot=/dev/hda
> map=/boot/map
> install=/boot/boot.b
> message=/boot/message
> lba32

> image=/boot/vmlinuz-2.4.7-10
>    label=linux_rh72
>    initrd=/boot/initrd-2.4.7-10.img
>    read-only
>    root=/dev/hda3

> other=/dev/hda1
>    optional
>    label=Win98SE
> -----------------------------------

> What I would like to do is to install my RH71 ( 6 GB hdd ) as a
> secondary drive and then to be able to "triple boot" into Win98, RH72 or
> my old RH71 at will, so that I can continue to do my day-to-day stuff on
> RH71 and play with RH72 until I am happy to switch to it permanently.

> I assume that I could do something like adding:

> ------------------------------------------ image=/boot/vmlinuz-2.x,x,x-x
>    label=linux_rh71
>    initrd=/boot/initrd-2.x.x.x-x.img
>    read-only
>    root=/dev/hdb2
> -------------------------------------------

> (or similar) to my current LILO.CONF and running "lilo".

> Will this work?  And is this how I should go about it?  Any "GOTCHA's" I
> should beware of?

> Thanks in advance,
> Graham Daniell

When dealing with multiple versions of Linux and many other OS's, using GRUB
is the best solution.
Once GRUB is installed in MBR, you just need to edit its menu,
and no need for multiple LILO booting sequence.
RH 7.2's grub.rpm is working fine.

Regards.

 
 
 

1. Having problems getting lilo ver. 3 to boot MS-DOS 4.01 partition.

        I have built and installed lilo 3 as my MBR under linux
version 0.97.  Linux boots beautifully from my harddrive.  I am having
a few problems booting dos, though.  I have MS-DOS version 4.01.  The
/etc/lilo/install program I created in step 7 of the README looks like
this:

#!/bin/sh

When I reboot either without pressing any keys or by pressing one of
the special keys (shift, ctrl, alt, scroll lock, etc) and selecting
"chain.b", I get a "non-system disk error", just as if I had tried to
boot with a normal (non-system) disk in drive A.  If I install on a
floppy disk (using '-b /dev/fd0' instead of '-b /dev/hda'), I still
get the non-system disk error, but when I remove the floppy disk and
press a key DOS boots without any more problems.

        Have I installed lilo properly?  As I said, Linux boots
without any problems both from the floppy and the hard disk.
/dev/hda1 is my MS-DOS 4.01 partition, I have linux on /dev/hda2
(root), /dev/hdb1 (/usr), and /dev/hdb2 (swap).  My BIOS is made by
DTK if that helps any...

        It will be great to be able to boot either Linux or MS-DOS
without any extra disks.

Thanks,
Bill Dieter.

2. makefile help: funny rule

3. LILO+BM+Win95 mostly ok, 2nd LILO hosed by booting Linux?

4. list_for_each_entry

5. LILO error: Can only boot from floppy, LILO will only start dos not linux

6. WIN/NT can write to linux file system??

7. Lilo booting multiple OSs help

8. Random reboots, 3.1-R

9. Multiple boot with Lilo - SCO in particular

10. LILO and multiple boots

11. booting multiple 'linuces' w/LILO

12. Problem w/lilo and multiple booting

13. LILO and multiple boots