LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Kernel Update Caused Panic, Howto Downgrade (https://www.linuxquestions.org/questions/linux-software-2/kernel-update-caused-panic-howto-downgrade-436671/)

hategiants 04-19-2006 03:57 AM

Kernel Update Caused Panic, Howto Downgrade
 
I am using SuSE 9.2 2.6.8-24 and I inadvertantly upgraded to 2.6.8.24-20. I am running a Broadcom BC4852 Raid 5 array and currently there is not driver support for 2.6.8.24-20. While rebooting after this upgrade the boot process fails giving me the error:

Waiting for device to appear /dev/sda2: ....... not found : device nodes:
...prints a bunch of tty stuff...
No root device found; exiting to /bin/sh

I am able to boot into the Rescue Disk off the SuSE install dvd and I can load the proper drivers and then remount the array. The rescue disk loads the older kernel I have driver support for. How can I downgrade my kernel to its previous version?

BTW I used `apt-get upgrade` to perform this task. I am hoping I can use apt-get again to downgrade the kernel. Any thoughts?

weibullguy 04-19-2006 04:15 AM

You said you can use the rescue disk to load the old kernel? If it's using the old kernel from your hard drive, just edit your grub.conf (menu.lst) to use your previous kernel.

BobNutfield 04-19-2006 04:47 AM

Hi

I don't if this will help, but I just experienced the same problem trying to boot into a new (self compiled) kernel with the same error message. It turned out that the new kernel did not have the correct SATA driver installed (in my case, I had to recompile and change it to nVidia SATA.) Once this was installed and recompiled, sda2 (same location on my drive) was found and mounted,

Hope this helps

Bob

hategiants 04-19-2006 05:06 PM

It is clear that within the /boot directory it is currently configured to boot using 2.6.8-24.20. From the rescue disc (ram disk runtime) how can I run use apt-get to uninstall the kernel and revert to my previous configuration of 2.6.8-24

Within menu.lst for grub there was no mention of the kernel. I could not pick my old version to boot into. Is there a way to manually configure this within grub because that would be an acceptable work around as well.

daihard 04-19-2006 05:11 PM

Quote:

Originally Posted by hategiants
It is clear that within the /boot directory it is currently configured to boot using 2.6.8-24.20. From the rescue disc (ram disk runtime) how can I run use apt-get to uninstall the kernel and revert to my previous configuration of 2.6.8-24

Within menu.lst for grub there was no mention of the kernel. I could not pick my old version to boot into. Is there a way to manually configure this within grub because that would be an acceptable work around as well.

You did not "update" your kernel instead of installing the new one parallel to the old one, did you?

Assuming you didn't, then you should be able to edit your /boot/grub/grub.conf to default to the old kernel. The list of kernels in grub.conf correspond to numbers staring from 0 (i.e. the top entry is 0, the next one is 1, etc). Just find the number for the kernel you'd like to boot and set the "default" parameter (near the top of the file) to that number.

hategiants 04-19-2006 07:43 PM

I know exactly what you are talking about through experience with this using Fedora. However this is a bit different and I am unfamilar with it in SuSE. Here is my menu.lst which is equivalent to grub.conf:

Code:

# Modified by YaST2. Last modification on Tue Jul 19 21:51:19 2005


color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,1)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.2
    kernel (hd0,1)/boot/vmlinuz root=/dev/sda2 vga=0x31a selinux=0 splash=silent resume=/dev/sda1 desktop elevator=as showopts
    initrd (hd0,1)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 9.2
    kernel (hd0,1)/boot/vmlinuz root=/dev/sda2 showopts ide=nodma apm=off acpi=off vga=normal noresume selinux=0 barrier=off nosmp noapic maxcpus=0  3
    initrd (hd0,1)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
    root (fd0)
    chainloader +1

Additionally Here is a ls -l of /boot/
Code:

drwxr-xr-x  3 root root    496 Apr 11 22:22 .
drwxr-xr-x  22 root root    536 Apr 15 18:27 ..
-rw-r--r--  1 root root  739982 Feb 10 15:37 System.map-2.6.8-24.20-default
-rw-r--r--  1 root root    512 Jul 19  2005 backup_mbr
lrwxrwxrwx  1 root root      1 Jul 19  2005 boot -> .
-rw-r--r--  1 root root  57530 Feb 10 15:48 config-2.6.8-24.20-default
drwxr-xr-x  2 root root    480 Apr 19 22:00 grub
lrwxrwxrwx  1 root root      26 Apr 11 22:22 initrd -> initrd-2.6.8-24.20-default
-rw-r--r--  1 root root 1225145 Apr 11 22:22 initrd-2.6.8-24.20-default
-rw-r--r--  1 root root  107520 Jul 19  2005 message
-rw-r--r--  1 root root  79238 Feb 10 15:48 symvers-2.6.8-24.20-i386-default.gz
-rw-r--r--  1 root root 1857746 Feb 10 15:48 vmlinux-2.6.8-24.20-default.gz
lrwxrwxrwx  1 root root      27 Apr 11 22:22 vmlinuz -> vmlinuz-2.6.8-24.20-default
-rw-r--r--  1 root root 1556392 Feb 10 15:37 vmlinuz-2.6.8-24.20-defaul

Finally to round out the batch here is the entry regarding the kernel in my apt.log. The date of the crime was April 11th as you can see from the log:
Code:

Tue 11 Apr 2006 03:26:17 PM PDT;upgrade;kernel-source;2.6.8-24 => 2.6.8-24.20
Tue 11 Apr 2006 03:26:17 PM PDT;upgrade;kernel-default-nongpl;2.6.8-24 => 2.6.8-24.20


hategiants 04-22-2006 07:10 PM

I resolved this issue by simply reinstalling SuSE from the original 9.2 dvd. All the updated packages were overwritten and the drivers I had worked once again.


All times are GMT -5. The time now is 07:22 PM.