Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

/usr space - Deleting files in src directory

Discussion in 'General Discussion' started by Legin76, Feb 18, 2014.

  1. Legin76

    Legin76 Well-Known Member

    Joined:
    Dec 11, 2007
    Messages:
    172
    Likes Received:
    2
    Trophy Points:
    68
    I need to make a small amount of space in my /usr directory. I've already moved all the logs and anything I can find information on that's safe to move or remove.

    Is it also safe to remove old kernel downloads from the src folder?

    /usr/src/kernels/2.6.18-128.1.1.el5-i686 and /usr/src/kernels/2.6.18-371.3.1.el5-i686

    The latest one is /usr/src/kernels/2.6.18-371.4.1.el5-i686.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,827
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You may want to uninstall the old kernels first using the instructions here:

    Clean Boot Partition

    Once you have uninstalled the old kernels, verified the new kernel is running well and you do not require the old kernels, then you can carefully remove the files for the old kernels in /usr/src/kernels.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Legin76

    Legin76 Well-Known Member

    Joined:
    Dec 11, 2007
    Messages:
    172
    Likes Received:
    2
    Trophy Points:
    68
    That sounds a little risky. I don't think I'd feel safe doing that.

    I only really need to free up just over 0.02mb to be able to upgrade cpanel. Although ideally a bit more than that to leave some breathing room. What is safe unused or safe to move other than the log files (which are already moved) that will give me a few mbs extra?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,827
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    You could remove older Apache backup archives if they exist in:

    /usr/local/apache.backup_archive

    However, in general, the best advice is to reinstall the OS with an updated partition scheme.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice