1828492 Members
2546 Online
109978 Solutions
New Discussion

upgradation

 
chinna_1
Occasional Advisor

upgradation

i want to upgrade my kernel version from 2.4.20 to 2.6.10
can u plz provide the steps to do

thanks
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: upgradation

Shalom chinna,

To answer this question, one would need to know what distribution of Linux you are actually using.

For RedHat and similar:

rpm -Fvh

or

rpm -Uvh

Note that you can break certain applications such as IBM rational clearcase by doing this upgrade.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vitaly Karasik_1
Honored Contributor

Re: upgradation

It's not so easy to upgrade kernel from 2.4 to 2.6. I'll suggest you or stay with your current distibution, or upgrade the whole system to some moder distro - to RHEL 4 (or CentOS 4), for example.

Rgds,
Vitaly
Manuel Wolfshant
Trusted Contributor

Re: upgradation

In case that you are really really sure that you want to update your kernel from 2.4 to 2.6, you can start by reading the following document: http://kerneltrap.org/node/799
However, IF you are running a distribution which has a package management system, you might solve everything easier using it (something similar to up2date / yast / yum / apt-get will update all required dependencies when upgrading the kernel). But, unless you really know what you are doing, I would recommend against upgrading ONLY the kernel, although it can be done.
By all means, if possible, follow Vitaly's recommendantion and upgrade the whole system to a newer distro which uses kernel 2.6 by default.
chinna_1
Occasional Advisor

Re: upgradation

i have two partition of linux i.e /dev/hdc3 and /dev/hdc6 ,currently i m working on
/dev/hdc3 but i want change kernel version for /dev/hdc6 ,can i mount that partition to /mnt and make changes in kernel version or i need to boot /dev/hdc6 partition and change kernel version.
Manuel Wolfshant
Trusted Contributor

Re: upgradation

I think that the best option would be to create a chroot on /mnt/hdc6. But all depends on your actual configuration and you have not provided enough details for a pertinent advise.

Please bear in mind that there is no limit in the number of kernels installed at the same time in a system, but one and only one of them can be used at a given time (that is, leaving virtual machines alone)
Vitaly Karasik_1
Honored Contributor

Re: upgradation

If you have a spare space on your harddisk, I'll suggest you to install second distribution with multi-boot.
chinna_1
Occasional Advisor

Re: upgradation

i made a copy of linux with commmand fdisk -n
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 13 104391 83 Linux
/dev/hdc2 14 523 4096575 83 Linux
/dev/hdc3 524 1798 10241437+ 83 Linux
/dev/hdc4 1799 2438 5140800 f Win95 Ext'd (LBA)
/dev/hdc5 1799 1862 514048+ 82 Linux swap
/dev/hdc6 1863 2163 2417751 83 Linux

i m currently booted /dev/hdc3 but i want make kernel version change in /dev/hdc6 .without booting into /dev/hdc6 how can i change kernel from /dev/hdc3
can i use following commands
#mount /dev/hdc6 /mnt
#cd /mnt
#cd /mnt/usr/src/linux-2.6.10
rest are kernel compilation commands
Vitaly Karasik_1
Honored Contributor

Re: upgradation

I suggest you not upgrade kernel on hda6, but just install some modern distro instead.