Help - Search - Members - Calendar
Full Version: New To Patching Kernel
Linuxhelp > Support > Technical Support

I have been using Linux for a few month and love it. I am using Red Hat 9 and am trying to patch my kernel, now that I am being more risky. I am currently using 2.4.20-28.9 and have downloaded the patch-2.4.21.bz2 to /usr/src When I type in bzip2 -dc patch-2.4.21.bz2 |patch -p0 I get this output any help would be awsome.

can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|diff -urN linux-2.4.20/CREDITS linux-2.4.21/CREDITS
|--- linux-2.4.20/CREDITS 2002-11-28 15:53:08.000000000 -0800
|+++ linux-2.4.21/CREDITS 2003-06-13 07:51:29.000000000 -0700
File to patch:
Skip this patch? [y] y
Skipping patch.
13 out of 13 hunks ignored

This keeps going on with other files also. Help please.
I think you're in the wrong directory. Must be in /usr/src. Must have kernel source. Must have linked it to linux
First off ... you can't use patches written for a vanilla 2.4.20 kernel on a RedHat kernel. RedHat (and all other distro's) patch their kernels prior to distributing them, so the chances that the code that is going to be replaced is the same is not good. (Which is why the error you get says it can't find the code that needs to be replaced).

SO, if the patch is not written for a RedHat 2.4.20-28.9 kernel, you probably can't use it.

If the patch were written for your redhat kernel, then you can patch it ... but you would need to be one level lower (in the kernel-source directory) ... in redhat, the directory would be named:


If you want to play, download the 2.4.21 kernel from and you can try to patch and compile it....
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.