Click to See Complete Forum and Search --> : Kernel 2.4.5 RPM upgrade help
Infected
06-22-2001, 08:28 PM
I used an RPM to upgrade my 2.4.2 kernel, but when I startup it says, can't find modules.dep in the /lib/modules/2.4.2/.
I see that the 2.4.2 dir isn't there anymore, only 2.4.5. Now which files do I edit to make it see the 2.4.5 dir?
Infected
06-22-2001, 10:49 PM
Bump
slapNUT
06-22-2001, 11:08 PM
First installing a new kernel doesn't remove the old /lib/modules/ I've got 2.4.0 thru 2.4.5. I guess I should clean that up sometime. What do you see if you type:
cat etc/issue
Did you start the kernel compile with
make mrproper
make (x||menu)config
make dep
make bzImage
make modules
make modules_install
Infected
06-22-2001, 11:35 PM
Well, I don't see that dir anymore. The only dir in /lib/modules is 2.4.5. And no I didn't install from a source, so I didn't have to do all that. I just need to figure out a way to make Linux see that I'm now using the 2.4.5 kernel not 2.4.2.
Infected
06-22-2001, 11:47 PM
I checked my /lib/modules/2.4.5 dir and I saw flashing red and white text that said "build". Since I can't even startx anymore, console is all I can do. Can someone help me out?
I assume you're using LILO? (As root) run lilo at the shell and try rebooting again. Perhaps lilo is still pointing to the old kernel image.
Infected
06-22-2001, 11:57 PM
<edit>I typed lilo at the shell and it said the kernel was too big. Anyone know what to do?</edit>
[ 23 June 2001: Message edited by: Infected ]
slapNUT
06-23-2001, 02:44 AM
First build is a symlink that points to where your kernel-files were installed. If this shows as red blinking then the directory it points to is gone (this would be probably be /usr/src/linux-2.4.5 )
The only dir in /lib/modules is 2.4.5. And no I didn't install from a source, so I didn't have to do all that. I just need to figure out a way to make Linux see that I'm now using the 2.4.5 kernel not 2.4.2.
Yes actually the only way to "make Linux see that you are using the kernel 2.4.5" is to build the kernel as I outlined above.
I would suggest you read the NHF on kernel upgrades here at LNO.
I suspect that somehow in your installation of 2.4.5 kernel.rpm some important module directories got deleted. You now have the files to build a 2.4.5 kernel and this would fix your problems.
posterboy
06-23-2001, 08:33 AM
I have installed kernels from RPM's successfully a number of times. It isn't complex and RedHat has a page of instructions on exactly how to do it, in such a way that you preserve the old kernel. I have lost the link, but a few minutes at RedHat should find it for you. Follow those instructions, guaranteed success. HTH, Ray