schollz / find3-cli-scanner

The command-line scanner that supports Bluetooth and WiFi
https://www.internalpositioning.com/doc/tracking_your_computer.md
149 stars 55 forks source link

find3 scanner fills up entire disk with tshark tmp files =( #2

Closed victorhooi closed 6 years ago

victorhooi commented 6 years ago

I have the find3-cli-scanner running on a Raspberry Pi with a 16GB MicroSD card.

However, after a few days, find3 appears to have filled up the entire disk. It all appears to be temporary tshark files.

Around 63,000 files of 200-300 KB - equates to around 12 GB.

root@rp3-cafetv:/# du -chs *
4.2M    bin
4.0K    boot
0       dev
2.4M    etc
4.0K    home
25M     lib
4.0K    media
4.0K    mnt
4.0K    opt
du: cannot access 'proc/36/task/36/fd/3': No such file or directory
du: cannot access 'proc/36/task/36/fdinfo/3': No such file or directory
du: cannot access 'proc/36/fd/3': No such file or directory
du: cannot access 'proc/36/fdinfo/3': No such file or directory
0       proc
27M     root
20K     run
2.9M    sbin
4.0K    srv
0       sys
11G     tmp
572M    usr
49M     var
12G     total
root@rp3-cafetv:/tmp# ls -l | wc -l
63349
root@rp3-cafetv:/tmp# ls -lah | head
total 11G
drwxrwxrwt 1 root root  1.8M Mar  9 03:00 .
drwxr-xr-x 1 root root  4.0K Mar  3 20:20 ..
-rw------- 1 root root  263K Mar  5 11:38 tshark-AAEvivubfU
-rw------- 1 root root   34K Mar  4 18:38 tshark-AAFJcHvFEv
-rw------- 1 root root     0 Mar  8 00:47 tshark-AAGOYgiwvQ
-rw------- 1 root root  272K Mar  5 13:20 tshark-AAKSpCNWno
-rw------- 1 root root   35K Mar  4 20:02 tshark-AAKnUEMjuI
-rw------- 1 root root   20K Mar  4 19:10 tshark-AALOwPuXoS
-rw------- 1 root root  283K Mar  6 12:13 tshark-AAMFZBDzPK