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