LinuxQuestions.org
Help answer threads with 0 replies.
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 11-21-2006, 11:59 AM   #1
jaristr
Member
 
Registered: Aug 2005
Distribution: Debian and slackware based
Posts: 119

Rep: Reputation: 15
Kernel panic after upgrade


Hi,
I updated some debian packages using unstable repository (used the stable before that) and I think it updated the kernel but after boot this is what it gives: http://img370.imageshack.us/img370/8339/kpwx3.png
A kernel panic, is there anything you can do at these kind of situations or do you just have to reinstall the OS?

Thanks.
 
Old 11-21-2006, 12:12 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What kernel did you install and what kernel are you trying to boot? It seems from there what happened is that it updated some programs, specifically modprobe and now you're trying to boot the old kernel, but don't have the old modprobe.

I would try booting with a liveCD and see if there is a newer kernel listed and that it just wasn't added to the grub menu.lst. The new kernel should be in the /boot directory (you'll have to chroot in) and the menu.lst will be in /boot/grub/menu.lst. Edit the menu.lst so you can try to boot the new kernel.
 
Old 11-21-2006, 12:47 PM   #3
jaristr
Member
 
Registered: Aug 2005
Distribution: Debian and slackware based
Posts: 119

Original Poster
Rep: Reputation: 15
Thank you for the reply, here is a screen shot of the grub menu:
http://img161.imageshack.us/my.php?image=bmkt4.png

I dont remember what the kernel version was but we can see that the new/current one from that screen shot, 2.4.27-2-386
 
Old 11-21-2006, 01:08 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What is wrong is that you updated modprobe and the new modprobe is not compatible with the old 2.4 kernels (BTW, 2.4.27 is the default Debian kernel, not an updated one). It is expecting a new 2.6 kernel.

As I said, you need to boot with a Live CD and see if it installed a 2.6 kernel to the /boot menu. If so, you need to add it to the grub menu so you can boot the newer kernel. If this is a new install and you haven't done much work yet, it might be easier to just reinstall (type linux26 at the boot prompt for a 2.6.8 kernel).

Otherwise, do the following:
Code:
1) boot with a live CD like Knoppix
2) mount your / debian partition somewhere
3) chroot /mnt/whatever (change /mnt/whatever to where you mounted your / debian partition)
4) cd /boot and then ls to see what kernel are listed.  If you only see 2.4.27, you can try to aptitude install kernel-image-2.6-386 (assuming you have a pentium type computer).  To see other kernels, use apt-cache search kernel-image
5) edit /boot/grub/menu.lst to include the 2.6 kernel in the /boot directory
6) type exit and reboot, selecting the 2.6 kernel.
It just dawned on me that you said you installed some packages from Sid. Were you trying to upgrade your entire install or just a few packages? Did you use apt-pinning?
 
Old 11-21-2006, 09:41 PM   #5
jaristr
Member
 
Registered: Aug 2005
Distribution: Debian and slackware based
Posts: 119

Original Poster
Rep: Reputation: 15
Ok thanks a lot for the instructions! Let's see, what is Sid? I said I installed from the unstable because I wanted latest packages and I meant to install only one game first but it wanted to upgrade a whole list of packages first so I let it do that...

I forgot to mention that Im actually running the debian inside a vmware player. So I hope that is not causing the problem but now that I think about it, this isnt the first time updating kernel has failed using a VM and ended up in kernel panic. Same thing happened with FC5 last time.

I used ubuntu as liveCD and mounted the debian partition (HD) and this is how it looks in the boot directory: http://img224.imageshack.us/img224/3929/ulcvtt0.png

If this cannot be fixed it's alright but I would like to learn how to fix these.
 
Old 11-22-2006, 11:17 AM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Okay, so it looks like it only updated modprobe and not a kernel (see, there is only one kernel listed, 2.4.27).

So what I would try now (though I'm not sure it will work), is to mount the drive like you did in Ubuntu. Then do chroot /mnt/debi (assuming of course, you use that same mount point). This will make you root in your Debian partition (i.e. it's like being logged into a Debian root console, you are no longer in Ubuntu).

Then you have a couple of options:

1) if you don't mind running Sid (unstable branch codename) totally, then edit your /etc/apt/sources.list and change every "stable"/"sarge" to "unstable"/"sid" (you can use either the branch - stable or unstable - or the codenames -sarge or sid -. Then run aptitude update && aptitude dist-upgrade. The downside to running Sid is that you'll get a lot of updates and things will occasionally break (about as much as any other bleeding edge distro like Fedora). Sarge is rock solid stable. Nothing should ever break. Or you can use Etch (testing) which will become the new stable in a relatively short time (next couple months, I think). Testing is a middle ground, more stable than things like Fedora, but not up to Debian's "stable" (which means it has to be rock solid on all the CPU architectures supported by Debian).

2) Just update the kernel and see if that will fix it. Do aptitude install linux-image-2.6-386 and see if that will let you boot.

3) Reinstall. Maybe use the new Etch installer, which will get you newer packages, but not the latest.

You can always upgrade to sid by changing the /etc/apt/sources.list file as mentioned above. That's one of the powerful things about Debian. I can upgrade releases each time without any problems. Just change the sources and do a dist-upgrade.

Let me know if any of these work. I've never tried running aptitude from a chroot environment, but I don't see why it shouldn't work...
 
Old 11-24-2006, 08:37 AM   #7
jaristr
Member
 
Registered: Aug 2005
Distribution: Debian and slackware based
Posts: 119

Original Poster
Rep: Reputation: 15
Thanks for the great instructions! I tried options 1 and 2 but it's giving the exact same error after the upgrade.
Well I'm, just going to reinstall then.

Thanks.
 
Old 11-28-2006, 05:43 AM   #8
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100
Blog Entries: 1

Rep: Reputation: 15
Quote:
Originally Posted by jaristr
Thanks for the great instructions! I tried options 1 and 2 but it's giving the exact same error after the upgrade.
Well I'm, just going to reinstall then.

Thanks.
Dear Jaristr,

Find out the step no 8 in the below document and you will find that what error you have done actually:

http://www.linuxquestions.org/linux/answers/print/150

The thing is you have left the option for the Extended FS partiotion to 'm' instead of 'y', and that is why you are getting the error of pivot root(See the last third line in the .png file you have posted in your first post of this thread).

So you have to do the make config and have to do select the 'y' in EXT3_FS option in the fs partition option while compiling the kernel.

Let me hope this will work for you, best of Luck.

Thanks,
Nishant
 
  


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
kernel panic after yum upgrade jemhood Fedora 1 11-10-2006 09:57 PM
pacman -Su, kernel upgrade, kernel panic, change distro? jkh Arch 35 03-10-2006 01:14 AM
Kernel panic after motherboard upgrade TarouSatomi Linux - Hardware 1 11-13-2005 03:24 PM
Kernel panic after Redhat 8.0 upgrade Kajtek Linux - Software 10 04-11-2003 05:21 PM

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

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

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