Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-17-2002, 08:35 AM   #1
LQ Newbie
Registered: Feb 2002
Location: Kabylie
Distribution: Redhat
Posts: 13

Rep: Reputation: 0
how to patch correctly?

have RH 7.1 with kernel 2.4.2-2, after applying patch 2.4.3 have noticed quite a lot of *.orig and *.rej files added in my source tree.
I decided to recompile the patched kernel, but to no avail since it failed to build the kernel correctly and exited with an error message relating to cdrom.c, did not stop however and went further with "make modules" and " make modules_install"
That is after that that my system became almost unusable.

My questions are :
What was wrong in my actions?
How can I restore the system to the initial state without having to format and reinstall from scratch?
Is it possible to download the most recent patch skipping the older ones and apply it without problem?

Thank you for your help
Old 02-17-2002, 10:23 AM   #2
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
When you apply patches, the first thing that happens is that the file to be patched is written to a backup file using the original file name with .orig appended. During patching, any patches that are not applied to a file are placed in a <origname>.rej file with an explanation of why the patch was rejected. If all patches succeed, there will be no .rej files and all of the .orig files will be removed.

Your 2.4.3 patches didn't work against the 2.4.2-3 kernel. The most likely reason for this is that the patch set was for 2.4.2 and not 2.4.2-3. The -3 probably means that this kernel has been patched 3 times since 2.4.2.
Old 02-17-2002, 01:48 PM   #3
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
The reason the system has become unusable probably stems from having made the modules and installed them. You failed to compile the kernel, so you're running on your old stock kernel, but your system is trying to run on the new modules... RH leaves a default of having 'version symboling on the modules', meaning that your modules will only work with a kernel that you never got compiled.

You can re-RPM the whole kernel from the CD, or prefereably: get a pristine copy of the kernel source from The newest is 2.4.17 (In a day or two 2.4.18), and compile and use that instead. If you do, remember to remove the simlink between /usr/src/linux and /usr/src/linux-2.4.2-?. Pristine kernel source will unpack into a dir called linux/ so if that symlink exists it will deposit all of the source over the 2.4.2 source and render the both of them un-compileable. Patching a kernel source tree up a notch is pretty worthless unless the next minor version doesn't exist yet. For instance, taking 2.4.17 to 2.4.17-rc2 is a matter of 9 patches... but in a day or two when 2.4.18 comes out I'm not going to bother with a mountain of patches... I'm just going to skip to snagging the whole new kernel. I just realized this isn't always fasible for people with modems... kernels these days are 30Mb, compressed.

Either way, g'luck



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
Unable to patch kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 08:51 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration