Re: Booting 2 Linuxes with LILO
Thanks so much.
I have a couple of questions:
Can I follow a similar procedure while I have the root mounted?
I booted into woody and had /dev/hda1 mounted as root
I then mounted potato on /mnt/potato, as you suggest.
woody: $ lilo -C /mnt/woody/lilo.conf.mbr
went OK
woody: $ lilo -r /mnt/potato
told me it was expecting a different version of LILO
woody: $ lilo
issued a fatal error.
Then I tried mounting /dev/hda1 under /mnt/woody and did:
woody: $ lilo -r /mnt/woody
It was OK.
Still, I can boot Potato, despite the error message.
It won't bood woody, though!
Could I maybe just have the woody's lilo.conf handle all, without the need of
the mbr lilo?
alberto.
>
mount /dev/hda3 /mnt/woody
> lilo -r /mnt/woody
>
> mount /dev/hda2 /mnt/potato
> lilo -r /mnt/potato
>
> lilo -C /mnt/woody/lilo.conf.mbr
>
On Monday 02 December 2002 03:06 pm, Sebastian Kuzminsky wrote:
> alberto <albertobig@libero.it> wrote:
> ] I have 2 debians installed on my system but I'm having troubles with
> having ] LILO allowing me to boot any of those.
> ]
> ] I have potato on /dev/hda3.
> ] I just erased win on /dev/hda1 :-)) and installed Woody there.
> ]
> ] Now, Woody's LILO offers me a prompt to boot the old potato, but won't
> make ] it: If I try, it will stop at
> ] LIL-
> ]
> ] What is the correct way to have woody's LILO load my potato on /dev/hda3?
> ] I'd also love to keep the subchoiches there for different kernels.
>
>
> Here's how i do it...
>
> On Woody i have two lilo.conf files, one for the MBR and one for the
> Woody partition. The MBR one i call lilo.conf.mbr. On Potato i have
> just one lilo.conf file, for the Potato partition.
>
>
> Woody lilo.conf.mbr:
>
> lba32
> boot=/dev/hda
> install=/boot/boot-menu.b
> map=/boot/map
> prompt
> timeout=50
>
> other=/dev/hda3
> label="Woody"
>
> other=/dev/hda2
> label="Potato"
>
> other=/dev/hda1
> label="Windows"
>
>
>
>
> Woody lilo.conf:
>
> lba32
> boot=/dev/hda3
> install=/boot/boot-menu.b
> map=/boot/map
> #prompt
> #timeout=50
>
> root=/dev/hda3
> read-only
>
> image=/boot/vmlinuz-2.4.20
> label=2.4.20
>
> image=/boot/vmlinuz-2.4.19
> label=2.4.19
>
>
> The Potato lilo.conf looks a lot like the Woody lilo.conf.
>
>
> You need to install the boot blocks for the partitions you want to boot,
> then for the MBR. I usually boot from a CD or something (KNOPPIX!) to set
> everything up:
>
> mount /dev/hda3 /mnt/woody
> lilo -r /mnt/woody
>
> mount /dev/hda2 /mnt/potato
> lilo -r /mnt/potato
>
> lilo -C /mnt/woody/lilo.conf.mbr
>
>
>
>
> That should do it...
>
>
>
>
> Sebastian
--
alberto.
Reply to: