dev/root is full but no large fils

Topics about the Software of Revolution Pi
Post Reply
nickbou
Posts: 1
Joined: 07 Jun 2022, 15:31
Answers: 0

dev/root is full but no large fils

Post 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?
Attachments
ρεωπι.PNG
ρεωπι.PNG (836.35 KiB) Viewed 4309 times
revpi2.PNG
revpi2.PNG (153.93 KiB) Viewed 4309 times
User avatar
nicolaiB
KUNBUS
Posts: 871
Joined: 21 Jun 2018, 10:33
Answers: 7
Location: Berlin
Contact:

Re: dev/root is full but no large fils

Post 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
kjkoster
Posts: 87
Joined: 12 Feb 2022, 10:42
Answers: 2

Re: dev/root is full but no large fils

Post 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
Harols
Posts: 2
Joined: 03 Oct 2022, 09:36
Answers: 0

Re: dev/root is full but no large fils

Post 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!
Post Reply