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: 51


Adithyansm

Member
Joined
Nov 11, 2021
Messages
52
Reaction score
10
Credits
411
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
 

Condobloke

Well-Known Member
Joined
Apr 30, 2017
Messages
3,937
Reaction score
3,551
Credits
20,081
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?
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
6,846
Reaction score
5,634
Credits
21,345
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
 
OP
S

shany

New Member
Joined
Nov 27, 2021
Messages
5
Reaction score
1
Credits
37
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
 
OP
S

shany

New Member
Joined
Nov 27, 2021
Messages
5
Reaction score
1
Credits
37
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
 

kc1di

Well-Known Member
Joined
May 14, 2021
Messages
600
Reaction score
543
Credits
4,211
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:

Adithyansm

Member
Joined
Nov 11, 2021
Messages
52
Reaction score
10
Credits
411
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:
OP
S

shany

New Member
Joined
Nov 27, 2021
Messages
5
Reaction score
1
Credits
37
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!
 

kc1di

Well-Known Member
Joined
May 14, 2021
Messages
600
Reaction score
543
Credits
4,211
how many kernels are installed?
 

kosmas

New Member
Joined
Jul 14, 2019
Messages
1
Reaction score
0
Credits
9
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.
 

jpnilson

Member
Joined
Jul 31, 2021
Messages
92
Reaction score
49
Credits
800
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
 

Condobloke

Well-Known Member
Joined
Apr 30, 2017
Messages
3,937
Reaction score
3,551
Credits
20,081
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:

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
4,486
Reaction score
4,169
Credits
35,986
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top