LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-14-2009, 02:08 PM   #1
cojones
LQ Newbie
 
Registered: Jul 2009
Posts: 25

Rep: Reputation: 15
Failed to upgrade from 2.4 to 2.6 several times


Hello,

I have a Debian machine with an outdated 2.4.27-2-386 kernel and tried several times to update it to 2.6. I tried apt-get, using old .config, using completely new config, some packages and many howtos.
It never worked and I have no idea why. The problem is, that this is a server in some data center and I can only access it via SSH. So whenever a kernel update fails I have no idea why cause I can't see the error.

Might be a stupid question but is there a possibilty to install/compile/update a kernel that definitely gonna work?
I did it successfully a couple of times on other machines but I have no idea what's wrong with this machine...

Any help highly appreciated!
 
Old 07-16-2009, 01:00 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by cojones View Post
I have a Debian machine with an outdated 2.4.27-2-386 kernel and tried several times to update it to 2.6. I tried apt-get, using old .config, using completely new config, some packages and many howtos.
If the machine is doing its job then why change it? There is nothing wrong with using a 2.4 kernel. Open Wall Linux still uses a 2.4 kernel. Don't change it unless you have a demonstrated need to do so. I'm not even sure that a 2.6 kernel will run on a 386 machine.

Quote:
Originally Posted by cojones View Post
It never worked and I have no idea why. The problem is, that this is a server in some data center and I can only access it via SSH. So whenever a kernel update fails I have no idea why cause I can't see the error.
Some data center? So you can't put your hands on the machine! And you want to upgrade the kernel! Bad idea.

Quote:
Originally Posted by cojones View Post
Might be a stupid question but is there a possibilty to install/compile/update a kernel that definitely gonna work?
I did it successfully a couple of times on other machines but I have no idea what's wrong with this machine...
There is probably nothing wrong with the machine. The process is flawed. Leave it alone or travel to the data center so that you can power cycle the machine and do other emergency recovery stuff when the whole thing breaks.

If you MUST change the software then do this:
1) Make a backup of the system that can be used to restore onto bare metal. A Partimage backup will do nicely.

2) Create a new partition.

3) Install the new version of Linux into the new partition.

This method will allow you to keep the old system available in case you have to roll back to it when the new version doesn't work. Belt and suspenders.

Last edited by stress_junkie; 07-16-2009 at 01:02 AM.
 
Old 07-16-2009, 04:35 AM   #3
cojones
LQ Newbie
 
Registered: Jul 2009
Posts: 25

Original Poster
Rep: Reputation: 15
First of all thanks for your reply.

Well, I'd need to do some software updates (e.g. MySQL 5) and it only runs on >2.4 kernels.

I know it's a bad idea but I don't really have a choice. But there's some company that can reboot and boot the old kernel just in case (that's what happened when I tried to upgrade before).

Can't really go there cause it's kinda far so I guess the best solution would be to get another server and move the stuff onto the new one and then try to install a newer kernel with a newer version of Debian.
 
Old 07-16-2009, 05:20 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I've never been a fan of large kernel (only) jumps.
Build a new level/release with the kernel you need - that way you get the tool-chain at the comparative level.
 
Old 07-17-2009, 04:04 PM   #5
cojones
LQ Newbie
 
Registered: Jul 2009
Posts: 25

Original Poster
Rep: Reputation: 15
You mean I should compile a couple of kernels in order to not make a big jump?
 
  


Reply



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
UTC times imported into kontact after intrepid upgrade mma8x Linux - Software 0 10-30-2008 07:02 PM
Slackware 9.1 iso - md5 checksum failed serveral times ciaranhearne Slackware 17 02-02-2008 08:00 PM
Failed to start the display server several times in a short time 0x5A2B Linux - Newbie 1 05-22-2006 11:17 PM
System hangs; Atheros Madwifi-ping times out every 15/16 times james 456 Linux - Networking 0 01-12-2006 06:55 PM
Red Hat X - Failed to start the display server several times in a short time in.. mjkchi Linux - General 0 12-13-2003 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:54 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
Open Source Consulting | Domain Registration