Root filesystem filling up

General support questions
Post Reply
JackBauer
Posts: 47
Joined: 2020/05/19 13:56:35

Root filesystem filling up

Post by JackBauer » 2020/05/22 18:13:21

Hello,

How can I find what is filling up my root filesystem???

du -h --max-depth=1 is not enough

Thanks

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Root filesystem filling up

Post by jlehtone » 2020/05/22 18:49:33

What do you mean by "not enough"?

Code: Select all

du --max-depth 1 -x -m / | sort -n

JackBauer
Posts: 47
Joined: 2020/05/19 13:56:35

Re: Root filesystem filling up

Post by JackBauer » 2020/05/22 19:57:32

Takes too long and shows many mount points that do not belong to /

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Root filesystem filling up

Post by jlehtone » 2020/05/22 22:47:20

With the -x ?

Whoever
Posts: 1357
Joined: 2013/09/06 03:12:10

Re: Root filesystem filling up

Post by Whoever » 2020/05/23 01:20:25

JackBauer wrote:
2020/05/22 19:57:32
Takes too long and shows many mount points that do not belong to /
You need to run it as root. You did this, right?

JackBauer
Posts: 47
Joined: 2020/05/19 13:56:35

Re: Root filesystem filling up

Post by JackBauer » 2020/05/23 06:34:18

Did not try with -x, will try in a bit.

JackBauer
Posts: 47
Joined: 2020/05/19 13:56:35

Re: Root filesystem filling up

Post by JackBauer » 2020/05/24 07:53:40

The command seems to work pretty well, thanks.

And something with find?

For example, finding big files created in the last 24 hours in /???

Thanks

JackBauer
Posts: 47
Joined: 2020/05/19 13:56:35

Re: Root filesystem filling up

Post by JackBauer » 2020/05/24 09:05:43

Whoever wrote:
2020/05/23 01:20:25
JackBauer wrote:
2020/05/22 19:57:32
Takes too long and shows many mount points that do not belong to /
You need to run it as root. You did this, right?
Yes sure!

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Root filesystem filling up

Post by jlehtone » 2020/05/24 10:01:23

Not sure about the "24h", but something like:

Code: Select all

find / -xautofs -xdev -mtime -1 -size +1G -ls

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Root filesystem filling up

Post by TrevorH » 2020/05/24 14:04:05

The find command also takes -mmin $mins
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply