Root filesystem filling up

General support questions
Post Reply
JackBauer
Posts: 14
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: 2870
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: 14
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: 2870
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: 1122
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: 14
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: 14
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: 14
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: 2870
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
Forum Moderator
Posts: 28832
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
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - General Support”