Ubuntu: File system root low disk space [duplicate]



Question:

This question already has an answer here:

I installed Ubuntu Gnome 14.04 a month back. It all worked perfectly but after two days I repeatedly got the notification

File system root low disk space 0 MB left.

I had installed everything correctly, with root space 21 GB. However, I reinstalled Ubuntu to get rid of this, this time with root as 100 GB. It all worked fine for 20 days. But today I started getting the notification again. File system root low disk space- 1 GB left.

I can't find how to resolve this issue. Why is root filling up so fast? Wherever I read, it says 15-20 GB is enough, but even 100GB is apparently not sufficient in my case!


Solution:1

I've faced the same problem and when i run df -h

I found that /boot using 100% of it's space and that mainly because of i didn't remove old kernel versions!

To know your current Kernel version run uname -r and to check all installed kernel versions run dpkg --list 'linux-image*'

i have found a lot of kernel versions installed and that's why there was no space in my /boot directory! and thus i can't even install new updates from Software Updater.

You can remove kernel versions run sudo apt-get remove linux-image-VERSION

But By careful not to remove your current kernel version.

You can also Install Ubuntu Tweak and using it you can remove all your old kernel versions.

To install Ubuntu Tweak you can run the following commands:

sudo add-apt-repository ppa:tualatrix/ppa

sudo apt-get update

sudo apt-get install ubuntu-tweak

To Open it simply type: ubuntu-tweak or ubuntu-tweak -f janitor To open janitor tab directly.

Here's all "askubuntu" pages that help you to do this ;) my thread.

What is the safest way to clean up /boot partition?

Is it safe to remove old kernels after installing the latest mainline?

How to run Ubuntu Tweak's janitor automatically?

This solution works with me :D


Solution:2

You can run command in terminal:

sudo du -hs /*    

And check which folder takes the most.


Solution:3

Please execute sudo apt-get autoremove to get rid of the old kernels and dependencies that are needed anymore...


this is a hint for normal users - what can cause a root / boot fill up (especially often happening on full encrypted setups cause the standard installation only creates about 100MB root partition). In your case you could use the "Baobab" https://wiki.gnome.org/Apps/Baobab GUI Tool - to determine what is causing the fill-up (perhaps there is a defect driver spamming the logs?!?)


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »