[SWLUG] lilo headache
Dafydd Walters
dafydd at walters.net
Wed Dec 18 17:04:02 UTC 2002
Gareth,
> But you do seem to suggest that I should be able to
> point lilo at a completely different partition and it will still work ?
To be honest, I'm not 100% sure this is possible. If you've already tried
what I suggested and it did not work, then maybe not.
Perhaps you could try copying the Red Hat kernel image to your Suse's /boot
directory and then boot off that, i.e.
1. Log into Suse as root.
2. Mount RedHat's boot partition so that you can see it from Suse:
mkdir /mnt/redhat-boot
mount /dev/hda2 /mnt/redhat-boot
3. Copy the Red Hat kernel image to Suse's /boot directory
cp /mnt/redhat-boot/vmlinuz-2.4.18 /boot/kernel.redhat
4. Add the following to lilo.conf
image = /boot/kernel.redhat # your zImage file
root = /dev/hda3 # Redhat's root partition
label = Red Hat Linux # name to appear on menu
Note that root is /dev/hda3 not /dev/hda2 as in my last suggestion (i.e.
it's the device to be mounted as root for the kernel image).
5. Run /sbin/lilo
Regards,
Dafydd.
----- Original Message -----
From: "Gareth Lewis" <Gareth.Lewis at patent.gov.uk>
To: <discuss at swlug.org.uk>; <dafydd at walters.net>
Sent: Wednesday, December 18, 2002 8:22 AM
Subject: Re: [SWLUG] lilo headache
> That's what i've been trying, I'll have another go 'though.
>
> first time it went wrong I put down to it trying to get the kernel from an
ext3 partition, so I reinstalled red-hat to have a separate /boot mounted on
its own ext2 partition.
>
> second time it, I couldn't get /sbin/lilo to process the redhat part of
the lilo.conf as it said that it couldn't find or get to (don't remember
which) /boot/vmlimuz.redhat which made me think that it was looking for it
on the wrong partition or I'd name a typo (it was late)
>
> I'll hack it again tonight and i'll post the actual lilo.conf if it still
doesn't work.
>
> But you do seem to suggest that I should be able to point lilo at a
completely diferent partition and it will still work ?
>
> >>> Dafydd Walters <dafydd at walters.net> 18/12/2002 16:03:32 >>>
> Gareth,
>
> Perhaps you could try the following:
>
> 1. Fire your PC up into Suse and log in as root.
>
> 2. Locate the lilo.conf file, and add an entry for 'Red Hat Linux' to the
> bottom of the file as follows:
>
> image = /boot/vmlinuz # your zImage file
> root = /dev/hda2 # partition containing the kernel
> label = Red Hat Linux # name to appear on menu
>
> 3. Run /sbin/lilo at the command prompt to propagate the lilo.conf changes
> to your Master Boot Record.
>
> 4. Reboot. The initial boot menu should now include Red Hat Linux
> (depending on how you've got lilo configured, you may not get a menu; just
a
> LILO: prompt. If this is the case, just hit Tab to see the list of
> choices).
>
> Regards,
> Dafydd.
>
> discuss
>
>
More information about the Swlug
mailing list