On 25/06/18 19:18, Dennis Lee Bieber wrote:
> On Mon, 25 Jun 2018 18:54:30 +0100, RobH declaimed the
> following:
>
>> On 25/06/18 00:32, gregor herrmann wrote:
>
>>>
>>> sudo mount -t cifs -o username=root,password=*****,uid=pi,gid=pi
//192.168.0.22/CCTV/PiZero/ /mnt/CCTV/PiZero
>>>
>
>
>> Now if I do:
>> pi@raspberrypi:~ $ echo "hello" > /mnt/CCTV/test.txt
>>
>> It gets created in the PiZero CCTV folder
>>
> As expected given the mount command
>
>> Now if I do:
>> echo "hello" > /mnt/CCTV/PiZero/test.txt
>>
>> It doesn't get created, even tho' there was no follow up message about
>> denied permission.
>>
>> Aah , but it did get created on the NAS box PiZero folder.
>>
>
> Also as expected for the mount command...
>
> The mount command is very specific... Since you specified /CCTV/PiZero
> on both the device and the mount point, ONLY the PiZero part has been
> mounted, and the CCTV level is still local to each side.
>
> If the mount command only specified /CCTV, then both of the echo test
> statements should have generated files on the NAS, as you'd be mounted at a
> higher level in the directory structure (and the /PiZero on the NAS side
> would be visible because it is inside the /CCTV level that was mounted).
>
>
I think I follow what you are saying, and I didn't realise that about
the /CCTV directory.
Anyway, it is working great now and thanks to you who provided me with
the code to get the videos on my NAS box, and also for your patience and
understanding with me.
I wish I could do something in return but I doubt that I could.
Thanks again for your help.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|