how to boot multiple drives with lilo

how to boot multiple drives with lilo

Post by xyz » Sun, 31 Dec 1899 09:00:00



I posted the following to comp.os.linux.help a few days back to
no response, does anyone here have any pointers?  Thank!

---

Hi all, I have two hard drives in my computer, each with a
complete install of redhat (I am moving my stuff over to a new
bigger disk, but want to keep my old linux drive intact until
I've comfortably moved into the new space). I can't figure out
from the lilo.conf man pages how to configure lilo to boot a
linux install that is on a diferent drive than the master boot
record is on (ie boot the linux partition on my second master
drive). Can someone send me an example lilo.conf or explain to
me how to do this? Thanks!
-Josh

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

Got questions?  Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com

 
 
 

how to boot multiple drives with lilo

Post by David Efflan » Sun, 31 Dec 1899 09:00:00



>I posted the following to comp.os.linux.help a few days back to
>no response, does anyone here have any pointers?  Thank!

>---

>Hi all, I have two hard drives in my computer, each with a
>complete install of redhat (I am moving my stuff over to a new
>bigger disk, but want to keep my old linux drive intact until
>I've comfortably moved into the new space). I can't figure out
>from the lilo.conf man pages how to configure lilo to boot a
>linux install that is on a diferent drive than the master boot
>record is on (ie boot the linux partition on my second master
>drive). Can someone send me an example lilo.conf or explain to
>me how to do this? Thanks!
>-Josh

2 ways to go about this, mounting each vmlinuz on the current system
before running 'lilo', or setting up a LILO for each and chaining them.

First method is to mount the boot or root partition of the second drive
and point lilo to the mounted location of vmlinuz there for booting that
distro.  It does not matter that the mounted location will not exist when
LILO is booting, because LILO keeps track of the actual physical location
of that vmlinuz (at least that worked for me booting different kernel
versions of Slackware and RedHat from the same LILO).

Note that you may have to use the above method before you can do the below
method (along with revised /etc/fstab for each) if you relocate drives and
the other LILO's are not correct yet for the relocated drives.

A more flexible solution is to have LILO on a partition for each distro,
then you can simply point to the other LILO as 'other' and chain the
LILO's together.  This way you do not have to mount the other boot or root
when running lilo.

This is an example of that method, using mandrake LILO on hda2 /boot
partition (instead of MBR) to boot to Mandrake on hda9, another LILO on
hda1 for an experimental RedHat, another LILO on hdc2 for my current
working RedHat or Win98se on hda3.  I have to change the boot drive in
CMOS to boot Win95 on hdb (LILO cannot do that):

boot=/dev/hda2
map=/boot/map
install=/boot/boot.b
vga=normal
default=linuxc
keytable=/boot/us.klt
prompt
timeout=50
message=/boot/message
image=/boot/vmlinuz
        label=linux
        root=/dev/hda9
        append=""
        read-only
image=/boot/vmlinuz-2.2.14-15mdk
        label=old_linux
        root=/dev/hda9
        append=""
        read-only
other=/dev/hda1
        label=linuxrh
other=/dev/hda3
        label=windows
        table=/dev/hda
other=/dev/hdc2
        label=linuxc
other=/dev/fd0
        label=floppy
        unsafe

--

http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://hammer.prohosting.com/~cgi-wiz/  http://cgi-help.virtualave.net/

 
 
 

how to boot multiple drives with lilo

Post by xyz » Sun, 31 Dec 1899 09:00:00


Thanks for the help, I just now got a chance to try it out.  so
i tried adding:

other=/dev/hdc
label=redhat

to my lilo.conf and rerunning lilo, now when i select the redhat
option at boot, the second lilo only reaches "li".  Any ideas?

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

Got questions?  Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com

 
 
 

how to boot multiple drives with lilo

Post by <r-.. » Sun, 31 Dec 1899 09:00:00


Quote:>>>>>>>>>>>>>>>>>> Ursprngliche Nachricht <<<<<<<<<<<<<<<<<<


zum Thema Re: how to boot multiple drives with lilo:

Quote:> Thanks for the help, I just now got a chance to try it out.  so
> i tried adding:
> other=/dev/hdc
> label=redhat
> to my lilo.conf and rerunning lilo, now when i select the redhat
> option at boot, the second lilo only reaches "li".  Any ideas?
> -----------------------------------------------------------
> Got questions?  Get answers over the phone at Keen.com.
> Up to 100 minutes free!
> http://www.keen.com

Hi,

here's en excerpt from the lilo readme:
 ?LI   The first stage boot loader was able to load the second stage boot
    loader, but has failed to execute it. This can either be caused by a
    geometry mismatch or by moving /boot/boot.b without running the map
    installer.
After rerunning lilo, did you get the ?added redhat message?
Also, is redhat really in ?/dev/hdc, or perhaps in ?/dev/hdc2? I don't
know much about redhat, but in my suse the boot image is on an own partition.
Hope it helps,
rude

 
 
 

1. Multiple systems on multiple drives and LILO?

Hello,

I have two IDE drives on my system: the first one has DOS and Linux installed,
and I would like to install NEXTSTEP on the second one.
        I have tried installing NEXTSTEP on the second drive and everything is
fine until the installation procedure reboots before installing the system: my
PC then boots on the first drive, which has LILO (while the second should have
the NEXTSTEP loader), but I cannot make the second drive boot directly (or I
least I do not know how to do that).
        I tied to put an entry in lilo.conf for NEXTSTEP with /dev/hdb1 and
table=/dev/hdb, but when running /etc/lilo/install the program says it is not
able to get the magic for the second drive.

Any idea how I can obtain what I want?
Thanx,
Yves.

--
Advocates for the C++ school claim that a well designed           Yves Arrouye

while advocates for the Objective-C school claim that         (33) 76 57 48 64
    the errors are no problem in practice (another lie).             NeXT Mail

2. Linux 2.4.2ac10

3. boot manager for multiple OS (XP and FreeBSD) on multiple drives

4. Another CD-ROM problem

5. LILO: Dual boot Linux drive+Win95 drive problem

6. Reboot during installation with all distributions

7. Lilo & 2 SCSI Drives - Won't boot from 2nd drive

8. UDMA and Inspiron 3000

9. LILO question - multiple drive configuration

10. LILO, Multiple OSes, and EIDE and SCSI Hard Drives

11. Lilo booting multiple OSs help

12. Multiple boot with Lilo - SCO in particular

13. LILO and multiple boots