1

I have Ubuntu 20.04. And I encounter this problem very often now -low disk space in "filesystem root" sometimes it shows 635MB available, sometimes 400MB. It seems that every time I work on Ubuntu or even when I use Google Chrome, the available disk space gets reduced.My laptop has a dual booting system with linux and windows. Currently my sda9 occupies a space of 25GB. Please help!!

P.S. Someone had posted a similar question before but I couldn't get a satisfactory answer from that post, so please don't ignore this post.

Here is my output for df -h

Filesystem      Size  Used Avail Use% Mounted on
udev            3.8G     0  3.8G   0% /dev
tmpfs           784M  2.0M  782M   1% /run
/dev/sda9        25G   24G  124M 100% /
tmpfs           3.9G   17M  3.9G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/loop0       98M   98M     0 100% /snap/core/10185
/dev/loop3       61M   61M     0 100% /snap/core20/634
/dev/loop1       98M   98M     0 100% /snap/core/10444
/dev/loop2       56M   56M     0 100% /snap/core18/1932
/dev/loop4       62M   62M     0 100% /snap/core20/875
/dev/loop5       56M   56M     0 100% /snap/core18/1885
/dev/loop6      163M  163M     0 100% /snap/gnome-3-28-1804/145
/dev/loop8       65M   65M     0 100% /snap/gtk-common-themes/1514
/dev/loop11     218M  218M     0 100% /snap/gnome-3-34-1804/60
/dev/loop10      50M   50M     0 100% /snap/snap-store/467
/dev/loop13      52M   52M     0 100% /snap/snap-store/498
/dev/loop15     180M  180M     0 100% /snap/telegram-desktop/2185
/dev/loop7       65M   65M     0 100% /snap/gtk-common-themes/1513
/dev/loop14     179M  179M     0 100% /snap/telegram-desktop/2198
/dev/loop12     261M  261M     0 100% /snap/kde-frameworks-5-core18/32
/dev/loop9      256M  256M     0 100% /snap/gnome-3-34-1804/36
/dev/sda1       746M   73M  674M  10% /boot/efi
tmpfs           784M   32K  784M   1% /run/user/1000
Pilot6
  • 92,041

3 Answers3

2

Since you are running Chrome, I infer you are running a Desktop version of Ubuntu and have an unpriv'd user you web browse, run applications, and sudo from for administrative purposes.

What I don't see is a separate user partition mounted on /home to keep user data from running the OS out of disk space. 24G is not all that much for a desktop environment. If the OS has to share it with users, you will eventually run your OS out of disk space - something you want to avoid. But to the immediate problem...

Let's be sure we know where the problem is. Please post the results of sudo du -sh /home. If this is a significant chunk of your 25G, then ...

Use sudo find /home -size +2G to locate big files in your user space. Keep reducing the size parameter and eliminating any files you can live without. If you are like most of us, you likely have a few downloaded ISOs lying around. If you are saving significant video or picture files - 25G will not go very far - you'll need another hard drive.

In the event that the /home space is NOT the culprit, you can scan the whole system from the top using sudo du -sk /* 2>/dev/null | sort -nk1. Find the top space eater and scan it's subfolders eliminating what you can as you go.

Good Luck, Nova

Frobozz
  • 719
0

You could try to analyze what takes so much space on your partition that is relatively small to begin with. One tool for that is Duc. You may find some media files you can remove by your file manager, for instance.

There may be some software installed that you do not need, but you should uninstall them properly using some package management tools, if needed. Ubuntu desktop depends on some software, that you should not uninstall, if you wish to continue using the default Ubuntu distribution, but you could uninstall some packages listed as "Recommends:" by apt-cache depends ubuntu-desktop. For example sudo apt autoremove rhythmbox. Do not touch the packages marked with "Depends:" of ubuntu-desktop. There may also be some packages that you installed by yourself afterwards that you do not need anymore.

Maybe you could consider getting a bigger partition for Ubuntu or separate partition for data?

Or you could consider switching from the default Ubuntu to a light-weight Linux distribution; there are many ubuntu based ones available.

jarno
  • 6,175
0

I have a solution which is 100% worked for me... Under var/log, two log files named kernel.log and syslog.log are steadily growing in size, and /cow (dirty copy-on-write) is full, preventing the installation from running due to a lack of disk space. df -kh [/cow --- increased and full] so 1st systemctl stop syslog.socket cd /var/log rm -rf *

Then you'll be able to successfully set up os.