Removing 3 or 4 older kernels will usually free up about a GB of space in your root drive. Uninstall unnecessary applications Probably you have many applications that you don’t use any more. Its fairly easy to copy the name of the specific older kernel you want to remove from the results that dpkg -list grep linux-image gives you in the terminal, and then use sudo apt-get purge and paste the copied name in. Run the tool, and you will see the used and free space. Today you have learned how to free up space on your system by removing packages, logs and files. The first thing you need is to find out which files are consuming the large bulk of the storage space in your disk. If you have found this useful, then you should follow me, I will be posting more interesting content! □ You can now search for more specific guides.įor example, if you are using Docker, you might want to learn how to remove unnecessary resources. Step 6: Make the assigned space available. Step 5: Configure the disks with GParted. Step 3: Attach the new VDI disk and the Ubuntu boot ISO image. ⚠ Be careful not to delete any important file. Step 1: Make sure you have a VDI disk image. Now that ncdu has scanned your system you can: We will be using ncdu, a very easy-to-use CLI tool that will show us the biggest files on our system. Now we are switching to a more manual approach. Sudo journalctl -rotate & sudo journalctl -vacuum-time=1s # Clean any log that is older than one second But if we don't care much about keeping records, we can just delete them. # Find unnecessary or redundant packages and remove themĪpplication logs keep increasing the disk usage of your server, specially if it is a busy one. But your system won't remove them, so lets tell it to do that. # Find no longer available packages and remove themĬhances are that when you update and upgrade your system, some packages end up being unnecessary. Packages are archived and stored, if these versions can't be downloaded anymore - because there is a newer version or any other reason-, they end up being unnecessary. While this tutorial is focused on Ubuntu Server, it can be used for many other distributions that use the same packages, like Ubuntu Desktop, Debian, Linux Mint, etc. To install wipe on Debian/Ubuntu type: apt install wipe -y. This tutorial will help you liberate space on your system without breaking anything in the process. The wipe command allows us to fully erase data from our disk, it rewrites the sector and flushes the cache making it impossible or very difficult to retrieve the data. So you have been running your Ubuntu Server for a while and recently found out that the disk usage is already at 70%!? Then lets free some space up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |