Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
well your going to need the kernel source to recompile the kernel there is no question about that...so if there is nothing in /usr/src then you will have to go get the source....if you wanted to just recompile the kernel you are currently using then you don't have to go to that site and do all that stuff, because you mentioned redhat and the kernel source is on the distros cd's...you can always type :: redhat-config-packages and install it that way, or manually find it on your cds ....
but if you want to put a newer kernel on your box, then yes you will have to go and do them steps...unless you get an rpm package somewheres with the kernel source, then you may be able to knock off a couple of steps, but again basically you are going to have to do that....
I have installed the kernel source and compiled the kernel 2.4.22 on my RH 8.0.
I have reach finished the process but when I reboot the box, I was not able to boot the box and getting the kernel panic error message :
VFS : Cannot open root device : LABEL=/dev/hdb6 or 00:00
Please append a correct "root" boot option
Kernel Panic : VFS : Unable to mount root fs on 00:00
My grub.conf file as follow :
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdb6
# initrd /initrd-version.img
title Red Hat Linux (2.4.22)
kernel /vmlinuz-2.4.22 ro root=LABEL=/dev/hdb6
title Red Hat Linux (2.4.20-20.8)
kernel /vmlinuz-2.4.20-20.8 ro root=LABEL=/
title Red Hat Linux (2.4.18-14)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/
I have tried changed the root boot option to root=/dev/hdb6 but the getting the same output.
just look in your /etc/modules.conf file and comment out the line thats trying to load that...to comment out something you put a # in front of the line...so for example something like ::
k i was just looking at the file : /usr/src/linux/Documentation/Configure.help
and this comes from it::
Unix domain sockets
If you say Y here, you will include support for Unix domain sockets;
sockets are the standard Unix mechanism for establishing and
accessing network connections. Many commonly used programs such as
the X Window system and syslog use these sockets even if your
machine is not connected to any network. Unless you are working on
an embedded system or something similar, you therefore definitely
want to say Y here.
However, the socket support is also available as a module ( = code
which can be inserted in and removed from the running kernel
whenever you want). If you want to compile it as a module, say M
here and read <fileocumentation/modules.txt>. The module will be
called unix.o. If you try building this as a module and you have
said Y to "Kernel module loader support" above, be sure to add
'alias net-pf-1 unix' to your /etc/modules.conf file. Note that
several important services won't work correctly if you say M here
and then neglect to load the module.
so it looks like you selected that when you compiled your kernel, so in turn, the last thing i can think of without having to recompile again is to insert this into your /etc/modules.conf. alias net-pf-1 off
best of luck!
I had the same problem as yours. So i had to reinstall RH.
save a file ".config" in /usr/src/linux-x.x.x to other place
copy .config to /usr/src/linux-x.x.x (n your new kernel)
make menuconfig (if u want to change some thing in configuration, but note that u have to know much about kernel configuration)