Find the answer to your Linux question:
Results 1 to 9 of 9
Hello! I just finished an update on the kernel and it seems to be ok as shown in the grub: Code: default=0 timeout=5 splashimage=(hd0,8)/boot/grub/splash.xpm.gz hiddenmenu title Fedora (2.6.32.14-127.fc12.i686) NEW root ...
  1. #1
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229

    [SOLVED] Updated Kernel But Still Boots the Old

    Hello!

    I just finished an update on the kernel and it seems to be ok as shown in the grub:

    Code:
    default=0
    timeout=5
    splashimage=(hd0,8)/boot/grub/splash.xpm.gz
    hiddenmenu
    title Fedora (2.6.32.14-127.fc12.i686)  NEW
            root (hd0,8)
            kernel /boot/vmlinuz-2.6.32.14-127.fc12.i686 ro root=UUID=9ea4d6d1-b9d3$
            initrd /boot/initramfs-2.6.32.14-127.fc12.i686.img
    title Fedora (2.6.32.12-115.fc12.i686) OLD
            root (hd0,8)
            kernel /boot/vmlinuz-2.6.32.12-115.fc12.i686 ro root=UUID=9ea4d6d1-b9d3$
            initrd /boot/initramfs-2.6.32.12-115.fc12.i686.img
    title Fedora (2.6.31.5-127.fc12.i686)
            root (hd0,8)
            kernel /boot/vmlinuz-2.6.31.5-127.fc12.i686 ro root=UUID=9ea4d6d1-b9d3-$
            initrd /boot/initramfs-2.6.31.5-127.fc12.i686.img
    title Other
    	rootnoverify (hd0,0)
            chainloader +1
    However, when I restart my system and checked, the machine is still booting the old kernel:

    Code:
    [jun@localhost ~]$ uname -r
    2.6.32.12-115.fc12.i686
    [jun@localhost ~]$
    How may I be able to make the machine point to the newer kernel please?

    Thanks as always!
    nujinini
    Linux User #489667

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    If you are selecting first entry in GRUB Menu then uname should display latest kernel version only. First entry is loading latest kernel only.
    Are you sure that you are selecting first entry only?
    Post the output of ls -l /boot command here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229
    Hello casper,

    Here it is:

    Code:
    [root@localhost ~]# ls -l /boot 
    total 48368
    -rw-r--r--. 1 root root   103363 2009-11-08 10:54 config-2.6.31.5-127.fc12.i686
    -rw-r--r--. 1 root root   106890 2010-05-01 04:49 config-2.6.32.12-115.fc12.i686
    -rw-r--r--. 1 root root   106890 2010-05-28 13:17 config-2.6.32.14-127.fc12.i686
    drwxr-xr-x. 3 root root     4096 2009-11-10 03:13 efi
    -rw-r--r--. 1 root root   161956 2009-10-14 03:13 elf-memtest86+-4.00
    drwxr-xr-x. 2 root root     4096 2010-06-16 04:43 grub
    -rw-r--r--. 1 root root 10940391 2010-05-18 10:22 initramfs-2.6.31.5-127.fc12.i686.img
    -rw-r--r--. 1 root root 11249639 2010-05-21 08:27 initramfs-2.6.32.12-115.fc12.i686.img
    -rw-r--r--. 1 root root 11355905 2010-06-16 04:43 initramfs-2.6.32.14-127.fc12.i686.img
    -rw-r--r--. 1 root root   160280 2009-10-14 03:13 memtest86+-4.00
    -rw-r--r--. 1 root root  1459030 2009-11-08 10:54 System.map-2.6.31.5-127.fc12.i686
    -rw-r--r--. 1 root root  1643223 2010-05-01 04:49 System.map-2.6.32.12-115.fc12.i686
    -rw-r--r--. 1 root root  1643320 2010-05-28 13:17 System.map-2.6.32.14-127.fc12.i686
    -rwxr-xr-x. 1 root root  3387680 2009-11-08 10:54 vmlinuz-2.6.31.5-127.fc12.i686
    -rwxr-xr-x. 1 root root  3581440 2010-05-01 04:49 vmlinuz-2.6.32.12-115.fc12.i686
    -rwxr-xr-x. 1 root root  3581568 2010-05-28 13:17 vmlinuz-2.6.32.14-127.fc12.i686
    [root@localhost ~]#
    nujinini
    Linux User #489667

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Create a copy of grub.conf file.
    Code:
    cd /boot/grub
    cp grub.conf grub.conf.main
    Delete all its contents except first title block.
    Code:
    default=0
    timeout=5
    splashimage=(hd0,8)/boot/grub/splash.xpm.gz
    hiddenmenu
    title Fedora (2.6.32.14-127.fc12.i686)  NEW
            root (hd0,8)
            kernel /boot/vmlinuz-2.6.32.14-127.fc12.i686 ro root=UUID=9ea4d6d1-b9d3$
            initrd /boot/initramfs-2.6.32.14-127.fc12.i686.img
    Boot up Fedora and check the output of uname -a command.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229
    Hello Casper,

    I tried what you said but when I checked uname -r it still is the old kernel.

    But I think I have an idea what's happening. I just can't oganize my brains to analyze it.
    I hope you would help me please

    I am using this grub to boot into my system. It's in PCLinux Partition:

    Code:
    timeout 120
    color black/cyan yellow/cyan
    gfxmenu (hd0,8)/boot/gfxmenu
    default 0
    
    title ( 1 ) PCLinux 2010.1
    kernel (hd0,8)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=7a4932d5-0287-47bb-9c93-9d3a155d15ee  resume=UUID=c472ea84-e954-40cd-a25e$
    initrd (hd0,8)/boot/initrd.img
    
    #title linux-nonfb
    kernel (hd0,8)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=7a4932d5-0287-47bb-9c93-9d3a155d15ee  resume=UUID=c472ea84-e954-40c$
    initrd (hd0,8)/boot/initrd.img
    
    #title failsafe
    kernel (hd0,8)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=7a4932d5-0287-47bb-9c93-9d3a155d15ee  failsafe
    initrd (hd0,8)/boot/initrd.img
    
    
    title ( 2 ) Windows XP :(
    root (hd0,0)
    makeactive
    chainloader +1
    
    title ( 3 ) Linux Mint 7 Gloria, kernel 2.6.28-11-generic
    root    (hd0,6)
    kernel  /boot/vmlinuz-2.6.28-11-generic root=/dev/sda7 ro quiet splash
    initrd  /boot/initrd.img-2.6.28-11-generic
    quiet
    
    title ( 4 ) Fedora (2.6.32.12-115.fc12.i686) (on /dev/sda8)
    root  (hd0,7)
    kernel     /boot/vmlinuz-2.6.32.12-115.fc12.i686 ro root=UUID=9ea4d6d1-b9d3-405b-ac5c-0f9dc896e759 noiswmd LANG=en_US.UTF-8 SYSF$
    initrd  /boot/initramfs-2.6.32.12-115.fc12.i686.img
    savedefault
    boot
    
    title ( 5 ) Ubuntu, Linux 2.6.31-21-generic (on /dev/sda6)
    root  (hd0,5)
    kernel         /boot/vmlinuz-2.6.31-21-generic root=UUID=62310446-d606-4c7a-81a7-13ba4a7583f1 ro quiet splash.
    initrd         /boot/initrd.img-2.6.31-21-generic
    
    title ( 6 ) antiX at sda10, kernel 2.6.32-1-mepis-smp
    root  (hd0,9)
    kernel /boot/vmlinuz-2.6.32-1-mepis-smp root=/dev/sda10 nomce quiet nosplash vga=791 nomodeset acpi_backlight=vendor i915.modese$
    initrd /boot/initrd.img-2.6.32-1-mepis-smp
    boot
    This is taken from the Fedora partition. I erased everything except the first entry. I restored it from the cp.

    Code:
    default=0
    timeout=5
    splashimage=(hd0,8)/boot/grub/splash.xpm.gz
    hiddenmenu
    title Fedora (2.6.32.14-127.fc12.i686)  NEW
            root (hd0,8)
            kernel /boot/vmlinuz-2.6.32.14-127.fc12.i686 ro root=UUID=9ea4d6d1-b9d3$
            initrd /boot/initramfs-2.6.32.14-127.fc12.i686.img
    title Fedora (2.6.32.12-115.fc12.i686) OLD
            root (hd0,8)
            kernel /boot/vmlinuz-2.6.32.12-115.fc12.i686 ro root=UUID=9ea4d6d1-b9d3$
            initrd /boot/initramfs-2.6.32.12-115.fc12.i686.img
    title Fedora (2.6.31.5-127.fc12.i686)
            root (hd0,8)
            kernel /boot/vmlinuz-2.6.31.5-127.fc12.i686 ro root=UUID=9ea4d6d1-b9d3-$
            initrd /boot/initramfs-2.6.31.5-127.fc12.i686.img
    title Other
    	rootnoverify (hd0,0)
            chainloader +1
    Thank you!
    Last edited by nujinini; 06-17-2010 at 09:43 AM.
    nujinini
    Linux User #489667

  6. #6
    Linux User glennzo's Avatar
    Join Date
    Sep 2004
    Location
    Salem, Mass
    Posts
    434
    Add this to the PcLinux boot menu, at the bottom.
    Code:
    title Fedora
    root (hd0,7)
    configfile /boot/grub/menu.lst
    Save and reboot. See if Fedora boots and runs the newest kernel. This should work unless PcLinux is using GRUB2. If that's the case you will need to boot PcLinux and run
    Code:
    sudo update-grub
    then reboot and try the new Fedora entry.

    Furthermore, and maybe most importantly, what was the last Linux OS you installed? The GRUB from that one is probably running the show. This is important so that we know how to reply and what advice to give.
    Glenn
    Powered by Fedora 16 and Arch Linux

  7. #7
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229
    Hello Glenn,

    Thank you for your response!

    I added
    Code:
    title Fedora
    root (hd0,7)
    configfile /boot/grub/menu.lst
    at the bottom of the PCLinux grub and it still didn't work. Still booted the old kernel.

    ...PcLinux is using GRUB2
    PCLinux uses grub legacy, fyi.
    Furthermore, and maybe most importantly, what was the last Linux OS you installed? The GRUB from that one is probably running the show. This is important so that we know how to reply and what advice to give.
    The last OS I installed was AntiX. However, I configured the grub to use the PCLinux partition w/c in this case is (hd0,8 ).

    Code:
     [ Minimal BASH-like line editing is supported.  For the first word, TAB
       lists possible command completions.  Anywhere else TAB lists the possible
       completions of a device/filename.]
    grub> find /boot/grub/stage1
    find /boot/grub/stage1
     (hd0,6)
     (hd0,7)
     (hd0,8)
     (hd0,9)
    grub>
    Thank you again!
    nujinini
    Linux User #489667

  8. #8
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229
    I tried to add the kernel in the PCLinux grub and called it from there. Still it gave me an error 15. Thanks!

    Code:
    title ( 4 ) Fedora (2.6.32.12-115.fc12.i686) (on /dev/sda8)
    root  (hd0,7)
    kernel     /boot/vmlinuz-2.6.32.12-115.fc12.i686 ro root=UUID=9ea4d6d1-b9d3-405b-ac5c-0f9dc896e759 noiswmd LANG=en_US.UTF-8 SYSFONT$
    initrd  /boot/initramfs-2.6.32.12-115.fc12.i686.img
    savedefault
    boot
    
    title ( 4a) Fedora (2.6.32.14-127.fc12.i686)
    root (hd0,8)
    kernel /boot/vmlinuz-2.6.32.14-127.fc12.i686 ro root=UUID=9ea4d6d1-b9d3-405b-ac5c-0f9dc896e759 noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyr$
    initrd /boot/initramfs-2.6.32.14-127.fc12.i686.img
    nujinini
    Linux User #489667

  9. #9
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229
    Hello Everyone!

    Just wanted to share how I solved my problem!

    # yum upgrade
    # Yes

    Then I copied to PCLinux grub:

    Code:
    title Fedora (2.6.32.14-127.fc12.i686)
    root (hd0,8 )
    kernel /boot/vmlinuz-2.6.32.14-127.fc12.i686 ro root=UUID=9ea4d6d1-b9d3-405bac5c0f9dc896e759 noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyr$
    initrd /boot/initramfs-2.6.32.14-127.fc12.i686.img
    savedefault
    boot
    Changed (hd0,8 ) to (hd0,7)

    reboot > New kernel!

    Code:
    [jun@localhost ~]$ uname -a
    Linux localhost.localdomain 2.6.32.14-127.fc12.i686 #1 SMP Fri May 28 05:04:10 UTC 2010 i686 i686 i386 GNU/Linux
    [jun@localhost ~]$
    Thanks!
    nujinini
    Linux User #489667

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...