- Out of disk space - /boot at 100% duplicate (1 answer) Closed 3 years ago. Stuck running Ubuntu 16.04 LTS on a Lenova desktop with a small boot partition now with 0(zero) bytes after many upgrades.
- Delete Old iTunes Backups. Did you know that every time you decide to update iTunes, it creates a.
yum
upgrades for production use, this is the repository for you. Active subscription is required.
Cleaning out your PC on a regular basis frees up drive space and helps it run better. One of the easiest ways to clean up files you no longer need is by using Disk Cleanup. Open Disk Cleanup by clicking the Start button. In the search box, type Disk Cleanup, and then, in the list of results, select Disk Cleanup. The most effective way to free up space on startup disk is to remove large items from it. You can use Finder to quickly filter larger files. Then you can directly delete them or move them to an external storage device to free up space. This should quickly fix the 'startup disk almost full' error.
The following are quick commands to clear disk space on CentOS 6 or CentOS 7 servers.
&tldr;
Scared to run that? Just run individual commands that the script runs.
Before anything, you have to install yum-utils package:
1. Trim log files
This will truncate any *.log
files on the volume /var
that are either older than 7 days and greater than 50M or older than 30 days.
Find Free Space On Disk
2. Cleanup YUM cache
How To Free Space On Startup Disk
The simple command to cleanup yum caches:
Note that the above command will not remove everything related to yum
. For instance, metadata for disabled repositories will not be affected.
You may want to free up space taken by orphaned data from disabled or removed repositories:
Also, when you accidentally run yum
through a regular user (forgot sudo
), yum will create user-cache. So let's delete that too:
3. Remove orphan packages
Check existing orphan packages
Confirm removing orphan packages
Now, if happy with suggestions given by the previous command, run:
4. Remove WP CLI cached WordPress downloads
WP CLI saves WordPress archives every time you setup a new WordPress website. You can remove those caches by the following command:
5. Remove old kernels
Before removing old kernels, you might want to simply reboot first in order to boot up from the latest kernel.
That's because you can't remove an old kernel if you're booted into it 🙂
Startup Disk Space Mac
The following commands will keep just 2 latest kernels installed: Free video editing sof.
Note that with some VPS providers (Linode for example), servers use provider's built kernels by default and not the ones on the server itself. So it makes little sense to keep more than 1 old kernel on the system. So:
6. Remove Composer cache
7. Remove core dumps
If you had some severe failures with PHP which caused it to segfault and had core dumps enabled, chances are – you have quite a few of those.
They are not needed after you done debugging the problem. So:
8. Remove error_log files (cPanel)
If you use the disgusting cPanel, you surely got dozens of error_log
files scattered across your web directories. Much better if you can install the Citrus Stack. A temporary solution is to remove all those files:
9. Remove Node.js caches
10. Remove Mock caches
Been building some RPM packages with mock
? Those root caches can be quite large.
If you no longer intend to build RPM packages on a given machine:
P.S. the plan is to make this into an easily-installable app.
How to Free Up Space on The Hard Drive
- You can remove data from your Home folder except for the /Home/Library/ folder.
- Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
- Also, see Freeing space on your Mac OS X startup disk.
- Free up storage space on your Mac.
- See Where did my Disk Space go?.
- Be sure to Empty the Trash to recover the space.
- Replace the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
- Use OmniDiskSweeper or GrandPerspective to search your drive for large files and where they are located.
Dec 25, 2017 9:47 AM