LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-11-2006, 08:55 AM   #1
anupamcbr
LQ Newbie
 
Registered: Jan 2006
Posts: 12

Rep: Reputation: 0
Question linux kernel


hello all,
i have linux kernel 2.4.20-8.can i upgrade it to 2.6 ? if yes then how ? i don't want to reinstall.
 
Old 01-11-2006, 09:21 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Yes, you can.
 
Old 01-11-2006, 09:43 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,499
Blog Entries: 4

Rep: Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951
My ... umm... experienced advice is that, to make the transition from 2.4 to 2.6, you should do a reinstall from a distribution.

There are many important changes in 2.6, such as the udev facility, the Native Posix Threading Library (NPTL), and other things, which have a very pervasive impact on the system. The easiest way to "make that leap" is through a distro upgrade. Once you've crossed the chasm, you can make incremental changes to the system in the way that you are now accustomed to doing.

The distro installer, running from a CD-ROM or DVD-ROM containing all of the necessary materials, will be free to replace all of the materials that need to be "replaced all at once," and that's how this transition ought to be made. It is possible to do it incrementally, and I have done it, but it ain't easy and it's fraught with "no way to go back" surprises... especially with glibc.
 
Old 01-11-2006, 09:47 AM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
yep... And if the OP is running 2.4.20 then it's likely an old distro - probably rh9... It's time to upgrade the OS...
 
Old 01-11-2006, 10:06 AM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Not that NPTL or udev is an absolute must... my system still uses a lot of old-school linux threads. I upgraded my debian box to 2.6 around 2.6.3 without a problem. I can't imagine EVER reinstalling from scratch anymore, unless I completely botch the system.
 
Old 01-11-2006, 03:13 PM   #6
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
i also moved a 2.4 system to 2.6.3 once no problem just upgraded kernel and module_init_tools and it ran alot better too.
 
Old 01-11-2006, 03:16 PM   #7
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
Quote:
Originally Posted by anupamcbr
hello all,
i have linux kernel 2.4.20-8.can i upgrade it to 2.6 ? if yes then how ? i don't want to reinstall.
What distro are you running?
 
Old 01-11-2006, 03:49 PM   #8
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
Quote:
Originally Posted by bosewicht
What distro are you running?
I bet he is running RH 9...2.4.20-8 is the default kernel with RH9.

Tux,
 
Old 01-12-2006, 10:23 AM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,499
Blog Entries: 4

Rep: Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951
Quote:
Originally Posted by Matir
Not that NPTL or udev is an absolute must... my system still uses a lot of old-school linux threads. I upgraded my debian box to 2.6 around 2.6.3 without a problem. I can't imagine EVER reinstalling from scratch anymore, unless I completely botch the system.
Well The Linux-From-Scratch Project is an interesting educational experience, and one that I would recommend trying someday on "a spare machine that you care absolutely nothing about," but it is not for the non-masochistic.

A particular issue with this conversion, of course, is glibc. That library is used by everything, and so upgrading it is a very dicey proposition that must be done just-right .. you don't get a second chance if you hose it up. The writers of a "distro" have done the dicey work for you, including setting-up a bootable CD-ROM with automatic software that can replace the kernel, glibc, and the hundreds of programs that depend on it, cleanly all-at-once.

I definitely recommend the conversion because the 2.6 system is much "snappier."
 
  


Reply


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
Debian patched kernel vs official Linux Kernel gerald45 Debian 7 10-12-2005 04:45 AM
Linux kernel debugging and Linux kernel module programming Igor007 Programming 2 08-13-2005 05:12 AM
Linux kernel debugging and Linux kernel module programming Igor007 Linux - Enterprise 3 08-12-2005 02:47 PM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM
How to write a kernel module(kernel object, .ko) on linux-2.6.0? oskernel Programming 1 10-21-2003 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:18 PM.

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