Page 1 of 1

dev/root is full but no large fils

Posted: 09 Jun 2022, 10:00
by nickbou
hello,
in my revPi the dev/root is full and i have turned it upside down to find big files, or cache or logs but nothing seems to be big enough to make sense of this.
Has anyone seen this before?

Re: dev/root is full but no large fils

Posted: 09 Jun 2022, 10:55
by nicolaiB
Hi Nick,

probably some logs or packages are using up the (limited) disk space. In your last screenshot you're only searching for files in the home directory. If you extend your search to the root filesystem / you will get a better picture. Please note that this requires root privileges as many files have restricted access.

Nicolai

Re: dev/root is full but no large fils

Posted: 09 Jun 2022, 13:30
by kjkoster
Dear Nick,

You can search for the culprit systematically by running the du command. Here is what I do: I go to the file system root (cd /) and then run "sudo du -ks * | sort -n | tail -5". This gives me files or directories that are the largest. Then I go into the directory that has the largest content and repeat the process (/usr in my case, you may see different results).

Code: Select all

$ cd /
$ sudo du -ks * | sort -n | tail -5
du: cannot access 'proc/24053/task/24053/fd/3': No such file or directory
du: cannot access 'proc/24053/task/24053/fdinfo/3': No such file or directory
du: cannot access 'proc/24053/fd/3': No such file or directory
du: cannot access 'proc/24053/fdinfo/3': No such file or directory
42968	opt
48284	run
90736	home
2773428	var
3031548	usr
$ cd usr
$ sudo du -ks * | sort -n | tail -5
85948	libexec
175032	src
407720	bin
720224	share
1593232	lib
$ _
The errors about /proc can be ignored. /proc is a dynamic file system and will change as it gets read.

At any rate, this should walk you to the right place quite quickly.

Kees Jan

Re: dev/root is full but no large fils

Posted: 12 Oct 2022, 09:34
by Harols
Hi Kees Jan, many thanks for this answer here. I've got a problem with finding large files as well, and your flow worked perfect. Have a nice day!