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)
|