On 16/06/18 20:06, RobH wrote:
> On 16/06/18 16:41, Dennis Lee Bieber wrote:
>> rm -f/run/shm/*.h264
>
> pi@raspberrypi:~/Downloads $ python intruder.py
> Traceback (most recent call last):
> File "intruder.py", line 40, in
> shutil.copyfile(RAMname, NASname)
> File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
> with open(dst, 'wb') as fdst:
> IOError: [Errno 13] Permission denied:
> '/mnt/CCTV/PiZero/2018-06-16_19.57.21.h264'
>
> pi@raspberrypi:~/Downloads $ df -h
> Filesystem Size Used Avail Use% Mounted
on
> /dev/root 15G 4.3G 9.7G 31% /
> devtmpfs 182M 0 182M 0%
/dev
> tmpfs 186M 13M 174M
7% /dev/shm
> tmpfs 186M 2.8M 183M 2%
/run
> tmpfs 5.0M 4.0K 5.0M 1%
/run/lock
> tmpfs 186M 0 186M
0% /sys/fs/cgroup
> /dev/mmcblk0p1 42M 21M 21M 51% /boot
> tmpfs 38M 0
38M 0% /run/user/1000
> //192.168.0.22/CCTV/PiZero/ 899G 3.1G 896G 1% /mnt/CCTV/PiZero
>
> I have edited some of the information out of this:
> pi@raspberrypi:~/Downloads $ df -a
> Filesystem 1K-blocks Used Available
Use% Mounted on
> /dev/root 15205520 4456740 10068272
31% /
> devtmpfs 185484
0 185484 0% /dev
> sysfs
0 0 0 - /sys
> proc
0 0 0 - /proc
> tmpfs 189780
12300 177480 7% /dev/shm
> devpts
0 0 0 - /dev/pts
> tmpfs 189780
2840 186940 2% /run
> tmpfs 5120
4 5116 1% /run/lock
> tmpfs 189780
0 189780 0% /sys/fs
> //192.168.0.22/CCTV/PiZero/ 942639428 3187324 939452104 1%
> /mnt/CCTV/PiZero
>
> pi@raspberrypi:~ $ ls -l /run/shm
> lrwxrwxrwx 1 root root 8 Jun 16 19:34 /run/shm -> /dev/shm
>
>
> pi@raspberrypi:~ $ rm -f /run/shm/*.h264
>
> Now here earlier it was running and albeit very slow, so I changed the
> ethernet connection from 100mBs to a1 Gb connection, and left it running
>
> When I came back about 1 hour or so later the connection was lost.
> I rectified that by a reboot and checking the cable connections.
>
> pi@raspberrypi:~/Downloads $ cp /run/shm/*.h264 /mnt/CCTV/PiZero
> cp: cannot create regular file
> '/mnt/CCTV/PiZero/2018-06-16_19.57.21.h264': Permission denied
>
>
> pi@raspberrypi:~ $ rm -f /run/shm/*.h264
> pi@raspberrypi:~ $
>
> pi@raspberrypi:~/Downloads $ mv -f /run/shm/*.h264 /mnt/CCTV/PiZero
> mv: preserving times for '/mnt/CCTV/PiZero/2018-06-16_19.57.21.h264':
> Operation not permitted
> mv: preserving permissions for
> ‘/mnt/CCTV/PiZero/2018-06-16_19.57.21.h264’: Input/output error
>
Ignore the above as it is corrected below
After the permission denied again I went to my NAS box and changed the
permissions for a windows share, as it was previously set for a Unix share.
Now
pi@raspberrypi:~/Downloads $ cp /run/shm/*.h264 /mnt/CCTV/PiZero
cp: cannot stat '/run/shm/*.h264': No such file or directory
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|