TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ROBH
from: MM0FMF
date: 2018-07-10 20:33:00
subject: Re: dev/shm is100%, No sp

On 10/07/2018 08:53, RobH wrote:
> 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.

You are wrong. The main problem is failure to read what is on the screen
followed by jumping to the wrong conclusion.

For example, this thread title includes "no space on sdcard" yet the
error message was "no space left on device". The df (disk free) command
shows there is 10725MB free. So why did you decide the sdcard was full
when the command you ran showed 10G free?

Read the message. Stop. Read it again. Then check you read it correctly.

--- 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™.