Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hey all, I have a dual boot with Ubuntu and Windows Vista. When I turn on my computer, Grub loads and I can choose which OS to start. When I ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    32

    Previous Kernel versions

    Hey all,

    I have a dual boot with Ubuntu and Windows Vista. When I turn on my computer, Grub loads and I can choose which OS to start. When I first set this up, I only had Linux 2.6.28-11 and Windows Vista (loader). Later on, Linux 2.6.28-13 appeared as well as 2.6.28-11. Now, this morning, I turned on my computer and now I had 2.6.28-14, 2.6.28-13 and 2.6.28-11, and Vista.

    Can someone explain to me what is going on? Why do I have so many Linux kernels and how do I get rid of the ones I don't need. I'm a bit new at this so if you would be so kind as to walk me through on how to delete unused kernels. Obviously, I would like to keep my setting, applications and files so I would not want to delete the kernel that has all my data saved on it.

    Thanks.

  2. #2
    Linux Newbie x1a4's Avatar
    Join Date
    Dec 2006
    Posts
    123
    It's generally a bad idea to replace the kernel (Linux). Instead adding the latest one is the way to go. Just use your favourite package manager (Synaptic for instance) and remove the older kernels. Make sure you boot to the latest kernel first.
    Linux user 439038 | Ubuntu user 20892

  3. #3
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Quote Originally Posted by Rarehunter View Post
    Hey all,

    I have a dual boot with Ubuntu and Windows Vista. When I turn on my computer, Grub loads and I can choose which OS to start. When I first set this up, I only had Linux 2.6.28-11 and Windows Vista (loader). Later on, Linux 2.6.28-13 appeared as well as 2.6.28-11. Now, this morning, I turned on my computer and now I had 2.6.28-14, 2.6.28-13 and 2.6.28-11, and Vista.

    Can someone explain to me what is going on? Why do I have so many Linux kernels and how do I get rid of the ones I don't need. I'm a bit new at this so if you would be so kind as to walk me through on how to delete unused kernels. Obviously, I would like to keep my setting, applications and files so I would not want to delete the kernel that has all my data saved on it.

    Thanks.
    The reason for this, is so you will have time to make sure this new kernel will actually boot and work properly before you dispose the older kernels. Don't forget to edit your /boot/menu.lst file to reflect the changes.
    Changing kernels does not affect your saved files or Desktop settings in any way.
    If you still need a guide for removing older kernels then try here.
    How To Remove Older Kernels from Ubuntu
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  4. #4
    Just Joined!
    Join Date
    May 2009
    Posts
    32
    Okay, so how did these kernels appear on Grub in the first place? Will random Ubuntu kernels keep appearing on my Grub? Are they new updates for the kernel or something?

    Do older kernels take up disk space?

    Again, can someone walk me through how to delete older kernels? I want to make sure I edit every thing correctly.

  5. #5
    Just Joined!
    Join Date
    Jul 2009
    Location
    Bizarro-Earth
    Posts
    4
    Quote Originally Posted by Rarehunter View Post
    Okay, so how did these kernels appear on Grub in the first place? Will random Ubuntu kernels keep appearing on my Grub? Are they new updates for the kernel or something?
    They're kernel updates.
    Quote Originally Posted by Rarehunter View Post
    Do older kernels take up disk space?
    Yes, but no so much that you have to worry much about it. I tend to keep one older kernel around "just in case".
    Quote Originally Posted by Rarehunter View Post
    Again, can someone walk me through how to delete older kernels? I want to make sure I edit every thing correctly.
    MikeTbob posted a link that will take you through the steps. It's fairly simple.

  6. #6
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Quote Originally Posted by Rarehunter View Post
    Okay, so how did these kernels appear on Grub in the first place? Will random Ubuntu kernels keep appearing on my Grub? Are they new updates for the kernel or something?

    Do older kernels take up disk space?

    Again, can someone walk me through how to delete older kernels? I want to make sure I edit every thing correctly.
    Run through that link I posted,, if you have any trouble....just post back here and tell us what the problem is. There's always someone around to help.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  7. #7
    Just Joined!
    Join Date
    May 2009
    Posts
    32
    Thanks MikeTbob and Jill Swift. I followed that link and removed my older kernels. Everything seems fine so far.

    Can one of you explain the theory behind kernel updates, though? Does that mean that the Linux or Ubuntu kernel has updates every once in a while and it is released to all users using Linux and they have the opportunity to try it out to make sure it works?

  8. #8
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Quote Originally Posted by Rarehunter View Post
    Thanks MikeTbob and Jill Swift. I followed that link and removed my older kernels. Everything seems fine so far.

    Can one of you explain the theory behind kernel updates, though? Does that mean that the Linux or Ubuntu kernel has updates every once in a while and it is released to all users using Linux and they have the opportunity to try it out to make sure it works?
    That's about it, kernels become obsolete,,they get hacked, flaws,,then they get fixed and delivered right to your Desktop. Once you get a couple of kernels built up, like you did here, then you just try them out before you remove the older ones and wait for the next updates. Pretty dang cool huh?
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  9. #9
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Just a note, go to System>Administration>Update Manager, when the Update Manager comes up, on the bottom left click Settings.... From there, you can choose whether you want security updates automatically installed without confirmation, or whether you want to be notified. (Which I would assume is the reason these kernels are magically appearing.)

  10. #10
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    522
    You can also update your system through the CLI.

    The commands are:
    Code:
    sudo apt-get update && sudo apt-get upgrade
    Note that this (at least not on my system) upgrades the kernel. If you do want that you should use:
    Code:
    sudo apt-get update && sudo apt-get dselect-upgrade
    I just removed some old kernels too, because I needed more space on my / partition (removed other stuff as well). The whole clean up party gave me back some gigs on the / partition, though the kernels only gave about 20 MB each (I had 4 to get rid of).

Page 1 of 2 1 2 LastLast

Posting Permissions

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