


By default, it will keep at least the latest 2 kernels, but the user can override that value using the keep parameter. It will never remove the currently running kernel.
UBUNTU CLEAN DISK SPACE FREE
Error!Į: Write error - write (28: No space left on device)Į: The package lists or status file could not be parsed or opened.Īny help to free up space and get the server running again will be greatly appreciated. purge-old-kernels will remove old kernel and header packages from the system, freeing disk space. Lastly, I ran sudo apt-get clean sudo apt-get autoclean and it gave me the following errors: Reading package lists. I ran sudo dpkg -configure -a and got pkg: error: failed to write status database record about 'libexpat1-dev:amd64' to '/var/lib/dpkg/status': No space left on device I tried to free up the space by running sudo apt-get autoremove and it gave me E: dpkg was interrupted, you must manually run 'sudo dpkg -configure -a' to correct the problem.

dev/loop5 33M 33M 0 100% /snap/amazon-ssm-agent/2996 Simple Ways to Free Up Space in Ubuntu Linux Step 1: Remove APT Cache Step 2: Clean Journal Logs Step 3: Clean Up unused Packages Step 4: Remove Old Kernels.
UBUNTU CLEAN DISK SPACE ISO
Videos, installation packages and ISO files can be over 1 GB each, taking space quickly on your server. dev/loop4 100M 100M 0 100% /snap/core/10908 1 Remove the biggest files on your system The fastest way to free up some space on Ubuntu server is to remove the largest files on the system. dev/loop2 56M 56M 0 100% /snap/core18/1997 As the name defines, Ubuntu Cleaner is a GUI tool that can free up your storage and make your system much more optimized. Another consideration is that I'm working on a MySQL database server. I especially want to change the path used for installing applications (they are getting installed directly to the root drive). RELATED: 7 Tips to Get the Most Out of BleachBit, a 'CCleaner for Linux' BleachBit is basically a CCleaner for Linux. dev/loop3 34M 34M 0 100% /snap/amazon-ssm-agent/3552 67 I'm using Ubuntu 11.04 and I want to free up some space in my root directory, which is overloaded. leaving a vhdx about 2 over the used space reported by df /. This command summarizes the space usage for a specified directory or the current directory if none is specified. So far the wslcompact script is the most efficient way to optimize the size. Use the du command to analyze disk space at a more granular level. dev/loop1 56M 56M 0 100% /snap/core18/1988 The diskpart, or Optimize-vhd commands require elevated rights and in some cases they can even grow the size of the drive, specially if you have done it after and fstrim / command. I have no idea why there is no more space, or what caused it but df -h gives the following output: Filesystem Size Used Avail Use% Mounted on
UBUNTU CLEAN DISK SPACE UPDATE
When I run sudo apt-get update I get a long list of errors but the main one that stood out was E: Write error - write (28: No space left on device) Furthermore, when trying to reach Jenkins I'm getting 502 Bad Gateway. There is no more space available to do updates, and every command I try to free up space doesn't work. I have an Ubuntu ec2 instance running nginx and Jenkins.
