low disk space on filesystem root in linux

shany

New Member
Joined
Nov 27, 2021
Messages
5
Reaction score
1
Credits
37
hello
i got this message:
"low disk space on filesystem root", and cant find what is taking all the space...

I'm pretty new to Linux, would love your help.
I attach the output of 'df -h'.

thank you.
 

Attachments

  • Screenshot from 2021-11-27 08-24-34.png
    Screenshot from 2021-11-27 08-24-34.png
    344.5 KB · Views: 465


You can use a tool name QdirStat
Code:
sudo apt install qdirstat
And analyze the disk to check which is taking more storage

Hope it will help you
 
Is Linux installed on /dev/sda8 ...?

Who did the install?

How big is your hard drive (or solid state drive ?)

Is this a dual boot with windows?
 
OK I take it you are on Ubuntu, which version?

Are you using Timeshift, and if so, how is it set up?

Welcome

Chris Turner
wizardfromoz
 
Is Linux installed on /dev/sda8 ...?

Who did the install?

How big is your hard drive (or solid state drive ?)

Is this a dual boot with windows?
1.by the outpoot of 'df'- it seems that yes.

2. i did the install

3. in mot sure where to check it, i red it is in the 'df' but not sure wich one there...

4.it is dual with windows

thank you for your reply
 
OK I take it you are on Ubuntu, which version?

Are you using Timeshift, and if so, how is it set up?

Welcome

Chris Turner
wizardfromoz
1.
Description: Ubuntu 20.04.2 LTS
Release: 20.04

2. i dont know anything about timeshift...

thank you for your reply
 
Many times the culprit is an auto generated log file. Check the /var/log folder see what size it is. You can go to a terminal and cd to /var/log once there issue this command.
Sass:
sudo du -a
It should give you a read out of how much space is being used by each log file. then look and see if any are in or near the Gbs range. If so you need to remove those logs.
It will free up some space that way.
Also post the out put of
HTML:
inxi -P
Thanks.
P.S. on ubuntu you may have to install inxi first.
 
Last edited:
thank you,

i installed
not sure which directory i need to check....
Check your root directory ( / ) this is symbol of root directory

OR

you can follow this video
(skip the installation part)
 
Last edited:
Many times the culprit is
Screenshot from 2021-11-27 15-27-15.png
an auto generated log file. Check the /var/log folder see what size it is. You can go to a terminal and cd to /var/log once there issue this command.
Sass:
sudo du -a
It should give you a read out of how much space is being used by each log file. then look and see if any are in or near the Gbs range. If so you need to remove those logs.
It will free up some space that way.
Also post the out put of
HTML:
inxi -P
Thanks.
P.S. on ubuntu you may have to install inxi first.


the 'du -a' does print the numbers without any units so im not sure how to read it (attach a photo).

and the output of 'inxi' is :
Partition: ID-1: / size: 24.46 GiB used: 22.88 GiB (93.6%) fs: ext4 dev: /dev/sda8

thank you!
 
how many kernels are installed?
 
Hi shany,

I don't know if this will help you, but I would suggest a disk size utility to see (and drill down) the directory and the contents that eat up space.
You can find some of them here: https://alternativeto.net/software/treesize/?platform=linux

If you would do it by hand, I would do a
cd /
sudo df -hs *
in order to see which directory has a lot of space taken up, and then I would cd in that directory and do the same df -hs *

I hope that helps.
 
sudo du -ah / | sort -n -r | head -n 10
.
You can do something like the command above this will give you the top 10 files consuming space. You can adjust to look at specific directories or list more than 10 files. Note as written it will take a while to run
 
You must have some idea how big the hard drive is that you installed to !

What size is it ??

and the output of 'inxi' is :
Partition: ID-1: / size: 24.46 GiB used: 22.88 GiB (93.6%) fs: ext4 dev: /dev/sda8

This tells us the partition for ubuntu was just over 24GB....and it has consumed nearly 23GB of that

SO...it's full!.

You will need to re partition and make a big enough space for it to install to.

The initial size of the hard drive will tell us if this possible

So, how much space did you give Windows?.......what was the size of the hard drive before you started?
 
Last edited:

Members online


Latest posts

Top