TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: ROBH
date: 2018-05-23 12:25:00
subject: Re: ftp causing invalid s

On 23/05/18 11:41, Björn Lundin wrote:
> On 2018-05-23 10:42, RobH wrote:
>> pi@raspberrypi:~ $ sudo echo "test" > /mnt/CCTV/PiZero/test.txt
>>
>> pi@raspberrypi:~ $ ls -la /mnt/CCTV/PiZero
>> total 11
>> -rw-r--r-- 1 pi pi    5 May 23 09:28 test.txt
>> pi@raspberrypi:~ $
>
> There you go.
> You got a file of 5 bytes ('test' + LF)
>
> if you see that file and it contents from the nas,
> you are almost there.
>
> mount (in this case) is about seeing another filesystem.
> And that yuu do.
> Why the videos are 0 byte is likely in the script then.
> (perhaps as someone else suspected - camera not flushing to disk)
>
>
>
>
>>
>>
>> I've just realised that FreeNAS resides on a 16gb SSD drive and all the
>> storage drives are listed or mounted by FreeNAS, and the data on them is
>> managed by FreeNAS, if that sounds right.
>>
>> This is the Freenas system:
>>
>> [root@freenas ~]# ls
>> .bash_history   .gdbinit        .login          .ssh
>> .bashrc         .history        .profile        secrets.tdb
>> .cshrc          .k5login        .shrc
>> [root@freenas ~]#
>
>

Yes the test.txt file I see on my FreeNAS /CCTV/PiZero directory is
indeed 5 bytes in size.

It does look like there is something in the python script which is
causing the video files to be only 0 bytes on my FreeNAS /PiZero directory.

Thanks

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