TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: ROBH
date: 2018-07-10 08:53:00
subject: dev/shm is100%, No space

After getting help from people in this group, my python intruder program
was working just great at first.

Then a few days later , when I ran the python script, it returned:

IOError: [Errno 28] No space left on device.

I then ran

pi@raspberrypi:/mnt/CCTV/PiZero $ df -Bm
Filesystem                  1M-blocks  Used Available Use% Mounted on
/dev/root                      14850M 3434M    10752M  25% /
devtmpfs                         182M    0M      182M   0% /dev
tmpfs                            186M  186M        0M 100% /dev/shm <<<<
tmpfs                            186M    8M      178M   4% /run

Next, I ran:

pi@raspberrypi:/mnt/CCTV/PiZero $ ls -l /run/shm
lrwxrwxrwx 1 root root 8 Jun 24 18:46 /run/shm -> /dev/shm

Then:

pi@raspberrypi:/mnt/CCTV/PiZero $ cp /run/shm/*.h264 /mnt/CCTV/PiZero

Where about 30/40 h264 files were copied across to my NAS /PiZero folder

pi@raspberrypi:/mnt/CCTV/PiZero $ rm -f /run/shm/*.h264
pi@raspberrypi:/mnt/CCTV/PiZero $ df -Bm
Filesystem                  1M-blocks  Used Available Use% Mounted on
/dev/root                      14850M 3434M    10752M  25% /
devtmpfs                         182M    0M      182M   0% /dev
tmpfs                            186M    0M      186M   0% /dev/shm

I am curious as to why this is happening, as the files are being written
to the sdcard, or it looks that way.

The whole purpose of the script was to avoid files being written to the
sdcard.
Correct me if I am wrong here.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.