Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> New To Patching Kernel, Patching Kernel
post Jan 7 2004, 04:30 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 4
Joined: 7-January 04
Member No.: 2,098


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.
Go to the top of the page
+Quote Post
post Jan 10 2004, 01:27 PM
Post #2


Group: Members
Posts: 98
Joined: 1-April 03
Member No.: 613

I think you're in the wrong directory. Must be in /usr/src. Must have kernel source. Must have linked it to linux

Go to the top of the page
+Quote Post
post Jan 10 2004, 02:58 PM
Post #3

Its GNU/

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151

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....

Johnny Hughes
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 20th July 2018 - 05:48 AM