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 - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-14-2008, 04:35 PM   #1
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: Arch
Posts: 118

Rep: Reputation: 16
What happened to my Linux kernel?


Hi,

When I installed Lenny it showed during startup that the kernel is 2.6.25-2-686.

I updated my sources.list from Synaptic and then checked "status" which gave some results under labels--installed, installed (auto removable)...you know them. I selected "installed (upgradeable)" and marked them all for upgrading and clicked apply.

It upgraded fine except three items due to some errors.

When I rebooted in Windows, the Grub menu came up with six options instead of the previous four! The new options were
Quote:
Linux kernel 2.6.25-1-686
and
Quote:
linux kernel 2.6.25-1-686 (single user...)
This apparently frightened me--I was worried if my system was ok. Well, to my relief, I'm now writing from my Debian system.

But, was it any sort of downgrading? I dared not log in to that 2.6.25-1-686 kernel system.
 
Old 09-14-2008, 04:55 PM   #2
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
You sure that wasn't 2.6.26-1-686? Page through /boot/grub/menu.lst or look again. It sounds like a perfectly normal kernel upgrade to me.
 
Old 09-14-2008, 05:29 PM   #3
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: Arch
Posts: 118

Original Poster
Rep: Reputation: 16
Telemachos, how should I apologise?

It is Debian GNU/Linux, kernel 2.6.26-1-686. I was so worried to see seven options on Grub and the -1-686!

But, why should Debian keep two Linux kernels active at the same time? And I should definitely log in to the upgraded system, shouldn't I?

I'm gonna do that.
 
Old 09-14-2008, 06:00 PM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by TristanDee View Post
definitely log in to the upgraded system, shouldn't I?
Yes. And when you're certain everything is working OK, you can delete the older kernel entries from your menu.lst.
 
Old 09-14-2008, 06:09 PM   #5
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Hang on! Keep the old kernel for a while, as the new one may contain bugs (you're not on Stable, obviously) that may render it unusable/unbootable at one time. Keeping the old kernel at least gives you a workable system to fix stuff from... I still have the (ancient) 2.6.24.18 kernel from Stable available on my system, while I run 2.6.25.9 on my desktop.
 
Old 09-14-2008, 06:23 PM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Oh yeah, keep the kernels. But if you delete their entries from menu.lst, most editors make a backup file so everything is not lost if problems arise.
 
Old 09-15-2008, 02:04 AM   #7
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: Arch
Posts: 118

Original Poster
Rep: Reputation: 16
Thanks guys.

I haven't yet deleted the old kernel's entry from the menu.lst.

But does deleting the old kernel's entry from the menu.lst mean deleting the kernel itself from the machine? Or, does it still stay? Dutch Master says he still has the old kernel's entry in his menu.lst. Does that mean he can boot the "(ancient) 2.6.24.18 kernel"?

Last edited by TristanDee; 09-15-2008 at 02:11 AM. Reason: typo
 
Old 09-15-2008, 03:32 AM   #8
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Yes I can. You won't actually delete the kernel by removing it's reference in the menu.lst file. For that you'd need aptitude
 
Old 09-15-2008, 10:18 AM   #9
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
As Dutch Master says, you shouldn't remove the kernel right away. Test the new one thoroughly before you uninstall the old one. It's perfectly fine to have more than one kernel at a time in /boot. In fact, the only real limit is size (if /boot is on its own very small partition, you can sometimes run out of space).

As a general rule with Debian, you will not have to edit /boot/grub/menu.lst manually. When you add a kernel using any of the APT tools, the menu list gets updated automagically, and likewise when you remove a kernel using an APT tool, it's entry will be removed from the menu list automatically for you.
 
Old 09-15-2008, 11:38 AM   #10
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
You would use aptitude purge linux-image-2.6<version> to remove the kernel from your system.

I ALWAYS keep the previous kernel on hand in case of emergency, then purge everything older than that.

Then I check the source directories (/usr/src) to make sure I'm not holding onto Kernel header files I no longer need..
 
Old 09-15-2008, 12:04 PM   #11
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: Arch
Posts: 118

Original Poster
Rep: Reputation: 16
That's great advice from you all. I'm gonna keep the old kernel.

One thing: can installing something that might be compatible with the older kernel cause problems for the newer one? I don't know if that's the way, but it just struck me there might be some sort of dependency-thing about it. I'm now logging in to the new kernel system, hence the worry.
 
Old 09-15-2008, 01:20 PM   #12
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
In general, kernels are backwards compatible. Unless you have very exotic hardware, it's not really an issue.
 
Old 09-15-2008, 02:05 PM   #13
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Switching to a new kernel may force you to recompile certain kernel modules. (nVidia, ndiswrapper,) other than that you shouldn't have any issues.
 
Old 10-12-2008, 04:59 AM   #14
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: Arch
Posts: 118

Original Poster
Rep: Reputation: 16
I recently had to install Debian Lenny on another machine. After installation and setting up the necessary sources in the sources.list, I updated and upgraded with apt-get. But this didn't upgrade the kernel to 2.6.26-1-686 as it happened on the machine I wrote about above and remains 2.6.25-1-686.

Anybody has any speculation why?

BTW, I thought it's better to revive an old thread (one-month-old) than creating a new one since the issue is relevant.
 
Old 10-12-2008, 06:14 AM   #15
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
You only get the kernel upgrade automatically if you installed a dummy kernel package, something like linux-image-2.6-686 in your case. That package exists only to make sure that you have the latest version of the -686 kernel in the 2.6 series. Depending on how you installed, you may not have that package. Try this search on both machines to compare:
Code:
aptitude search ~ilinux-image
 
  


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
Crash happened in invalidate_list function in kernel 2.4.17 muralis Linux - Kernel 1 09-21-2007 04:47 PM
what happened to kernel-source in FC3? JustinHoMi Fedora 3 01-17-2005 02:52 PM
How could this have happened to me?! Hard locks and kernel panics for no good reason! jamespetts Linux - General 8 08-05-2004 07:45 AM
What happened to automounting cd's after recompiling kernel? Braveheart1980 Linux - General 2 07-08-2004 04:24 AM
What happened to Linux? Darin Slackware 8 01-26-2003 02:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:59 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