-1

everyone. I have a completely filled root filesystem, but I can't figure out what it is.

sudo df -h /
/dev/nvme0n1p2   49G   49G     0 100% /

sudo du -h --max-depth=1 --exclude="media" --exclude="proc" --exclude="run" --exclude="home" / | sort -rh | head -10
25G /

Help me figure it out.

Thank you all for your answers, but I'll rephrase the question. We have an SSD enter image description here

In gparted, we see that the root partition is 50 GB in size and it is all used. But du shows that only 21 GB is occupied in /. Where (and what is it occupied by) did 29 GB go?

7
  • 3
    Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Commented Apr 7 at 17:31
  • 2
    Try sudo du -sh /* and see which folder is pretty big, then move on, say it is /home/, you take the biggest in /home, do du -sh /home/*, say /home/user is big, do du -sh /home/user/* and so forth until you find the hog. Commented Apr 7 at 18:29
  • 1
    To exclude other filesystems I suggest to add option -x. see also unix.stackexchange.com/q/45771/330217 Commented Apr 7 at 18:34
  • It doesn't make any sense that 25G / is the only output of that du pipeline. Add the output of sudo du -hx --max-depth=1 / to your question. Commented Apr 7 at 19:17
  • 1
    @HaukeLaging Ah, I see. I believe they have left out parts of the output for whatever reason. Maybe they thought it wasn't interesting? { shrug } Commented Apr 7 at 19:23

1 Answer 1

2

Instead of filtering out areas that you think may be uninteresting, just use a simple du -x / | sort -n and see where the main culprits are. -x restricts it to one filesystem, which is probably what you wanted to achieve with the various --exclude arguments.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.