LinuxQuestions.org
Visit Jeremy's Blog.
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 10-18-2006, 01:44 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 73
Dist-Upgrade = Kernel Panic


So I did a new install of Etch and I did the usual "apt-get update" and "apt-get dist-upgrade". I noticed in the list of upgrades it installed the 2.6.17-2-686 kernel over the default 2.6.16-2-686 kernel. When I rebooted after the "apt-get dist-upgrade", I received a "Kernel Panic".

Is there a way to verify why and how to fix this? I was able to boot back into the 2.6.16-2-686 kernel now and everything is fine but I don't understand.

Thanks!
 
Old 10-18-2006, 02:56 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I would enable the boot log (modify /etc/default/bootlogd and the log will be at /var/log/boot). Also, if you can post your menu.lst, and the output of ls /boot, maybe there will be something clear there.
 
Old 10-18-2006, 03:13 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 73
I enabled logging.

Code:
cwilliams:/etc/default# ls /boot/
config-2.6.16-2-686  initrd.img-2.6.16-2-686      System.map-2.6.17-2-686
config-2.6.17-2-686  initrd.img-2.6.16-2-686.bak  vmlinuz-2.6.16-2-686
grub                 System.map-2.6.16-2-686      vmlinuz-2.6.17-2-686
Code:
title           Debian GNU/Linux, kernel 2.6.17-2-686
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.17-2-686 root=/dev/sda1 ro
savedefault

title           Debian GNU/Linux, kernel 2.6.17-2-686 (single-user mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.17-2-686 root=/dev/sda1 ro single
savedefault

title           Debian GNU/Linux, kernel 2.6.16-2-686
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.16-2-686 root=/dev/sda1 ro
initrd          /boot/initrd.img-2.6.16-2-686
savedefault

title           Debian GNU/Linux, kernel 2.6.16-2-686 (single-user mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.16-2-686 root=/dev/sda1 ro single
initrd          /boot/initrd.img-2.6.16-2-686
savedefault
 
Old 10-18-2006, 03:38 PM   #4
antidrugue
LQ Newbie
 
Registered: Dec 2005
Distribution: Debian Sarge/Etch
Posts: 9

Rep: Reputation: 0
It seems you are missing the obvious : a "initrd" file for your new 2.6.17-2-686 kernel.

Perhaps you can build a new one. Boot with your working kernel (2.6.16-2-686) and use one of these commands :
Code:
mkinitramfs -o /boot/initrd.img-2.6.17-2-686
if you use "initramfs".

Or
Code:
mkinitrd -o /boot/initrd.img-2.6.17-2-686
if you use "initrd".

Then update grub so it boots from the 2.6.17-2-686 initrd file. And boot into your new kernel.
 
Old 10-18-2006, 03:39 PM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 73
Awesome - I will try that and post back my results!
 
  


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
apt-get dist upgrade kernel image removed gordonp Linux - Newbie 3 06-09-2006 11:47 AM
pacman -Su, kernel upgrade, kernel panic, change distro? jkh Arch 35 03-10-2006 02:14 AM
Kernel panic after motherboard upgrade TarouSatomi Linux - Hardware 1 11-13-2005 04:24 PM
Does Apt-get dist-upgrade automatically update the kernel? adamb10 Ubuntu 2 07-10-2005 11:57 AM


All times are GMT -5. The time now is 12:35 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration