On Thu, 2003-10-09 at 23:19, Tomas Rett wrote:
> Dne čt 9. října 2003 15:22 Kwan Lowe napsal(a):
>
> > The important thing is to have the same version of lilo available on both.
>
> Thank you for reply to my question. The process described means the LILO
> "knows" of /etc/lilo.conf in the time of boot. If I have two Linuxes, I have
> two /etc/lilo.conf and this is the thing I do not understand.
>
> I'll try it and see.
I can explain what I do, I've boxes running as many as 9 this way.
Ok chose the linux you want to be the Master. Which one isn't important
just chose one. Boot into that one and then mount the partition of the
other one that has the /boot directory. For example
mount /dev/hda6 /mnt/disk
where had6 is the partition with the other version of Linux and
/mnt/disk happens to be handy.
cd /boot and make a directory with a name like mdk92 (or whatever you
want. Then do
cp -a /mnt/disk/boot/* mdk92/
This will bring an exact copy of the original boot directory into the
new directory you've made (You will need to keep the original if you
build from source)
Now edit your lilo.conf of the version you are booted into and add
something like this to the end. (You'll need to edit it to match the
file names on your system.)
image=/boot/mdk92/vmlinuz2.4.22-10mm2
label=MDK9.2
root=/dev/hda6
read-only
append="whatever you need"
initrd=/boot/mdk92/initrd.img
Where the image is the kernel you need/want to use for that version. The
label can be whatever you want. root is the partition that holds that
versions / partition. Append is whatever you need apended (devfs=mount
hdc=ide-scsi whatever). Initrd will then be the initrd img that matches
the kernel you chose.
Now run lilo and if there are no errors reboot and you will now be able
to chose your version by name. I usually change the label linux to
match my "master" both at the top where it says default and in the
primary kernel I use for that one.
James
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com