>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/