Can not boot after kernel upgrade to 3.5.0-27-generic

Asked by Frank Jonsson

Did run 3.5.0-25 ok
Did run 3.5.0-26 ok
Yesterday accepted upgrade to -27
Now it wont boot -27 nor -26 only -25

The error is:
Boot from (hd0,0) ext4 ce4cc646-b24a-4576-9d45-ca94bdd0ef99
Error 13: Invalid or unsupported executable format
Press any key to contuniue ...

Then grub and boot from -25.
Have changed boot default to -25 (or 4) which means that I will not experience future kernels and new "introductions" *LOL*

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Solved by:
Frank Jonsson
Solved:
Last query:
Last reply:
Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#1

Hmmm, maybe is not a kernel fault , but grub instead.

Have you tried to repair GRUB ?

Try boot-repair and do not forget to show us the Link (URL)

https://help.ubuntu.com/community/Boot-Repair#A2nd_option_:_install_Boot-Repair_in_Ubuntu

Regards
 NikTh

Revision history for this message
Frank Jonsson (frank-d) said :
#2

Did the Boot-Repair and changed default to 0 in grub and ran update.

-27 & -26 ran with errors see below
-25 is again and still functional

Error:
Loading Linux 3.5.0-27-generic ...
error: invalid magic numer.
Loading initial ramdisk ...
error: you need to load the kernel first

Press any .....

Revision history for this message
Frank Jonsson (frank-d) said :
#3

Forgot this - BootRepair ends with

Boot successfully repaired.

Please write on a paper the following URL:
http://paste.ubuntu.com/5695237/

In case you still experience boot problem, indicate this URL to:
<email address hidden> or to your favorite support forum.

You can now reboot your computer.

The boot files of [The OS now in use - Ubuntu 12.10] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)

Revision history for this message
Frank Jonsson (frank-d) said :
#4

- > Advanced with Pruge Grub

Boot successfully repaired.

Please write on a paper the following URL:
http://paste.ubuntu.com/5695272/

In case you still experience boot problem, indicate this URL to:
<email address hidden> or to your favorite support forum.

You can now reboot your computer.

The boot files of [The OS now in use - Ubuntu 12.10] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#5

Well , as I can see this is not a GRUB problem. No critical problems found in boot-info URL.

So probably something is going wrong with the kernel.

Boot from the working kernel (linux-image 3.5.0-25) and remove all other linux kernel with their headers too.

You can use synaptic package manager to this.

    sudo apt-get install synaptic

Then "call it" from Dash (it will need root privileges) and search (on search box) for linux-image and then linux-headers

Locate the appropriate ones , and right click > Complete Removal.

After that , reboot and if everything is Ok , then re-install the latest kernel (or make a system update).

    sudo apt-get update
    sudo apt-get dist-upgrade

Regards
 NikTh

Revision history for this message
Frank Jonsson (frank-d) said :
#6

Been down,

Solved by:

Reinstall kernel from kernel from Package Manager
Reinstalled all 3.5.0-27 packages already installed
sudo update-initramfs -u -k 3.5.0-27-generic
sudo update-grub
sudo reboot