Page 1 of 1

storage problem

Posted: Friday 28 June 2019 0:04
by redfirebrooks
I am facing a storage problem on may SD card but I can't find the directory that might cause the problem.

Code: Select all

pi@domoticz:/home $ sudo du -sh --time * | sort -hr
5,1G	2019-06-27 23:59	pi
84K	2019-01-28 23:24	cayenne
pi@domoticz:/home $ cd pi
pi@domoticz:~ $ sudo du -sh --time * | sort -hr
71M	2019-04-13 10:45	bundle
61M	2019-06-28 00:00	domoticz
15M	2019-06-27 23:25	node_modules
10M	2018-06-23 09:44	libcoap
1,4M	2019-02-15 07:31	Adafruit_Python_SSD1306
1,1M	2019-03-16 11:52	scripts
60K	2019-03-08 21:50	install-coap-client.sh
36K	2019-01-28 23:23	cayenne.out
24K	2019-06-27 23:25	package-lock.json
8,0K	2018-07-23 12:14	test_beacon.py
4,0K	2019-02-11 21:00	dead.letter
4,0K	2019-01-28 23:23	cayenne.err
4,0K	2018-12-22 09:20	domoticz-raspiBackup.log
4,0K	2018-12-22 07:49	sd_backup.sh
4,0K	2018-07-19 12:15	Pictures
4,0K	2018-06-23 07:57	myNAS
4,0K	2018-05-02 23:42	rpi_ybl0i2tn8w.sh
4,0K	2018-01-14 23:34	mosquitto-repo.gpg.key
pi@domoticz:~ $

Where are those 5.1G ?!?

Code: Select all

pi@domoticz:~ $ df -h
Sys. de fichiers                Taille Utilisé Dispo Uti% Monté sur
/dev/root                         7,5G    6,9G  224M  97% /
devtmpfs                          460M       0  460M   0% /dev
tmpfs                             464M       0  464M   0% /dev/shm
tmpfs                             464M     19M  446M   4% /run
tmpfs                             5,0M    4,0K  5,0M   1% /run/lock
tmpfs                             464M       0  464M   0% /sys/fs/cgroup
//192.168.1.20/Backup/Domoticz/   3,6T    3,5T  180G  96% /mnt/myBACKUPS
tmpfs                             1,0M       0  1,0M   0% /var/temp
/dev/mmcblk0p1                     43M     22M   21M  51% /boot
tmpfs                              93M       0   93M   0% /run/user/110
tmpfs                              93M       0   93M   0% /run/user/1000

Re: storage problem

Posted: Friday 28 June 2019 0:17
by waaren
redfirebrooks wrote: Friday 28 June 2019 0:04 I am facing a storage problem on may SD card but I can't find the directory that might cause the problem.
[
Did you try this ?

Code: Select all

sudo find / -xdev -type f -size +100M -exec ls -la {} \; | sort -nk 5
It will find all files > 100M on you current filesystem

Re: storage problem

Posted: Friday 28 June 2019 0:31
by redfirebrooks
Thanks a lot
Very big logs files indeed

Code: Select all

pi@domoticz:~ $ sudo find / -xdev -type f -size +100M -exec ls -la {} \; | sort -nk 5
-rw-r--r-- 1 pi pi 810890376 juin  28 00:12 /home/pi/.pm2/pm2.log
-rw-r--r-- 1 pi pi 4059525120 juin  27 21:40 /home/pi/.pm2/logs/homebridge-error-0.log