LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   lilo.conf help (https://www.linuxquestions.org/questions/linux-software-2/lilo-conf-help-120228/)

shanenin 11-26-2003 03:23 PM

lilo.conf help
 
I am trying to add gentoo to my lilo.conf. I am getting this error when I run #/sbin/lilo

Fatal: open /boot/kernel-2.4.20-gentoo-r8: No such file or directory

below is what I have in my lilo.conf
-----------------------------------------------------------
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda6
label = Slackware
read-only
# gentoo kernel info
image = /boot/kernel-2.4.20-gentoo-r8
label = Gentoo
root = /dev/hda3 #this line I also tried as root = /dev/hda5
initrd = /boot/initrd-2.4.20-gentoo-r8
# Linux bootable partition config ends
-----------------------------------------------------------------
I have my boot partition on /dev/hda3 and my root partition on /dev/hda5

Tinkster 11-26-2003 03:39 PM

Are Slack's and Gentoo's /boot the
same one? If they're not, Slack's lilo
won't see the Gentoo kernel ;)



Cheers,
Tink

shanenin 11-26-2003 03:46 PM

am I understanding correctly, this is a limitation of lilo(or I have it configured wrong). I used my grub bootloader to boot both redhat and slack.

slakmagik 11-26-2003 04:04 PM

He means (I think) to copy Gentoo's kernel to Slack's boot, since that's what Slack's LILO understands by 'boot'. Or at least, that's what I just did with Debian again. :D

shanenin 11-26-2003 04:06 PM

thanks guys

Tinkster 11-26-2003 04:12 PM

Quote:

Originally posted by digiot
He means (I think) to copy Gentoo's kernel to Slack's boot, since that's what Slack's LILO understands by 'boot'. Or at least, that's what I just did with Debian again. :D
Thanks for interpreting ;)

What I mean is that if you have a layout
like this:

Code:

/dev/hda1        /        (slackware)
/dev/hda2        /boot        (slackware)
/dev/hda3        /        (other distro)
/dev/hda4        /boot        (other distro)

or
Code:

/dev/hda1        /        (slackware)
/dev/hda2        /        (other distro)
/dev/hda3        /boot        (other distro)

Lilo won't be able to see /boot/kernel-2.4.20-gentoo-r8
because it wouldn't exist in what lilo
sees as /boot .... to work around this
both distros would have to share the
same /boot partition.

Better? :)


Cheers,
Tink

slakmagik 11-26-2003 04:14 PM

Glad I got it right. This post was clarifying that I could very well be wrong, but I didn't see your follow up, so never mind. :D

dalek 11-26-2003 09:02 PM

I also share /boot between Mandrake and Gentoo with Grub. It would not work with lilo at all.

The seperate /boot partitions were to confusing. The kernel has different names anyway.

Later

:D :D :D


All times are GMT -5. The time now is 05:12 PM.