The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Guidance on Cleaning Boot Partition

Discussion in 'General Discussion' started by beeman1221, Mar 10, 2014.

  1. beeman1221

    beeman1221 Member

    Joined:
    Mar 10, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello!

    My /boot partition is at 83% full and I've googled all the boot threads but I'm not 100% sure on how to tell which kernel packages are safe to remove. Hoping someone could help.

    From reading other help threads, this is what I've understood so far, please correct me if I'm wrong :)

    First I need to do the below command to find the kernel I'm using

    #uname -a

    Output
    Code:
    Linux s1.****.com 2.6.32-358.11.1.el6.x86_64 #1 SMP Wed Jun 12 03:34:52 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    
    then to list installed kernel packages

    # rpm -q kernel kernel-smp

    Output:
    Code:
    kernel-2.6.32-358.el6.x86_64
    kernel-2.6.32-358.6.2.el6.x86_64
    kernel-2.6.32-358.11.1.el6.x86_64
    package kernel-smp is not installed
    
    So from the above info does it mean it is safe to remove the following kernel packages?

    Code:
    kernel-2.6.32-358.el6.x86_64
    kernel-2.6.32-358.6.2.el6.x86_64
    
    Command to remove packages is

    Code:
    yum remove kernel-x.xxx.exx.xx
    Is this correct?

    I read from another thread that I should have at least two kernel packages installed so I should only remove one from above?

    What is "package kernel-smp is not installed"?

    Thanks!
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    You can safely remove the RPMs for any package that corresponds with a kernel that you are not currently booted or ksplice'd to.
     
  3. vipoint

    vipoint Registered

    Joined:
    Mar 10, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    It is safe to remove the old kernel related files from the /boot partition to another location in order to make some free space.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Moving them to another partition is no different than removing them (except you have them for backup purposes). Thus, the same answer applies. See this post:

    Clean Boot Partition

    Thank you.
     
Loading...

Share This Page