Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: removing old kernels from grub menu

  1. #1
    Join Date
    Jul 2010
    Location
    Jaipur
    Beans
    51
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question removing old kernels from grub menu

    i have a dell studio laptop,and i have dual installation of ubuntu lucid +windows 7.
    by updates now i have 4 kernels of ubuntu........so how can i remove them from the grub menu???
    please mark the thread solved if your problem is solved...

  2. #2
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu

  3. #3
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: removing old kernels from grub menu

    Personally I would remove them rather then hide them.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  4. #4
    Join Date
    Mar 2008
    Location
    Texas
    Beans
    391
    Distro
    Lubuntu 18.04 Bionic Beaver

    Re: removing old kernels from grub menu

    Quote Originally Posted by tushar maroo View Post
    ........so how can i remove them from the grub menu???
    Quote Originally Posted by bodhi.zazen View Post
    Personally I would remove them rather then hide them.
    I would to........
    I dont know what kernel you are running....Take mine for example 2.6.24-28-generic ,I only keep 2,incase one goes haywire, I can still boot off the old one.so say I have 25,26,27,28,and I want to get rid of 25 and 26
    Iwould run
    Code:
    sudo apt-get remove --purge 2.6.24-25-*
    when finished run
    Code:
    sudo apt-get remove --purge 2.6.24-26-*
    linux images and headers can take up considerable HDD space,especially if you have a bunch of old kernels.

  5. #5
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: removing old kernels from grub menu

    "considerable" hd space is relative to the size of the HD, LOL.

    An "easy" way to remove old kernels is with Synaptic. I keep the current + 1 old.

    To see your current kernel, use uname .
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  6. #6
    Join Date
    Oct 2009
    Location
    Phoenix, AZ
    Beans
    125
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: removing old kernels from grub menu

    once you remove them, dont forget to do sudo update-grub to update the list.

    +1 on using synaptic to remove them, keeping 1 spare kernel.

    You could also install Ubuntu Tweak from the software center, love that program.
    HP G-71 Notebook Intel Core2-Duo 2.2GHz 4GB
    Dual boot Win7 - Ubuntu 10.04x64
    Shared RHEL-5.4 Virtual Machines via VMware

  7. #7
    Join Date
    Nov 2007
    Location
    Port Angeles, WA
    Beans
    300
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: removing old kernels from grub menu

    I just go into Synaptic and remove them.

    I always leave 3 kernels in grub just in case I start experimenting and bork my set up.

    Just remove the Generic Linux Images you don't need the Synaptic way.
    Lucid Lynx 10.04LTS amd64 user.

  8. #8
    Join Date
    Mar 2008
    Location
    Texas
    Beans
    391
    Distro
    Lubuntu 18.04 Bionic Beaver

    Re: removing old kernels from grub menu

    Quote Originally Posted by bodhi.zazen View Post
    "considerable" hd space is relative to the size of the HD, LOL.
    I had picked up a new seagate 30g drive off ebay for 12 bucks,so yes for me HD space is valuable

  9. #9
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,063
    Distro
    Ubuntu Development Release

    Re: removing old kernels from grub menu

    Quote Originally Posted by tushar maroo View Post
    i have a dell studio laptop,and i have dual installation of ubuntu lucid +windows 7.
    by updates now i have 4 kernels of ubuntu........so how can i remove them from the grub menu???
    Easy way with a one line command. Link in first paragraph. Scroll down to see the dry run version and then the do it for real command. Just a copy and paste into a terminal.

    http://tuxtweaks.com/2009/12/remove-...els-in-ubuntu/

  10. #10
    Join Date
    Mar 2008
    Location
    Texas
    Beans
    391
    Distro
    Lubuntu 18.04 Bionic Beaver

    Re: removing old kernels from grub menu

    Quote Originally Posted by philinux View Post
    Easy way with a one line command. Link in first paragraph. Scroll down to see the dry run version and then the do it for real command. Just a copy and paste into a terminal.

    http://tuxtweaks.com/2009/12/remove-...els-in-ubuntu/
    Quote Originally Posted by ssulaco View Post
    Code:
    sudo apt-get remove --purge 2.6.24-25-*
    The wildcard will grab everything associated with the kernel...images,headers and restricted-modules for the kernel your purging.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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