LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Kernel 2.6.3 and Lilo problems!!! (https://www.linuxquestions.org/questions/linux-software-2/kernel-2-6-3-and-lilo-problems-147742/)

raid517 02-18-2004 05:16 PM

Kernel 2.6.3 and Lilo problems!!!
 
Hi I installed kernel 2.6.2 on my Mepis linux install. However I cannot boot it. I get to about 10 seconds in then I get a message about it loading the ram disk, then another one about the device map, then it just craps out and gives up.

I noticed that when I ran lilo I always seemed to get this message:

Code:

Warning: COMPACT may conflict with LBA32 on some systems
/dev/mapper/control: open failed: No such device
Is device-mapper driver missing from kernel?
/dev/mapper/control: open failed: No such device
Is device-mapper driver missing from kernel?
Incompatible libdevmapper 1.00.07-ioctl (2003-11-21)(compat) and kernel driver
Added linux26 *
Added linux24
Added failsafe
Added memtest
Added WinXP

Does anybody know what this means or how to fix it?

Also Mepis linux is a debian based distro (a mixture of unstable and experimental packages) - and in debian kernel compiles are slightly differentfrom what I'm used to.

If I compile a kernel downloaded directly from debian mirrors it will automatically build and install an initrd. but this is only possible with source downloaded from an official Debian mirror.

So I was wondering if I downloaded the source from kernel.org - how exactly would I go about creating my own initrd? Can I do this, or is it not possible because of the way Debian does things...

Any input would be appreciated.

GJ

hw-tph 02-18-2004 05:22 PM

I usually download the source directly from kernel.org, apply the patches I want and then let make-kpkg work its magic. It doesn't crap out with any error on me, and I built 2.6.3 today on my wannabe-server (actually it's an old laptop ;)) running Debian Sarge/Testing.

I normally do not use an initrd image but a regular kernel image. For me an initrd is not needed so I just define the new kernel image in /etc/lilo.conf (if needed - the symlink magic works pretty well with dpkg and kernel images), rerun lilo and reboot.

Btw, do you have device mapper enabled in "RAID and LVM" part of the kernel configuration?


Håkan

raid517 02-18-2004 06:13 PM

Erm... Possibly... I will look at that.... But how do I create an initrd anyway, just for reference?

Also with kpg I read that the correct instruction was

Code:

imake-kpkg --revision=2:hostname.1.0 kernel_image
The bit that confuses me is the hostname, what is that and what should it be?

GJ

hw-tph 02-19-2004 07:20 AM

What I do, and it may be correct or not correct, is simply editing the Makefile and changing the first few lines to my liking:
Code:

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 2
EXTRAVERSION = -gentoo-baron2
NAME=Håkan Wikström

This is from my Gentoo laptop but I do the same on all my computers - I change the EXTRAVERSION to -distribution-hostnameNumber. This is the second 2.6.2 build on the host baron, which uses Gentoo. This is my own naming scheme, so I can in an instant see if I run a distribution-supplied kernel or one of my own - uname -r returns "2.6.2-gentoo-baron2" in this case.

Honestly speaking - the reason I do it this way is that I have had enough of problems with make-kpkg.


Håkan


All times are GMT -5. The time now is 04:26 PM.