Announcement

Collapse
No announcement yet.

Grub not adding upgraded Kernel

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

    Grub not adding upgraded Kernel

    I have upgraded my Kernel from 2.6.27-9 to 2.6.27-11 but there is no addition to grub for me to boot using 2.6.27-11. Wasn't this line supposed to be added to grub automatically?
    Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I&#39;m a happy pappy with Linux on my lappy!!!

    #2
    Re: Grub not adding upgraded Kernel

    Yes.
    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

    Comment


      #3
      Re: Grub not adding upgraded Kernel

      Open Konsole.
      sudo update-grub


      See if that does it.
      See also
      man update-grub
      for more.

      Make sure
      # groot=
      is correct in menu.lst.
      It should point at the partition where the kernels are (the vmlinuz files).

      - - - - -

      Another option:

      In menu.lst, make a boot stanza entry for the new kernel by copying the previous stanza and changing the kernel & initrd numbers.

      - - - - -

      Just to be sure about things, check your /boot directory and make sure the new vmlinuz and initrd are both there.

      An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

      Comment


        #4
        Re: Grub not adding upgraded Kernel

        Check also:

        ## 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 <<<<<< If you have this set to a specified number ....
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Grub not adding upgraded Kernel

          Thank you for your response. I tried Qqmikes suggestion and terminal said it found the other kernels and updated grub but they are still not there. Not sure how to do the stanza part though. Here is what my menu.lst says. What should I change. Thank you.

          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=83cc1912-e9d0-4884-a7e7-86ea9e34551d ro

          ## default grub root device
          ## e.g. groot=(hd0,0)
          # groot=83cc1912-e9d0-4884-a7e7-86ea9e34551d

          ## 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

          ## 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 8.10, kernel 2.6.27-9-generic
          kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=83cc1912-e9d0-4884-a7e7-86ea9e34551d ro quiet splash
          initrd (hd0,2)/boot/initrd.img-2.6.27-9-generic

          title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
          kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=83cc1912-e9d0-4884-a7e7-86ea9e34551d ro single
          initrd /boot/initrd.img-2.6.27-9-generic

          title Ubuntu 8.10, memtest86+
          kernel /boot/memtest86+.bin

          ### END DEBIAN AUTOMAGIC KERNELS LIST

          Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I&#39;m a happy pappy with Linux on my lappy!!!

          Comment


            #6
            Re: Grub not adding upgraded Kernel

            I figured out what making a new stanza meant and I did it. It worked great but why didn't grub update automatically? Is there an entry in my menu.lst (entered above) that needs to be changed?
            Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I&#39;m a happy pappy with Linux on my lappy!!!

            Comment


              #7
              Re: Grub not adding upgraded Kernel

              So you need a stanza for 2.6.27-11.
              First, make sure you have such a thing!
              Look in /boot and look for vmlinuz-2.6.27-11-generic and initrd.img-2.6.27-11-generic.

              Then copy you other stanza and adjust them for the new kernel
              (the “boot stanza” is everything between the title line and the last line initrd ....):

              title Ubuntu 8.10, kernel 2.6.27-11-generic
              uuid 83cc1912-e9d0-4884-a7e7-86ea9e34551d
              kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=83cc1912-e9d0-4884-a7e7-86ea9e34551d ro quiet splash
              initrd /boot/initrd.img-2.6.27-11-generic

              title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
              uuid 83cc1912-e9d0-4884-a7e7-86ea9e34551d
              kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=83cc1912-e9d0-4884-a7e7-86ea9e34551d ro single
              initrd /boot/initrd.img-2.6.27-11-generic


              NOTES:
              > I changed it a bit (I didn't use initrd (hd0,2).
              > I added the uuid line.
              > The uuid line tells GRUB where your kernels live, and should be the partition containing the /boot directory, and that is usually (for most people) the same as the partition where Kubuntu root filesystem is installed.
              > IF you copy/paste this into your menu.lst, and IF it doesn't work (Error 15 or something else), THEN simply re-type it by hand (into menu.lst).


              Since you are doing this, double-check that UUID, but I'm (almost) positive it's correct:
              Open Konsole
              type
              blkid
              and hit Enter
              and make sure that UUID (above) is the one for the partition where your Kubuntu is located.
              Each partition has a unique identifier, called the UUID (see Wikipedia).


              Your menu.lst looks OK to me. The groot= line is important, it tells GRUB where your kernel lives.

              # kopt=root=UUID=83cc1912-e9d0-4884-a7e7-86ea9e34551d ro
              # groot=83cc1912-e9d0-4884-a7e7-86ea9e34551d
              # altoptions=(recovery mode) single
              # howmany=all
              and all the rest, looks ok.



              How To GRUB Methods - Toolkit
              http://kubuntuforums.net/forums/inde...opic=3081671.0
              An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

              Comment


                #8
                Re: Grub not adding upgraded Kernel

                sudo update-grub
                GIVES
                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.27-11-generic
                Found kernel: /boot/vmlinuz-2.6.27-10-generic
                Found kernel: /boot/vmlinuz-2.6.27-8-generic
                Found kernel: /boot/vmlinuz-2.6.27-7-generic
                Found kernel: /boot/vmlinuz-2.6.24-21-generic
                Found kernel: /boot/vmlinuz-2.6.24-20-generic
                Found kernel: /boot/vmlinuz-2.6.24-19-generic
                Found kernel: /boot/vmlinuz-2.6.24-18-generic
                Found kernel: /boot/vmlinuz-2.6.24-17-generic
                Found kernel: /boot/vmlinuz-2.6.24-16-generic
                Found kernel: /boot/vmlinuz-2.6.22-14-generic
                Found kernel: /boot/memtest86+.bin
                Updating /boot/grub/menu.lst ... done

                but /boot/grub/menu.lst doesnt mention any anything past 2.26.27.8
                ??

                Comment


                  #9
                  Re: Grub not adding upgraded Kernel

                  Originally posted by madtom1999
                  sudo update-grub
                  GIVES
                  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.27-11-generic
                  Found kernel: /boot/vmlinuz-2.6.27-10-generic
                  Found kernel: /boot/vmlinuz-2.6.27-8-generic
                  Found kernel: /boot/vmlinuz-2.6.27-7-generic
                  Found kernel: /boot/vmlinuz-2.6.24-21-generic
                  Found kernel: /boot/vmlinuz-2.6.24-20-generic
                  Found kernel: /boot/vmlinuz-2.6.24-19-generic
                  Found kernel: /boot/vmlinuz-2.6.24-18-generic
                  Found kernel: /boot/vmlinuz-2.6.24-17-generic
                  Found kernel: /boot/vmlinuz-2.6.24-16-generic
                  Found kernel: /boot/vmlinuz-2.6.22-14-generic
                  Found kernel: /boot/memtest86+.bin
                  Updating /boot/grub/menu.lst ... done

                  but /boot/grub/menu.lst doesnt mention any anything past 2.26.27.8
                  ??
                  Try removing older kernels (you probably don't need 11 installed kernels)...search for packages named linux-image-*, and and start removing the older versions to see if that makes a difference.

                  Comment


                    #10
                    Re: Grub not adding upgraded Kernel

                    Agree.

                    Also, first -- try running update-grub one more time, just like you did before.

                    Check your menu.lst for
                    #kotp=

                    and
                    # howmany=all
                    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                    Comment

                    Working...
                    X