Announcement

Collapse
No announcement yet.

Kernel Update problem (Solved)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Kernel Update problem (Solved)

    Hi

    I have a problem with the boot after Kernel update.

    I have made the update of Kernel to version 2.6.28.15, but when I restart the system and choose that version or all the version from 12 to 15, I get this error:

    Error 13: Invalid or Unsupported executable format.

    The only version that boots its the 11.

    How to solve this??
    Thanks in advance.

    #2
    Re: Kernel Update problem

    This typically means that you have a problem in the grub configuration. Can you please post the output of

    Code:
    cat /boot/grub/menu.lst
    Generally speaking, you can install kgrubeditor and then access it in the System Settings -> Advanced tab. There is also a comprehensive guide to grub here (by QMike). BUt if you post the contents of that file it may be a no-brainer (since one of the kernels is booting).

    Comment


      #3
      Re: Kernel Update problem

      Hi

      Thanks for your reply.
      Here it is:

      default 0
      timeout 10

      ### BEGIN AUTOMAGIC KERNELS LIST
      ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
      ## by the debian update-grub script except for the default options below

      ## DO NOT UNCOMMENT THEM, Just edit them to your needs

      ## ## Start Default Options ##
      ## default kernel options
      ## default kernel options for automagic boot options
      ## If you want special options for specific kernels use kopt_x_y_z
      ## where x.y.z is kernel version. Minor versions can be omitted.
      ## e.g. kopt=root=/dev/hda1 ro
      ## kopt_2_6_8=root=/dev/hdc1 ro
      ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
      # kopt=root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT

      ## default grub root device
      ## e.g. groot=(hd0,0)
      # groot=2c6c8919-cd59-4dbe-8f68-440443b92864

      ## should update-grub create alternative automagic boot options
      ## e.g. alternative=true
      ## alternative=false
      # alternative=true

      ## should update-grub lock alternative automagic boot options
      ## e.g. lockalternative=true
      ## lockalternative=false
      # lockalternative=false

      ## additional options to use with the default boot option, but not with the
      ## alternatives
      ## e.g. defoptions=vga=791 resume=/dev/hda5
      # defoptions=quiet splash

      ## should update-grub lock old automagic boot options
      ## e.g. lockold=false
      ## lockold=true
      # lockold=false

      ## Xen hypervisor options to use with the default Xen boot option
      # xenhopt=

      ## Xen Linux kernel options to use with the default Xen boot option
      # xenkopt=console=tty0

      ## altoption boot targets option
      ## multiple altoptions lines are allowed
      ## e.g. altoptions=(extra menu suffix) extra boot options
      ## altoptions=(recovery) single
      # altoptions=(recovery mode) single

      ## controls how many kernels should be put into the menu.lst
      ## only counts the first occurence of a kernel, not the
      ## alternative kernel options
      ## e.g. howmany=all
      ## howmany=7
      # howmany=all

      ## specify if running in Xen domU or have grub detect automatically
      ## update-grub will ignore non-xen kernels when running in domU and vice versa
      ## e.g. indomU=detect
      ## indomU=true
      ## indomU=false
      # indomU=detect

      ## should update-grub create memtest86 boot option
      ## e.g. memtest86=true
      ## memtest86=false
      # memtest86=true

      ## should update-grub adjust the value of the default booted system
      ## can be true or false
      # updatedefaultentry=false

      ## should update-grub add savedefault to the default options
      ## can be true or false
      # savedefault=false

      ## ## End Default Options ##

      title Ubuntu 9.04, kernel 2.6.28-15-generic
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT quiet splash
      initrd /boot/initrd.img-2.6.28-15-generic
      quiet

      title Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT single
      initrd /boot/initrd.img-2.6.28-15-generic

      title Ubuntu 9.04, kernel 2.6.28-14-generic
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT quiet splash
      initrd /boot/initrd.img-2.6.28-14-generic
      quiet

      title Ubuntu 9.04, kernel 2.6.28-14-generic (recovery mode)
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT single
      initrd /boot/initrd.img-2.6.28-14-generic

      title Ubuntu 9.04, kernel 2.6.28-13-generic
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT quiet splash
      initrd /boot/initrd.img-2.6.28-13-generic
      quiet

      title Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT single
      initrd /boot/initrd.img-2.6.28-13-generic

      title Ubuntu 9.04, kernel 2.6.28-12-generic
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/vmlinuz-2.6.28-12-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT quiet splash
      initrd /boot/initrd.img-2.6.28-12-generic
      quiet

      title Ubuntu 9.04, kernel 2.6.28-12-generic (recovery mode)
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/vmlinuz-2.6.28-12-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT single
      initrd /boot/initrd.img-2.6.28-12-generic

      title Ubuntu 9.04, kernel 2.6.28-11-generic
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT quiet splash
      initrd /boot/initrd.img-2.6.28-11-generic
      quiet

      title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT single
      initrd /boot/initrd.img-2.6.28-11-generic

      title Ubuntu 9.04, kernel 2.6.27-14-generic
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/vmlinuz-2.6.27-14-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT quiet splash
      initrd /boot/initrd.img-2.6.27-14-generic
      quiet

      title Ubuntu 9.04, kernel 2.6.27-14-generic (recovery mode)
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/vmlinuz-2.6.27-14-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro locale=pt_PT single
      initrd /boot/initrd.img-2.6.27-14-generic

      title Ubuntu 9.04, memtest86+
      uuid 2c6c8919-cd59-4dbe-8f68-440443b92864
      kernel /boot/memtest86+.bin
      quiet

      ### END DEBIAN AUTOMAGIC KERNELS LIST

      Comment


        #4
        Re: Kernel Update problem

        From the GRUB Manual:
        13 : Invalid or unsupported executable format
        This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD).
        Most of the Error 13's I was able to find searching are related to dual booting windows and linux; primarily trying to boot windows incorrectly. From your menu.lst, it doesn't look like that's your problem.

        Can you boot any of the "unbootable" kernels in rescue mode?

        Another problem might be that the kernels are not installing properly for some reason.
        You could boot into your system with kernel-11 and try:

        Code:
        sudo dpkg-reconfigure linux-image-2.6.28-15-generic
        and see if it gives any error messages.

        We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

        Comment


          #5
          Re: Kernel Update problem

          You are welcome

          Arrg, there is no obvious error. Can you please run this in konsole and report the output? (look for error messages, etc)

          Code:
          sudo update-grub
          Please try Dr Duid's recommendation, too, that's a good idea.

          Comment


            #6
            Re: Kernel Update problem

            Hi

            Thanks again.

            After the reconfigure command:
            Running depmod.
            update-initramfs: Generating /boot/initrd.img-2.6.28-15-generic
            Not updating initrd symbolic links since we are being updated/reinstalled
            (2.6.28-15.48 was configured last, according to dpkg)
            Not updating image symbolic links since we are being updated/reinstalled
            (2.6.28-15.48 was configured last, according to dpkg)
            Running postinst hook script /sbin/update-grub.
            Searching for GRUB installation directory ... found: /boot/grub
            Searching for default file ... found: /boot/grub/default
            Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
            Searching for splash image ... none found, skipping ...
            Found kernel: /boot/vmlinuz-2.6.28-15-generic
            Found kernel: /boot/vmlinuz-2.6.28-14-generic
            Found kernel: /boot/vmlinuz-2.6.28-13-generic
            Found kernel: /boot/vmlinuz-2.6.28-12-generic
            Found kernel: /boot/vmlinuz-2.6.28-11-generic
            Found kernel: /boot/vmlinuz-2.6.27-14-generic
            Found kernel: /boot/memtest86+.bin
            Updating /boot/grub/menu.lst ... done

            Examining /etc/kernel/postinst.d.
            run-parts: executing /etc/kernel/postinst.d/dkms
            * Running DKMS auto installation service for kernel 2.6.28-15-generic
            * fglrx (8.600)... fglrx (8.600): Already installed on this kernel.
            [ OK ]
            * vboxdrv (3.0.2)... vboxdrv (3.0.2): Already installed on this kernel.
            [ OK ]
            * vboxnetadp (3.0.2)... vboxnetadp (3.0.2): Already installed on this kernel.
            [ OK ]
            * vboxnetflt (3.0.2)... vboxnetflt (3.0.2): Already installed on this kernel.
            [ OK ]
            * virtualbox-ose-guest (3.0.2)... virtualbox-ose-guest (3.0.2): Already installed on this kernel.
            [ OK ]
            run-parts: executing /etc/kernel/postinst.d/nvidia-common

            After the sudo-update-grub:

            Searching for GRUB installation directory ... found: /boot/grub
            Searching for default file ... found: /boot/grub/default
            Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
            Searching for splash image ... none found, skipping ...
            Found kernel: /boot/vmlinuz-2.6.28-15-generic
            Found kernel: /boot/vmlinuz-2.6.28-14-generic
            Found kernel: /boot/vmlinuz-2.6.28-13-generic
            Found kernel: /boot/vmlinuz-2.6.28-12-generic
            Found kernel: /boot/vmlinuz-2.6.28-11-generic
            Found kernel: /boot/vmlinuz-2.6.27-14-generic
            Found kernel: /boot/memtest86+.bin
            Updating /boot/grub/menu.lst ... done


            Still can't boot from those options not even in recovery mode.

            Comment


              #7
              Re: Kernel Update problem

              It all looks good. I wonder if there is something about virtual box interfering, are you using it?

              Do you know how to edit grub?
              http://grumpymole.blogspot.com/2007/...arameters.html

              I would do that in your next boot, and try to remove most parameters:

              Code:
              /boot/vmlinuz-2.6.28-15-generic root=UUID=2c6c8919-cd59-4dbe-8f68-440443b92864 ro
              1st. I wonder if the locale is the trouble, and or the vga boot. Other things to try:

              Code:
              df -h
              Code:
              ls -lh /boot
              (What if there is no space in /boot, etc. I doubt it, but hey)

              Another thing you may wanna try is to temporarily add a karmic line in the sources list and install _ONLY_ the kernel from there, and see if it works (and then disable that repo right away -- I am usint this in my eeepc to improve graphics on the Intel IGP).

              Best luck!

              Comment


                #8
                Re: Kernel Update problem

                Hold on, are you using ext4?
                If so, wow, i was hit by the same bug, and used the workaround from here to fix it:
                https://bugs.launchpad.net/ubuntu/+s...ub/+bug/365331

                I think you owe me a cold one

                Comment


                  #9
                  Re: Kernel Update problem

                  Yes, I use ext4.

                  I'll check that bug issue.

                  Thank You

                  Comment


                    #10
                    Re: Kernel Update problem

                    Good, it would be great if you could post in Launchpad too

                    Comment


                      #11
                      Re: Kernel Update problem

                      Hmmm. Looks like GRUB may have issues with ext4. Glad I found out about this, before I reformatted by jaunty/boot partition to ext4...

                      They are packaging GRUB-2 with new karmic installations, and that may be the ultimate fix for ext4 systems, though from reading this forum, it looks like GRUB-2 is an adventure in itself.
                      We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

                      Comment


                        #12
                        Re: Kernel Update problem

                        Originally posted by doctordruidphd
                        Glad I found out about this, before I reformatted by jaunty/boot partition to ext4...
                        You well deserve this benefit from helping others in the forum! 8)

                        Comment


                          #13
                          Re: Kernel Update problem

                          Hi again

                          I'm still a little newbie

                          Do you think it's better for me to wait till the bug is solved? Will it be soon?
                          Or should I adventure myself into the terminal adventure??

                          Thanks for all your support

                          Comment


                            #14
                            Re: Kernel Update problem

                            Actually, I looked at the workaround. Because you can boot from the old kernel, you only need the last step:

                            I am assuming you only have one hard drive. In that case, you may try this (WARNING: most likely this will solve the issue, but this will recreate the bootloader, so there is a very small chance, but a change you may be unable to boot after this):

                            Code:
                            sudo grub-install --recheck /dev/sda
                            Otherwise, please post the output of "df -h"

                            Comment


                              #15
                              Re: Kernel Update problem

                              Hi lmilano

                              You are great, thanks for all your help.

                              I'll post the output of the command, because I have 3 disks

                              Is better that way.

                              Thanks again

                              Comment

                              Working...
                              X