System won't boot after kernel upgrade

Hi I did some upgrades last night and after that the system won’t boot.
I have just OpenSuse 12.1 which run w/o problems since upgrade.
I’m using PartedMagic to get all these info and post them here:


root@PartedMagic:~# fdisk -l
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007d596
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    41945087    20971520   83  Linux
/dev/sda2        41945088   146802687    52428800   82  Linux swap / Solaris
/dev/sda3       146802688  3904903167  1879050240   83  Linux

sda1 and sda2 seems ok for fsck but i think something is wrong with this:


root@PartedMagic:~# fsck /dev/sda2
fsck 1.41.12 (17-May-2010)
fsck: fsck.swap: not found
fsck: Error 2 while executing fsck.swap for /dev/sda2

not sure what to do. Please help me out. Thanks

How about telling us what happens when you try and boot SUSE?
What do you see…? Or not? (Grub menu? Splash?)

On 02/11/2012 09:16 PM, dmera wrote:
> the system won’t boot.

what does that mean?
do you see an error? what does it say?

exactly what happens?

you push the power button and what? does the machine remain dark and
nothing moves?

can you hear anything turning or spinning?
do any of the keyboard LEDs illuminate?
any of them flashing?

or does the screen light up? do you see the familiar first green screen
looking something like this: http://tinyurl.com/3qde66h

and then it drops down and you see what…and, then what…

does the screen turn black?
does it have a little white line in the upper left corner blinking?
does it have a mouse pointer? can you move it? can you not move it?

and, when you say “I did some upgrades last night” what does that mean?
did you install some software? what and how?
did you edit some configuration files? what and how?
did you delete some software? what and how?

did you add some hardware? take away some hardware?

why did you conclude that you needed to run fsck? that is, have you been
having hard drive problems?

see…we could use some more information before we start trying to
guess where to start.


DD http://tinyurl.com/DD-Caveat http://tinyurl.com/DD-Hardware
http://tinyurl.com/DD-Software
Read what Distro Watch writes: http://tinyurl.com/SUSEonDW

sorry to be too brief. I just did as I do usually regular updates to all the packages which are newer than what I have installed.I iknow that I should be more selective and that’s why I got into this). So no hardware changes. I get the grub menu which has these options:
Desktop – openSuse 12.1 - 3.1.9-1.4
Failsafe – openSuse 12.1 - 3.1.9-1.4
Desktop – openSuse 12.1 - 3.1.0-1.2
Failsafe – openSuse 12.1 - 3.1.0-1.2
Linux other ( not sure what this means probably from the upgrade, but I will clean it up )
After choosing Desktop 3.1.9-1.4
i get this:
kernel resume=/dev/disk/by-id/ata-Hitachi_HDS5C*…-part2 splash=silent quiet

Error 1: Filename must be either an absolute path or blocklist
press any key to continue…

when I try Desktop 3.1.0-1.2 i get this:
Booting ‘Desktop – openSUSE 12.1 - 3.1.0-1.2’
root (hd0,0)
Filesystemtype is ext2fs,partition type 0x83
kernel /boot/vmlinuz-3.1.0-1.2-desktop root=/dev/disk/by-id/ata-Hitachi_HDS5C*-part1 resume=/dev/disk/by-id/ata-Hitachi_HDS5C*…-part2 splash=silent quiet showpts vga=0x31b
Error 15: File not found
Press any key to continue
I think that grub got messed up and for some reason has no complete path for the first option and missing something for the second option.
the Linux option gives this( I think this will have to be removed entirely as it is just some leftover from the upgrade which was ignored by me until now):
rootnoverify (hd1,0)
chainloader +1
Error 21: Selected disk does not exist
Press any key to continue…
I tried to add nomodeset but that didn’t help passing this point.

To answer some of the questions from before:
I run fdisk as above and fsck just after I read some posts.
thanks

On 02/11/2012 11:16 PM, dmera wrote:
> After choosing Desktop 3.1.9-1.4

what happens if you choose Desktop 3.1.0-1.2 ?

i do not think i can help you (i say that hoping someone who can will
step up) but, i think if you can boot the -1.2 kernel or otherwise
provide a copy/paste back to here the output from


sudo cat /boot/grub/menu.lst

using the instructions here: http://goo.gl/i3wnr

then, maybe the right guru can help…or maybe not…

yep: “I just did as I do usually regular updates to all
the packages which are newer than what I have installed.” that is a
pretty good way to make sure you have something to fix…

but of course, you did a complete system backup before that, right? so,
just restore from backup!


DD http://tinyurl.com/DD-Caveat
Read what Distro Watch writes: http://tinyurl.com/SUSEonDW

  1. Use UUIDs in /boot/grub/menu.lst, /etc/fstab and /etc/sysconfig/bootloader instead of disk IDs + partition numbers.
    You can see an example here: http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/472178-12-1-gnome-3-gparted-swapon-command-not-found-how-enable-swap.html#post2438346.

  2. What is that?

Make sure that BIOS device to HDD mapping is correct in /boot/grub/device.map before doing a kernel update.

On 2012-02-11 21:16, dmera wrote:
>
> Hi I did some upgrades last night and after that the system won’t boot.

Insufficient description.

> sda1 and sda2 seems ok for fsck but i think something is wrong with
> this:
> root@PartedMagic:~# fsck /dev/sda2
> fsck 1.41.12 (17-May-2010)
> fsck: fsck.swap: not found
> fsck: Error 2 while executing fsck.swap for /dev/sda2

Wrong? I see nothing wrong. Except you trying to fsck a swap.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 2012-02-11 23:16, dmera wrote:
> After choosing Desktop 3.1.9-1.4
> i get this:

Please use code tags to post code.

> kernel resume=/dev/disk/by-id/ata-Hitachi_HDS5C*…-part2 splash=silent
> quiet
>
> Error 1: Filename must be either an absolute path or blocklist
> press any key to continue…

That line is incomplete, misses entries. It is bug 745024, I think.
Confirm, correct menu.lst, and report.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

# Modified by YaST2. Last modification on Fri Feb 10 19:45:07 EST 2012
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# For the new kernel it try to figure out old parameters. In case we are  not able to recognize it (e.g. change of flavor or strange install  order ) it it use as fallback installation parameters from  /etc/sysconfig/bootloader

default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,0)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 12.1 - 3.1.9-1.4
    kernel  resume=/dev/disk/by-id/ata-Hitachi_HDS5C3020ALA632_ML4220F318T4VK-part2 splash=silent quiet showopts vga=0x31b
    initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 12.1 - 3.1.9-1.4
    kernel  showopts apm=off noresume edd=off powersaved=off nohz=off  highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x31a
    initrd


###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 12.1 - 3.1.0-1.2
    root (hd0,0)
    kernel /boot/vmlinuz-3.1.0-1.2-desktop  root=/dev/disk/by-id/ata-Hitachi_HDS5C3020ALA632_ML4220F318T4VK-part1  resume=/dev/disk/by-id/ata-Hitachi_HDS5C3020ALA632_ML4220F318T4VK-part2  splash=silent quiet showopts vga=0x31b
    initrd /boot/initrd-3.1.0-1.2-desktop


###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 12.1 - 3.1.0-1.2
    root (hd0,0)
    kernel /boot/vmlinuz-3.1.0-1.2-desktop  root=/dev/disk/by-id/ata-Hitachi_HDS5C3020ALA632_ML4220F318T4VK-part1  showopts apm=off noresume edd=off powersaved=off nohz=off highres=off  processor.max_cstate=1 nomodeset x11failsafe vga=0x31a
    initrd /boot/initrd-3.1.0-1.2-desktop


###Don't change this comment - YaST2 identifier: Original name: Linux other###
title Linux other
    rootnoverify (hd1,0)
    chainloader +1

well as lots of us it seems that I learn only the hard way so i didn’t do any backup. thanks for helping me/us.

These entries are incomplete. Assuming the root partition is sda1, it should be:


###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 12.1 - 3.1.9-1.4
    root (hd0,0)
    kernel /boot/vmlinuz-3.9.1-1.4-desktop root=/dev/disk/by-id/ata-Hitachi_HDS5C3020ALA632_ML4220F318T4VK-part1 resume=/dev/disk/by-id/ata-Hitachi_HDS5C3020ALA632_ML4220F318T4VK-part2 splash=silent quiet showopts vga=0x31b
    initrd /boot/initrd-3.1.9-1.4-desktop
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 12.1 - 3.1.9-1.4
    root (hd0,0)
    kernel /boot/vmlinuz-3.1.9-1.4-desktop root=/dev/disk/by-id/ata-Hitachi_HDS5C3020ALA632_ML4220F318T4VK-part1 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x31a
    initrd /boot/initrd-3.1.9-1.4-desktop

i noticed that but not sure why the upgrade would be incomplete. I noticed that Yast complained that it couldn’t find some files but it completed the process successfully(so it reported) and then it asked me to reboot for the new kernel to be in place. Did the reboot normal way and then got to the menu problem. I was able to log in now and everything is nice and running. I would provide more info if somehow I can help correct some problems which created this problem. Please let me know what info should I send for a bug report. Thank you.

On 2012-02-11 23:56, dmera wrote:

Please, use code tags, not PHP code tags.

> PHP code:
> --------------------

> ###Don’t change this comment - YaST2 identifier: Original name: linux###
> title Desktop – openSUSE 12.1 - 3.1.9-1.4
> kernel resume=/dev/disk/by-id/ata-Hitachi_HDS5C3020ALA632_ML4220F318T4VK-part2 splash=silent quiet showopts vga=0x31b
> initrd
>
> ###Don’t change this comment - YaST2 identifier: Original name: failsafe###
> title Failsafe – openSUSE 12.1 - 3.1.9-1.4
> kernel showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x31a
> initrd

> --------------------

Indeed, this is bug 745024. Please add a “me too” to it.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

On 2012-02-12 00:16, dmera wrote:
>
> i noticed that but not sure why the upgrade would be incomplete.

Because it is a bug.

> Please let me
> know what info should I send for a bug report. Thank you.

Just read the current description of the bug and add the details of your
symptoms.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

https://bugzilla.novell.com/show_bug.cgi?id=745024

added coments to bugzilla. Thanks a lot to all of you.

On 2012-02-12 02:16, dmera wrote:

> added coments to bugzilla. Thanks a lot to all of you.

Thank you too :slight_smile:

Filling bugs is important, and adding comments to already filled reports is
also important, because it proves that the problem affects more than one
installation, and increases chances of attention from the devs.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Good to see you guys looked after this whilst I was sleeping…
Nasty bug. Happy it didn’t hit my box.

Indeed. It would be interesting to know how you guys did the kernel update. I updated the kernel on about 5 machines and haven’t seen that bug either.

Similar here
But 4 machines - but that’s 6 installations of 12.1
All went without a problem.

Carlos, can you reproduce the bug if you delete the boot entries from menu.lst and add them back with /sbin/update-bootloader:

/sbin/update-bootloader --add --image /boot/vmlinuz-3.1.9-1.4-desktop --initrd /boot/initrd-3.1.9-1.4-desktop

?

Or maybe these options were not passed correctly to the Perl bootloader (?)